SkyWcs

class lsst.afw.geom.SkyWcs

Bases: 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.

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.

  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.PropertyList
getFrameDict(self: lsst.afw.geom.SkyWcs) astshim.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

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 from other.rotation`) to align them?

Parameters:
otherWcslsst.afw.geom.SkyWcs

The wcs to calculate the angle to.

Returns:
anglelsst.geom.Angle

The angle between this and the supplied wcs, over the half-open range [0, 2pi).

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:
xnp.ndarray

Array of x values.

ynp.ndarray

Array of y values.

degreesbool, optional

Return ra, dec arrays in degrees if True.

Returns:
ranp.ndarray

Array of Right Ascension. Units are radians unless degrees=True.

decnp.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._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:
ranp.ndarray

Array of Right Ascension. Units are radians unless degrees=True.

decnp.ndarray

Array of Declination. Units are radians unless degrees=True.

degreesbool, optional

Input ra, dec arrays are degrees if True.

Returns:
xnp.ndarray

Array of x values.

ynp.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._fits.MemFileManager, mode: str = ‘w’) -> None

writeString(self: lsst.afw.geom.SkyWcs) str