SkyWcs¶
-
class
lsst.afw.geom.
SkyWcs
¶ Bases:
lsst.afw.typehandling.Storable
Attributes Summary
isFits
isFlipped
Methods Summary
copyAtShiftedPixelOrigin
(self, shift)getCdMatrix
(*args, **kwargs)Overloaded function. getFitsMetadata
(self, precise)getFrameDict
(self)getPixelOrigin
(self)getPixelScale
(*args, **kwargs)Overloaded function. 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.skyWcs.SkyWcs, shift: lsst.geom.Extent2D) → lsst.afw.geom.skyWcs.skyWcs.SkyWcs¶
-
getCdMatrix
(*args, **kwargs)¶ Overloaded function.
- getCdMatrix(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, pixel: lsst.geom.Point2D) -> numpy.ndarray[float64[2, 2]]
- getCdMatrix(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs) -> numpy.ndarray[float64[2, 2]]
-
getFitsMetadata
(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, precise: bool=False) → lsst.daf.base.propertyContainer.propertyList.PropertyList¶
-
getFrameDict
(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs) → astshim.frameDict.FrameDict¶
-
getPixelOrigin
(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs) → lsst.geom.Point2D¶
-
getPixelScale
(*args, **kwargs)¶ Overloaded function.
- getPixelScale(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, pixel: lsst.geom.Point2D) -> lsst.geom.Angle
- getPixelScale(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs) -> lsst.geom.Angle
-
getSkyOrigin
(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs) → lsst.geom.SpherePoint¶
-
getTanWcs
(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, pixel: lsst.geom.Point2D) → lsst.afw.geom.skyWcs.skyWcs.SkyWcs¶
-
getTransform
(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs) → lsst.afw.geom.transform.transform.TransformPoint2ToSpherePoint¶
-
isPersistable
(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs) → bool¶
-
linearizePixelToSky
(*args, **kwargs)¶ Overloaded function.
- linearizePixelToSky(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, coord: lsst.geom.SpherePoint, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
- linearizePixelToSky(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, coord: lsst.geom.Point2D, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
-
linearizeSkyToPixel
(*args, **kwargs)¶ Overloaded function.
- linearizeSkyToPixel(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, coord: lsst.geom.SpherePoint, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
- linearizeSkyToPixel(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, coord: lsst.geom.Point2D, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
-
pixelToSky
(*args, **kwargs)¶ Overloaded function.
- pixelToSky(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, pixel: lsst.geom.Point2D) -> lsst.geom.SpherePoint
- pixelToSky(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, x: float, y: float) -> lsst.geom.SpherePoint
- pixelToSky(self: lsst.afw.geom.skyWcs.skyWcs.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.
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.
- x :
-
readFits
(*args, **kwargs)¶ Overloaded function.
- readFits(fileName: str, hdu: int=-2147483648) -> lsst.afw.geom.skyWcs.skyWcs.SkyWcs
- readFits(manager: lsst::afw::fits::MemFileManager, hdu: int=-2147483648) -> lsst.afw.geom.skyWcs.skyWcs.SkyWcs
-
readString
(arg0: str) → lsst.afw.geom.skyWcs.skyWcs.SkyWcs¶
-
skyToPixel
(*args, **kwargs)¶ Overloaded function.
- skyToPixel(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, sky: lsst.geom.SpherePoint) -> lsst.geom.Point2D
- skyToPixel(self: lsst.afw.geom.skyWcs.skyWcs.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.
Returns: - x :
np.ndarray
Array of x values.
- y :
np.ndarray
Array of y values.
- ra :
-
writeFits
(*args, **kwargs)¶ Overloaded function.
- writeFits(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, fileName: str, mode: str=’w’) -> None
- writeFits(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs, manager: lsst::afw::fits::MemFileManager, mode: str=’w’) -> None
-
writeString
(self: lsst.afw.geom.skyWcs.skyWcs.SkyWcs) → str¶
-