lsst.fgcmcal g3845412f31+78f199e393
Loading...
Searching...
No Matches
lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector Class Reference
Inheritance diagram for lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector:

Public Member Functions

 __init__ (self, camera, defaultOrientation, useScienceDetectors=False)
 
 __call__ (self, orientation, nstep=100, use_cache=True)
 

Public Attributes

 camera = camera
 
 boresight = geom.SpherePoint(180.0*geom.degrees, 0.0*geom.degrees)
 
bool flipX = False
 
int defaultOrientation = int(defaultOrientation) % 360
 
 useScienceDetectors = useScienceDetectors
 

Protected Member Functions

 _makeWcsDict (self, orientation)
 
 _compute_cached_projection (self, orientation, nstep=50)
 
 _compute_projection (self, orientation, nstep=50)
 

Detailed Description

Class to project the focal plane onto the sky.

Parameters
----------
camera : `lsst.afw.cameraGeom.Camera`
    Camera from the butler.
defaultOrientation : `int`
    Default camera orientation in degrees.  This angle is the position
    angle of the focal plane +Y with respect to north.
useScienceDetectors : `bool`, optional
    Use only science detectors in projector?

Definition at line 37 of file focalPlaneProjector.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector.__init__ ( self,
camera,
defaultOrientation,
useScienceDetectors = False )

Definition at line 51 of file focalPlaneProjector.py.

Member Function Documentation

◆ __call__()

lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector.__call__ ( self,
orientation,
nstep = 100,
use_cache = True )
Make a focal plane projection mapping for use with fgcm.

Parameters
----------
orientation : `float` or `int`
    Camera orientation in degrees.  This angle is the position
    angle of the focal plane +Y with respect to north.
nstep : `int`
    Number of steps in x/y per detector for the mapping.
use_cache : `bool`, optional
    Use integerized cached lookup.

Returns
-------
projectionMapping : `np.ndarray`
    A projection mapping object with x, y, x_size, y_size,
    delta_ra_cent, delta_dec_cent, delta_ra, delta_dec for
    each detector id.

Definition at line 93 of file focalPlaneProjector.py.

◆ _compute_cached_projection()

lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector._compute_cached_projection ( self,
orientation,
nstep = 50 )
protected
Compute the focal plane projection, with caching.

Parameters
----------
orientation : `int`
    Camera orientation in degrees. This angle is the position
    angle of the focal plane +Y with respect to north.
nstep : `int`
    Number of steps in x/y per detector for the mapping.

Returns
-------
projectionMapping : `np.ndarray`
    A projection mapping object with x, y, x_size, y_size,
    delta_ra_cent, delta_dec_cent, delta_ra, delta_dec for
    each detector id.

Definition at line 128 of file focalPlaneProjector.py.

◆ _compute_projection()

lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector._compute_projection ( self,
orientation,
nstep = 50 )
protected
Compute the focal plane projection.

Parameters
----------
orientation : `float` or `int`
    Camera orientation in degrees. This angle is the position
    angle of the focal plane +Y with respect to north.
nstep : `int`
    Number of steps in x/y per detector for the mapping.

Returns
-------
projectionMapping : `np.ndarray`
    A projection mapping object with x, y, x_size, y_size,
    delta_ra_cent, delta_dec_cent, delta_ra, delta_dec for
    each detector id.

Definition at line 149 of file focalPlaneProjector.py.

◆ _makeWcsDict()

lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector._makeWcsDict ( self,
orientation )
protected
Make a dictionary of WCSs at the reference boresight position.

Parameters
----------
orientation : `int`
    Orientation in degrees.  This angle is the position
    angle of the focal plane +Y with respect to north.

Returns
-------
wcsDict : `dict`
    Dictionary of WCS, with the detector id as the key.

Definition at line 60 of file focalPlaneProjector.py.

Member Data Documentation

◆ boresight

lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector.boresight = geom.SpherePoint(180.0*geom.degrees, 0.0*geom.degrees)

Definition at line 55 of file focalPlaneProjector.py.

◆ camera

lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector.camera = camera

Definition at line 52 of file focalPlaneProjector.py.

◆ defaultOrientation

int lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector.defaultOrientation = int(defaultOrientation) % 360

Definition at line 57 of file focalPlaneProjector.py.

◆ flipX

bool lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector.flipX = False

Definition at line 56 of file focalPlaneProjector.py.

◆ useScienceDetectors

lsst.fgcmcal.focalPlaneProjector.FocalPlaneProjector.useScienceDetectors = useScienceDetectors

Definition at line 58 of file focalPlaneProjector.py.


The documentation for this class was generated from the following file: