sp_validation.dashboard.sky¶
Footprint and field maps in a projection that suits the survey.
The footprint is split into its disconnected parts (e.g. the main patch and a long thin strip). Each part gets its own Lambert azimuthal equal-area (zenithal equal-area) projection centred on it, rotated so its long axis is horizontal unless it is the main part, which keeps north up; RA increases to the left as on the sky. All parts are drawn at the same angular scale, the main part on top and any others below it.
Map products are field_maps_<version>.npz (see
sp_validation.dashboard.field_maps) and the cosmo_val footprint
footprint_<version>.npz. Quantities are ratios of pixel sums, coarsened
by summing nested children before dividing.
- class Zenithal(ra0: float, dec0: float, rotation: float = 0.0)[source]¶
Bases:
objectLambert azimuthal equal-area projection about
(ra0, dec0).Output coordinates are in degrees on the projection plane, x increasing to the east-on-sky-left convention (x grows toward decreasing RA), then rotated by
rotationdegrees.
- footprint_parts(pixels, nside, nest=True, coarse=64, min_fraction=0.01)[source]¶
Split occupied pixels into connected parts, largest first.
Connectivity is judged on a
coarsegrid so masking holes do not split a patch. Returns a list of boolean masks overpixels; parts smaller thanmin_fractionof the total are attached to the nearest part.
- class Part(projection: sp_validation.dashboard.sky.Zenithal, xlim: tuple, ylim: tuple)[source]¶
Bases:
object- property width¶
- property height¶
- make_parts(pixels, nside, nest=True, margin=1.5)[source]¶
Projection and extent for each disconnected part of the footprint.
- coarsen(pixels, sums, nside, nside_out)[source]¶
Sum nested-pixel sums onto
nside_out; returns (pixels, sums).
- raster(part, pixels, values, nside, resolution, nest=True)[source]¶
Sample a partial HEALPix map on the part’s projection-plane grid.
- graticule(ax, part, step_ra=None, step_dec=10, color='#C5B89E', label=True)[source]¶
Draw RA/Dec lines across the part and label them along the frame.
- draw_map(ax, part, pixels, values, nside, cmap, norm, resolution=None, labels=True, scale_bar=False, grid_color='#C5B89E')[source]¶
- coverage(footprint, nside_out)[source]¶
Fraction of each
nside_outpixel covered by the occupied footprint.
- median_quantity(maps, name, nside_out, footprint=None)[source]¶
Median over pixels of one map quantity.
- quantity(maps, name, nside_out, footprint=None)[source]¶
Pixels and values of one named map quantity at
nside_out.
- footprint_map(maps, footprint, out, nside=512, stats=None)[source]¶
Effective galaxy density over the footprint.