SkyWcs¶
- class lsst.afw.geom.SkyWcs¶
Bases:
Storable
Attributes Summary
Methods Summary
copyAtShiftedPixelOrigin
(self, shift)getCdMatrix
(*args, **kwargs)Overloaded function.
getFitsMetadata
(self[, precise])getFrameDict
(self)getPixelOrigin
(self)getPixelScale
(*args, **kwargs)Overloaded function.
getRelativeRotationToWcs
(otherWcs)Get the difference in sky rotation angle to the specified wcs.
getSkyOrigin
(self)getTanWcs
(self, pixel)getTransform
(self)isPersistable
(self)linearizePixelToSky
(*args, **kwargs)Overloaded function.
linearizeSkyToPixel
(*args, **kwargs)Overloaded function.
pixelToSky
(*args, **kwargs)Overloaded function.
pixelToSkyArray
(x, y[, degrees])Convert numpy array pixels (x, y) to numpy array sky (ra, dec) positions.
readFits
(*args, **kwargs)Overloaded function.
readString
(arg0)skyToPixel
(*args, **kwargs)Overloaded function.
skyToPixelArray
(ra, dec[, degrees])Convert numpy array sky (ra, dec) positions to numpy array pixels (x, y).
writeFits
(*args, **kwargs)Overloaded function.
writeString
(self)Attributes Documentation
- isFits¶
- isFlipped¶
Methods Documentation
- copyAtShiftedPixelOrigin(self: lsst.afw.geom.SkyWcs, shift: lsst.geom.Extent2D) lsst.afw.geom.SkyWcs ¶
- getCdMatrix(*args, **kwargs)¶
Overloaded function.
getCdMatrix(self: lsst.afw.geom.SkyWcs, pixel: lsst.geom.Point2D) -> numpy.ndarray[numpy.float64[2, 2]]
getCdMatrix(self: lsst.afw.geom.SkyWcs) -> numpy.ndarray[numpy.float64[2, 2]]
- getFitsMetadata(self: lsst.afw.geom.SkyWcs, precise: bool = False) lsst.daf.base.PropertyList ¶
- getFrameDict(self: lsst.afw.geom.SkyWcs) astshim.FrameDict ¶
- getPixelOrigin(self: lsst.afw.geom.SkyWcs) lsst.geom.Point2D ¶
- getPixelScale(*args, **kwargs)¶
Overloaded function.
getPixelScale(self: lsst.afw.geom.SkyWcs, pixel: lsst.geom.Point2D) -> lsst.geom.Angle
getPixelScale(self: lsst.afw.geom.SkyWcs) -> lsst.geom.Angle
- getRelativeRotationToWcs(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 fromother.rotation`
) to align them?- Parameters:
- otherWcs
lsst.afw.geom.SkyWcs
The wcs to calculate the angle to.
- otherWcs
- Returns:
- angle
lsst.geom.Angle
The angle between this and the supplied wcs, over the half-open range [0, 2pi).
- angle
- getSkyOrigin(self: lsst.afw.geom.SkyWcs) lsst.geom.SpherePoint ¶
- getTanWcs(self: lsst.afw.geom.SkyWcs, pixel: lsst.geom.Point2D) lsst.afw.geom.SkyWcs ¶
- getTransform(self: lsst.afw.geom.SkyWcs) lsst.afw.geom.TransformPoint2ToSpherePoint ¶
- isPersistable(self: lsst.afw.geom.SkyWcs) bool ¶
- linearizePixelToSky(*args, **kwargs)¶
Overloaded function.
linearizePixelToSky(self: lsst.afw.geom.SkyWcs, coord: lsst.geom.SpherePoint, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
linearizePixelToSky(self: lsst.afw.geom.SkyWcs, coord: lsst.geom.Point2D, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
- linearizeSkyToPixel(*args, **kwargs)¶
Overloaded function.
linearizeSkyToPixel(self: lsst.afw.geom.SkyWcs, coord: lsst.geom.SpherePoint, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
linearizeSkyToPixel(self: lsst.afw.geom.SkyWcs, coord: lsst.geom.Point2D, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
- pixelToSky(*args, **kwargs)¶
Overloaded function.
pixelToSky(self: lsst.afw.geom.SkyWcs, pixel: lsst.geom.Point2D) -> lsst.geom.SpherePoint
pixelToSky(self: lsst.afw.geom.SkyWcs, x: float, y: float) -> lsst.geom.SpherePoint
pixelToSky(self: lsst.afw.geom.SkyWcs, pixel: list[lsst.geom.Point2D]) -> list[lsst.geom.SpherePoint]
- pixelToSkyArray(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.
- x
- 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.
- ra
- static readFits(*args, **kwargs)¶
Overloaded function.
readFits(fileName: str, hdu: int = -2147483648) -> lsst.afw.geom.SkyWcs
readFits(manager: lsst.afw.fits._fits.MemFileManager, hdu: int = -2147483648) -> lsst.afw.geom.SkyWcs
- static readString(arg0: str) lsst.afw.geom.SkyWcs ¶
- skyToPixel(*args, **kwargs)¶
Overloaded function.
skyToPixel(self: lsst.afw.geom.SkyWcs, sky: lsst.geom.SpherePoint) -> lsst.geom.Point2D
skyToPixel(self: lsst.afw.geom.SkyWcs, sky: list[lsst.geom.SpherePoint]) -> list[lsst.geom.Point2D]
- skyToPixelArray(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.
- ra
- Returns:
- x
np.ndarray
Array of x values.
- y
np.ndarray
Array of y values.
- x
- writeFits(*args, **kwargs)¶
Overloaded function.
writeFits(self: lsst.afw.geom.SkyWcs, fileName: str, mode: str = ‘w’) -> None
writeFits(self: lsst.afw.geom.SkyWcs, manager: lsst.afw.fits._fits.MemFileManager, mode: str = ‘w’) -> None
- writeString(self: lsst.afw.geom.SkyWcs) str ¶