lsst.afw g093c4c12c6+d82a7d5dd9
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lsst.afw.geom.skyWcs.SkyWcs Class Reference

Public Member Functions

def pixelToSkyArray (self, x, y, degrees=False)
 
def skyToPixelArray (self, ra, dec, degrees=False)
 
def getRelativeRotationToWcs (self, otherWcs)
 

Detailed Description

Definition at line 40 of file skyWcs.py.

Member Function Documentation

◆ getRelativeRotationToWcs()

def lsst.afw.geom.skyWcs.SkyWcs.getRelativeRotationToWcs (   self,
  otherWcs 
)
Get the difference in sky rotation angle to the specified wcs.

Ignoring location on the sky, if another wcs were atop this one,
what would the difference in rotation be? i.e. for

otherWcs = createInitialSkyWcsFromBoresight(radec, rotation, detector)

what is the value that needs to be added to ``self.rotation`` (or
subtracted from `other.rotation``) to align them?

Parameters
----------
otherWcs : `lsst.afw.geom.SkyWcs`
    The wcs to calculate the angle to.

Returns
-------
angle : `lsst.geom.Angle`
    The angle between this and the supplied wcs,
    over the half-open range [0, 2pi).

Definition at line 104 of file skyWcs.py.

◆ pixelToSkyArray()

def lsst.afw.geom.skyWcs.SkyWcs.pixelToSkyArray (   self,
  x,
  y,
  degrees = False 
)
Convert numpy array pixels (x, y) to numpy array sky (ra, dec)
positions.

Parameters
----------
x : `np.ndarray`
    Array of x values.
y : `np.ndarray`
    Array of y values.
degrees : `bool`, optional
    Return ra, dec arrays in degrees if True.

Returns
-------
ra : `np.ndarray`
    Array of Right Ascension.  Units are radians unless
    degrees=True.
dec : `np.ndarray`
    Array of Declination.  Units are radians unless
    degrees=True.

Definition at line 41 of file skyWcs.py.

◆ skyToPixelArray()

def lsst.afw.geom.skyWcs.SkyWcs.skyToPixelArray (   self,
  ra,
  dec,
  degrees = False 
)
Convert numpy array sky (ra, dec) positions to numpy array
pixels (x, y).

Parameters
----------
ra : `np.ndarray`
    Array of Right Ascension.  Units are radians unless
    degrees=True.
dec : `np.ndarray`
    Array of Declination.  Units are radians unless
    degrees=True.
degrees : `bool`, optional
    Input ra, dec arrays are degrees if True.

Returns
-------
x : `np.ndarray`
    Array of x values.
y : `np.ndarray`
    Array of y values.

Definition at line 73 of file skyWcs.py.


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