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: object

Lambert 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 rotation degrees.

ra0: float
dec0: float
rotation: float = 0.0
forward(ra, dec)[source]
inverse(x, y)[source]
static _rotate(x, y, angle)[source]
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 coarse grid so masking holes do not split a patch. Returns a list of boolean masks over pixels; parts smaller than min_fraction of the total are attached to the nearest part.

class Part(projection: sp_validation.dashboard.sky.Zenithal, xlim: tuple, ylim: tuple)[source]

Bases: object

projection: Zenithal
xlim: tuple
ylim: tuple
property width
property height
_centre(ra, dec)[source]
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.

_far_side(part, ra, dec)[source]
_edge_label(ax, x, y, box, text, side)[source]
_scale_bar(ax, part, length=10)[source]
draw_map(ax, part, pixels, values, nside, cmap, norm, resolution=None, labels=True, scale_bar=False, grid_color='#C5B89E')[source]
map_grid(fig, spec, parts)[source]

Axes for every part inside spec: main part above, others below.

_ratio(num, den)[source]
coverage(footprint, nside_out)[source]

Fraction of each nside_out pixel 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.

_robust_limits(values, symmetric=False, q=(1, 99))[source]
_colorbar(fig, im, ax, label, symmetric)[source]
footprint_map(maps, footprint, out, nside=512, stats=None)[source]

Effective galaxy density over the footprint.

_aspect(parts)[source]
paper_map_pair(maps, out, which)[source]

Draw the catalogue paper’s two related sky-map quantities.

field_maps(maps, out, which, footprint=None, layout='wide')[source]

2 x 2 small multiples of map quantities over the main footprint part.

Diverging quantities use a symmetric range about zero; all ranges are robust (1st-99th percentile) so single pixels do not set the scale.