ProjectionRegion
- class romancal.skycell.skymap.ProjectionRegion(index: int | None, skymap: SkyMap = None)[source]
Bases:
objectProjection region in the loaded skymap.
- Parameters:
index (int) – index of the projection region in the loaded skymap array
skymap (SkyMap) – sky map instance (defaults to global SKYMAP)
Attributes Summary
Projection region data.
index in the loaded skymap
whether this projection region is a polar cap
diagonal length of the region
degrees per pixel
number of pixels across
spherical polygon representing this region
bounds in right ascension and declination in order [xmin, ymin, xmax, ymax]
corners in right ascension and declination in clockwise order
projection origin (tangent point with the celestial sphere) in right ascension and declination
indices of skycells in the loaded skymap within this projection region
collection of all skycells in this projection region
center in 3D Cartesian space on the unit sphere
corners in 3D Cartesian space on the unit sphere
WCS representing this skycell
WCS properties as defined in the Level 3 association schema
projection origin (tangent point with the celestial sphere) in pixel coordinates
Methods Summary
contains_radec(radec)whether the given point(s) are contained within the bounds of this projection region
from_data(data[, skymap])build a projection region instance from a data array
from_skycell_index(index[, skymap])Attributes Documentation
- MAX_LENGTH = 0.08174916691321586
- MIN_AREA = 0.002791388883915502
- data
Projection region data.
(“index”, “ra_tangent”, “dec_tangent”, “ra_min”, “ra_max”, “dec_min”, “dec_max”, “orientat”, “x_tangent”, “y_tangent”, “nx”, “ny”, “skycell_start”, “skycell_end”)
- index
index in the loaded skymap
- is_polar
whether this projection region is a polar cap
- orientation
- pixel_scale
degrees per pixel
- pixel_shape
number of pixels across
- radec_bounds
bounds in right ascension and declination in order [xmin, ymin, xmax, ymax]
- radec_corners
corners in right ascension and declination in clockwise order
- radec_tangent
projection origin (tangent point with the celestial sphere) in right ascension and declination
- wcs_info
WCS properties as defined in the Level 3 association schema
- xy_tangent
projection origin (tangent point with the celestial sphere) in pixel coordinates
Methods Documentation
- contains_radec(radec: ndarray[tuple[Any, ...], dtype[float]]) ndarray[tuple[Any, ...], dtype[bool]][source]
whether the given point(s) are contained within the bounds of this projection region
- classmethod from_data(data: void, skymap: SkyMap = None) ProjectionRegion[source]
build a projection region instance from a data array
- Parameters:
data (numpy.void) – array with projection region parameters (see schema)
skymap (SkyMap) – sky map instance; defaults to global SKYMAP (Default value = None)
- classmethod from_skycell_index(index: int, skymap: SkyMap = None) ProjectionRegion[source]
- Parameters:
index (int) – index of the skycell
skymap (SkyMap) – sky map instance; defaults to global SKYMAP (Default value = None)
- Returns:
projection region corresponding to the given skycell
- Return type: