ztforce.image
ZTFImage: FITS loading, WCS, and pixel/sky coordinate transforms.
Attributes
Classes
Lazy-loading wrapper around a single ZTF science FITS image. |
Module Contents
- class ZTFImage(fits_fpath: str, band: str, config: ztforce.config.ZTForceConfig)[source]
Lazy-loading wrapper around a single ZTF science FITS image.
- property cutout_origin: tuple[float, float][source]
Pixel offset (x0, y0) of this cutout’s origin within the full quadrant.
IRSA IBE cutouts include LTV1/LTV2 header keywords following the IRAF convention where LTV is the negative of the cutout’s 0-indexed starting pixel: x_full = x_cutout - LTV1. Returns (0.0, 0.0) for full images.
- property zero_point: float[source]
AB photometric zero-point from header (MAGZP).
Calibrated against PanSTARRS DR1 by the ZTF pipeline (Masci et al. 2019, PASP, 131, 018003).
- sky_to_pixel(coord: astropy.coordinates.SkyCoord) tuple[float, float][source]
Return (x, y) pixel position within this image (cutout-local).
- sky_to_full_quadrant_pixel(coord: astropy.coordinates.SkyCoord) tuple[float, float][source]
Return (x, y) in full-quadrant pixel coordinates.
Required for the spatially-varying DAOPhot PSF model, whose polynomial coefficients are indexed to the full quadrant, not the cutout. Identical to sky_to_pixel when the image is a full quadrant download.
- pixel_to_sky(x: float, y: float) astropy.coordinates.SkyCoord[source]
Return a SkyCoord for pixel position (x, y).