SkyModelPre¶
- 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
- Parameters:
- mjd
float
Modified Julian Date to interpolate to
- indx
List
ofint
(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_mask
bool
(True) Set high (>2.5) airmass pixels to badval.
- planet_mask
bool
(True) Set sky maps to badval near (2 degrees) bright planets.
- moon_mask
bool
(True) Set sky maps near (10 degrees) the moon to badval.
- zenith_mask
bool
(True) Set sky maps at high altitude (>86.5) to badval.
- badval
float
(-1.6375e30) Mask value. Defaults to the healpy mask value.
- filters
list
, opt List of strings for the filters that should be returned. Default returns ugrizy.
- extrapolate
bool
(False) In indx is set, extrapolate any masked pixels to be the same as the nearest non-masked value from the full sky map.
- mjd
- Returns:
- sbs
dict
A dictionary with filter names as keys and np.arrays as values which hold the sky brightness maps in mag/sq arcsec.
- sbs