lsst.display.astrowidgets g009b5efdf7+a997a12aa6
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lsst.display.astrowidgets.astrowidgets.WcsAdaptorForGinga Class Reference
Inheritance diagram for lsst.display.astrowidgets.astrowidgets.WcsAdaptorForGinga:
lsst.display.astrowidgets.astrowidgets.AstropyWCS

Public Member Functions

def __init__ (self, wcs)
 
def pixtoradec (self, idxs, coords='data')
 
def pixtosystem (self, idxs, system=None, coords='data')
 
def radectopix (self, ra_deg, dec_deg, coords='data', naxispath=None)
 
def all_pix2world (self, *args, **kwargs)
 
def datapt_to_wcspt (self, *args)
 
def wcspt_to_datapt (self, *args)
 

Detailed Description

A class to adapt the LSST Wcs class for Ginga.

This was taken largely from the afw.display.ginga package.

Parameters
----------
wcs : `ginga.util.wcsmod.wcs_astropy`
    WCS to adapt for Ginga.

Definition at line 501 of file astrowidgets.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.display.astrowidgets.astrowidgets.WcsAdaptorForGinga.__init__ (   self,
  wcs 
)

Definition at line 511 of file astrowidgets.py.

Member Function Documentation

◆ all_pix2world()

def lsst.display.astrowidgets.astrowidgets.WcsAdaptorForGinga.all_pix2world (   self,
args,
**  kwargs 
)

Definition at line 576 of file astrowidgets.py.

◆ datapt_to_wcspt()

def lsst.display.astrowidgets.astrowidgets.WcsAdaptorForGinga.datapt_to_wcspt (   self,
args 
)

Definition at line 584 of file astrowidgets.py.

◆ pixtoradec()

def lsst.display.astrowidgets.astrowidgets.WcsAdaptorForGinga.pixtoradec (   self,
  idxs,
  coords = 'data' 
)
Return (ra, dec) in degrees given a position in pixels.

Parameters
----------
idxs : `list` [`tuple` [`float`, `float`]]
    Pixel locations to convert.
coords  : `str`, optional
    This parameter is ignored.
Returns
-------
ra : `list`
    RA position in degrees.
dec : `list`
    DEC position in degrees.

Definition at line 514 of file astrowidgets.py.

◆ pixtosystem()

def lsst.display.astrowidgets.astrowidgets.WcsAdaptorForGinga.pixtosystem (   self,
  idxs,
  system = None,
  coords = 'data' 
)
Return (ra, dec) in degrees given a position in pixels.

Parameters
----------
idxs : `list` [`tuple` [`float`, `float`]]
    Pixel locations to convert.
system : `str`, optional
    This parameter is ignored.
coords : `str`, optional
    This parameter is ignored.

Returns
-------
ra : `list`
    RA position in degrees.
dec : `list`
    DEC position in degrees.

Definition at line 534 of file astrowidgets.py.

◆ radectopix()

def lsst.display.astrowidgets.astrowidgets.WcsAdaptorForGinga.radectopix (   self,
  ra_deg,
  dec_deg,
  coords = 'data',
  naxispath = None 
)
Return (x, y) in pixels given (ra, dec) in degrees

Parameters
----------
ra_deg : `list` [`float`]
    RA position in degrees.
dec_deg : `list` [`float`]
    DEC position in degrees.
coords : `str`, optional
    This parameter is ignored.
naxispath : `str`, optional
    This parameter is ignored.

Returns
-------
out : `tuple` [`list` [`float, `float`]]
    Image coordates for input positions.

Definition at line 555 of file astrowidgets.py.

◆ wcspt_to_datapt()

def lsst.display.astrowidgets.astrowidgets.WcsAdaptorForGinga.wcspt_to_datapt (   self,
args 
)

Definition at line 587 of file astrowidgets.py.


The documentation for this class was generated from the following file: