GalsimWCS¶
- class snappl.wcs.GalsimWCS(gsimwcs=None)[source]¶
Bases:
BaseWCSA WCS speicifc to Galsim.
Methods Summary
from_header(header)Create a GalsimWCS from a FITS header.
Return a glasim.AstropyWCS object, if possible.
pixel_to_world(x, y)Go from (x, y) coordinates to ICRS (ra, dec)
Return an astropy.io.fits.Header object, if possible, with the WCS in it.
world_to_pixel(ra, dec)Go from (ra, dec) coordinates to (x, y)
Methods Documentation
- classmethod from_header(header)[source]¶
Create a GalsimWCS from a FITS header.
Does TAN-TPV conversion the same as AstropyWCS.from_header.
- Parameters:
header (astropy.io.fits.header.Header) – See AstropyWCS.from_header
- Return type:
- pixel_to_world(x, y)[source]¶
Go from (x, y) coordinates to ICRS (ra, dec)
- Parameters:
- Returns:
ra, dec (floats or arrays of floats, decimal degrees)
You will get back two floats if x an y were floats. If x and
y were lists (or other sequences), you will get back two numpy
arrays of floats.
- world_to_pixel(ra, dec)[source]¶
Go from (ra, dec) coordinates to (x, y)
- Parameters:
- Returns:
x, y (floats or arrays of floats)
Pixel position on the image; the center of the lower-left pixel is (0.0, 0.0).
If ra and dec were floats, x and y are floats. If ra and dec
were sequences of floats, x and y will be numpy arrays of floats.