lsst.afw.geom

Using lsst.afw.geom

Contributing

lsst.afw.geom is developed at https://github.com/lsst/afw. You can find Jira issues for this module under the afw component.

Python API reference

lsst.afw.geom Package

Functions

calculateSipWcsHeader(wcs, order, bbox, spacing)

Generate a SIP WCS header approximating a given SkyWcs

computePixelToDistortedPixel(...)

Compute the transform pixelToDistortedPixel, which applies optical distortion specified by focalPlaneToFieldAngle.

createTrivialWcsMetadata(wcsName, xy0)

deleteBasicWcsMetadata(metadata, wcsName)

getCdMatrixFromMetadata(metadata)

getImageXY0FromMetadata(metadata, wcsName[, ...])

getIntermediateWorldCoordsToSky(wcs[, simplify])

getPixelToIntermediateWorldCoords(wcs[, ...])

getSipMatrixFromMetadata(metadata, name)

Extract a SIP matrix from FITS TAN-SIP WCS metadata.

hasSipMatrix(metadata, name)

linearizeTransform(original, point)

makeCdMatrix(scale[, orientation, flipX])

makeFlippedWcs(wcs, flipLR, flipTB, center)

makeHpxWcs(hips_order, pixel[, shift_order])

Make a SkyWcs object with HEALPix grid projection (HPX).

makeIdentityTransform()

makeModifiedWcs(pixelTransform, wcs, ...)

makeRadialTransform(*args, **kwargs)

Overloaded function.

makeSimpleWcsMetadata(crpix, crval, cdMatrix)

makeSipMatrixMetadata(matrix, name)

makeSkyWcs(*args, **kwargs)

Overloaded function.

makeTanSipMetadata(*args, **kwargs)

Overloaded function.

makeTanSipWcs(*args, **kwargs)

Overloaded function.

makeTransform(affine)

makeWcsPairTransform(src, dst)

stripWcsMetadata(metadata)

transformFromString(data)

Read a Transform from a string that was saved using Transform.writeString

wcsAlmostEqualOverBBox(wcs0, wcs1, bbox[, ...])

Test if two WCS are almost equal over a grid of pixel positions.

Classes

AffineTransformConfig(*args, **kw)

A Config representing an affine Transform.

Ellipse

GenericEndpoint

IdentityTransformConfig(*args, **kw)

A Config representing a Transform that does nothing.

MultiTransformConfig(*args, **kw)

A Config representing a chain of consecutive Transforms.

OneTransformConfig(*args, **kw)

A Config representing a single Transform in a compound Transform.

Point2Endpoint

Polygon

Quadrupole

RadialTransformConfig(*args, **kw)

A Config representing a radially symmetric Transform.

SipApproximation

SkyWcs

Span

SpanIterator

SpanSet

SpherePointEndpoint

Stencil

Members:

TransformConfig(*args, **kw)

Config that identifies Transforms by keyword.

TransformGenericToGeneric

TransformGenericToPoint2

TransformGenericToSpherePoint

TransformPoint2ToGeneric

TransformPoint2ToPoint2

TransformPoint2ToSpherePoint

TransformSpherePointToGeneric

TransformSpherePointToPoint2

TransformSpherePointToSpherePoint

Class Inheritance Diagram

Inheritance diagram of lsst.afw.geom.transformConfig.AffineTransformConfig, lsst.afw.geom.ellipses.Ellipse, lsst.afw.geom.GenericEndpoint, lsst.afw.geom.transformConfig.IdentityTransformConfig, lsst.afw.geom.transformConfig.MultiTransformConfig, lsst.afw.geom.transformConfig.OneTransformConfig, lsst.afw.geom.Point2Endpoint, lsst.afw.geom.Polygon, lsst.afw.geom.ellipses.Quadrupole, lsst.afw.geom.transformConfig.RadialTransformConfig, lsst.afw.geom.SipApproximation, lsst.afw.geom.SkyWcs, lsst.afw.geom.Span, lsst.afw.geom.SpanIterator, lsst.afw.geom.SpanSet, lsst.afw.geom.SpherePointEndpoint, lsst.afw.geom.Stencil, lsst.afw.geom.transformConfig.TransformConfig, lsst.afw.geom.TransformGenericToGeneric, lsst.afw.geom.TransformGenericToPoint2, lsst.afw.geom.TransformGenericToSpherePoint, lsst.afw.geom.TransformPoint2ToGeneric, lsst.afw.geom.TransformPoint2ToPoint2, lsst.afw.geom.TransformPoint2ToSpherePoint, lsst.afw.geom.TransformSpherePointToGeneric, lsst.afw.geom.TransformSpherePointToPoint2, lsst.afw.geom.TransformSpherePointToSpherePoint

lsst.afw.geom.testUtils Module

Functions

makeSipIwcToPixel(metadata)

Make an IWC to pixel transform with SIP distortion from FITS-WCS metadata

makeSipPixelToIwc(metadata)

Make a pixel to IWC transform with SIP distortion from FITS-WCS metadata

Classes

BoxGrid(box, numColRow)

Divide a box into nx by ny sub-boxes that tile the region

Class Inheritance Diagram

Inheritance diagram of lsst.afw.geom.testUtils.BoxGrid