lsst.display.matplotlib gb32d437585+cb1993dea9
 
Loading...
Searching...
No Matches
lsst.display.matplotlib.wcsAxes Namespace Reference

Classes

class  _AstStringSource
 
class  WcsAxesManager
 

Functions

 astFrameSetFromWcs (wcs)
 

Detailed Description

Draw sky coordinate axes on a matplotlib Axes using AST.

The axes are drawn by `starlink.Ast.Plot` using the matplotlib grf
plugin, so arbitrary AST WCS transforms are supported with no FITS
approximation.

Function Documentation

◆ astFrameSetFromWcs()

lsst.display.matplotlib.wcsAxes.astFrameSetFromWcs ( wcs)
Convert an afw SkyWcs to a starlink-pyast FrameSet.

Parameters
----------
wcs : `lsst.afw.geom.SkyWcs`
    The WCS to convert.

Returns
-------
frameSet : `starlink.Ast.FrameSet`
    FrameSet whose base frame is LSST 0-based pixel coordinates
    (domain ``PIXELS``) and whose current frame is sky coordinates
    in radians (domain ``SKY``).

Notes
-----
The conversion serializes the WCS's underlying `astshim.FrameDict`
to AST native text and reads it back with pyast, so the result is
exact; no FITS approximation is involved.