Transforms

class romancal.orientation.set_telescope_pointing.Transforms(m_b2fgs: ndarray | None = None, m_eci2b: ndarray | None = None, m_eci2fcs: ndarray | None = None, m_eci2gs: ndarray | None = None, m_eci2gsapp: ndarray | None = None, m_eci2v: ndarray | Any = None, m_fgs2gsapp: ndarray | None = None, m_gsapp2gsics: ndarray | None = None)[source]

Bases: object

The matrices used in calculation of the M_eci2siaf transformation.

Attributes Summary

m_b2fgs

B-frame to FGS

m_eci2b

ECI to B-frame

m_eci2fcs

ECI to FCS

m_eci2gs

ECI to GS

m_eci2gsapp

ECI to GS apparent

m_eci2v

ECI to V

m_fgs2gsapp

ECI to Guide star apparent position

m_gsapp2gsics

GS apparent to GS corrected

Methods Summary

from_asdf(asdf_file)

Create Transforms from AsdfFile.

to_asdf()

Serialize to AsdfFile.

write_to_asdf(path)

Serialize to a file path.

Attributes Documentation

m_b2fgs: ndarray | None = None

B-frame to FGS

m_eci2b: ndarray | None = None

ECI to B-frame

m_eci2fcs: ndarray | None = None

ECI to FCS

m_eci2gs: ndarray | None = None

ECI to GS

m_eci2gsapp: ndarray | None = None

ECI to GS apparent

m_eci2v: ndarray | Any = None

ECI to V

m_fgs2gsapp: ndarray | None = None

ECI to Guide star apparent position

m_gsapp2gsics: ndarray | None = None

GS apparent to GS corrected

Methods Documentation

classmethod from_asdf(asdf_file)[source]

Create Transforms from AsdfFile.

Parameters:

asdf_file (Stream-like or asdf.AsdfFile) – The asdf to create from.

Returns:

transforms – The Transforms instance.

Return type:

Transforms

to_asdf()[source]

Serialize to AsdfFile.

Returns:

asdf_file – The ASDF serialization.

Return type:

asdf.AsdfFile

write_to_asdf(path)[source]

Serialize to a file path.

Parameters:

path (Stream-like) – Output file path.