liger_iris_sim.utils.topology
Functions
|
Convert IFU spaxel coordinates to spatial coordinates. |
Convert imager detector coordinates to spatial coordinates. |
|
|
Convert IRIS spatial coordinates to imager coordinates. |
|
Convert sky coordinates (RA, Dec) to detector coordinates. |
- liger_iris_sim.utils.topology.iris_ifu_coord_to_spatial(yd: float, xd: float, scale: float, size: tuple[int, int]) tuple[float, float] [source]
Convert IFU spaxel coordinates to spatial coordinates.
- Parameters:
yd (float) – Y coordinate in spaxels.
xd (float) – X coordinate in spaxels.
scale (float) – Plate scale in mas.
size (tuple[int, int]) – Size of the detector in pixels.
- liger_iris_sim.utils.topology.iris_imager_detector_coord_to_spatial(xd: float, yd: float, scale: float) tuple[float, float] [source]
Convert imager detector coordinates to spatial coordinates.
- Parameters:
xd (float) – X coordinate in pixels.
yd (float) – Y coordinate in pixels.
scale (float) – Plate scale in arcsec.
- Returns:
Spatial coordinates (xs, ys).
- Return type:
(float, float)
- liger_iris_sim.utils.topology.iris_imager_spatial_coord_to_imager(xs: float, ys: float, scale: float) tuple[float, float] [source]
Convert IRIS spatial coordinates to imager coordinates.
- Parameters:
xs (float) – X coordinate in arcsec relative to on-axis.
ys (float) – Y coordinate in arcsec relative to on-axis.
scale (float) – Plate scale in arcsec.
- Returns:
Detector coordinates (x_pixel, y_pixel).
- Return type:
(float, float)
- liger_iris_sim.utils.topology.sky_coord_to_detector(ra: float, dec: float, scale: float, size: tuple[int, int], ra0: float = 0, dec0: float = 0) tuple[float, float] [source]
Convert sky coordinates (RA, Dec) to detector coordinates.
- Parameters:
ra (float) – Right ascension or offset from center in deg.
dec (float) – Declication or offset from center in deg.
scale (float) – Plate scale in arcsec.
size (tuple[int, int]) – Size of the detector in pixels.
ra0 (float) – Reference RA in degrees. Defaults to 0 (RA is already offset).
dec0 (float) – Reference Dec in degrees. Defaults to 0 (Dec is already offset).
- Returns:
Detector coordinates (x_pixel, y_pixel).
- Return type:
(float, float)