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, shift: lsst.geom.Extent2D) → lsst.afw.geom.SkyWcs
getCdMatrix(*args, **kwargs)

Overloaded function.

  1. getCdMatrix(self: lsst.afw.geom.SkyWcs, pixel: lsst.geom.Point2D) -> numpy.ndarray[numpy.float64[2, 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.propertyContainer.propertyList.PropertyList
getFrameDict(self: lsst.afw.geom.SkyWcs) → astshim.frameDict.FrameDict
getPixelOrigin(self: lsst.afw.geom.SkyWcs) → lsst.geom.Point2D
getPixelScale(*args, **kwargs)

Overloaded function.

  1. getPixelScale(self: lsst.afw.geom.SkyWcs, pixel: lsst.geom.Point2D) -> lsst.geom.Angle
  2. getPixelScale(self: lsst.afw.geom.SkyWcs) -> lsst.geom.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.

  1. linearizePixelToSky(self: lsst.afw.geom.SkyWcs, coord: lsst.geom.SpherePoint, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
  2. linearizePixelToSky(self: lsst.afw.geom.SkyWcs, coord: lsst.geom.Point2D, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
linearizeSkyToPixel(*args, **kwargs)

Overloaded function.

  1. linearizeSkyToPixel(self: lsst.afw.geom.SkyWcs, coord: lsst.geom.SpherePoint, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
  2. linearizeSkyToPixel(self: lsst.afw.geom.SkyWcs, coord: lsst.geom.Point2D, skyUnit: lsst.geom.AngleUnit) -> lsst.geom.AffineTransform
pixelToSky(*args, **kwargs)

Overloaded function.

  1. pixelToSky(self: lsst.afw.geom.SkyWcs, pixel: lsst.geom.Point2D) -> lsst.geom.SpherePoint
  2. pixelToSky(self: lsst.afw.geom.SkyWcs, x: float, y: float) -> lsst.geom.SpherePoint
  3. 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.

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.

static readFits(*args, **kwargs)

Overloaded function.

  1. readFits(fileName: str, hdu: int = -2147483648) -> lsst.afw.geom.SkyWcs
  2. readFits(manager: lsst::afw::fits::MemFileManager, hdu: int = -2147483648) -> lsst.afw.geom.SkyWcs
static readString(arg0: str) → lsst.afw.geom.SkyWcs
skyToPixel(*args, **kwargs)

Overloaded function.

  1. skyToPixel(self: lsst.afw.geom.SkyWcs, sky: lsst.geom.SpherePoint) -> lsst.geom.Point2D
  2. 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.

Returns:
x : np.ndarray

Array of x values.

y : np.ndarray

Array of y values.

writeFits(*args, **kwargs)

Overloaded function.

  1. writeFits(self: lsst.afw.geom.SkyWcs, fileName: str, mode: str = ‘w’) -> None
  2. writeFits(self: lsst.afw.geom.SkyWcs, manager: lsst::afw::fits::MemFileManager, mode: str = ‘w’) -> None
writeString(self: lsst.afw.geom.SkyWcs) → str