class rubin_sim.skybrightness_pre.SkyModelPre(data_path=None, init_load_length=10, load_length=365, verbose=False, mjd0=None)

Bases: object

Load pre-computed sky brighntess maps for the LSST site and use them to interpolate to arbitrary dates.

Methods Summary

return_mags(mjd[, indx, badval, filters, ...])

Return a full sky map or individual pixels for the input mjd

Methods Documentation

return_mags(mjd, indx=None, badval=-1.6375e+30, filters=['u', 'g', 'r', 'i', 'z', 'y'], extrapolate=False)

Return a full sky map or individual pixels for the input mjd


Modified Julian Date to interpolate to

indxList of int (None)

indices to interpolate the sky values at. Returns full sky if None. If the class was instatiated with opsimFields, indx is the field ID, otherwise it is the healpix ID.

airmass_maskbool (True)

Set high (>2.5) airmass pixels to badval.

planet_maskbool (True)

Set sky maps to badval near (2 degrees) bright planets.

moon_maskbool (True)

Set sky maps near (10 degrees) the moon to badval.

zenith_maskbool (True)

Set sky maps at high altitude (>86.5) to badval.

badvalfloat (-1.6375e30)

Mask value. Defaults to the healpy mask value.

filterslist, opt

List of strings for the filters that should be returned. Default returns ugrizy.

extrapolatebool (False)

In indx is set, extrapolate any masked pixels to be the same as the nearest non-masked value from the full sky map.


A dictionary with filter names as keys and np.arrays as values which hold the sky brightness maps in mag/sq arcsec.