cadence
#
Module Contents#
Classes#
Attributes#
- class cadence.LSSTCadence(out_dir)[source]#
-
- get_pointings_single_hp(hp: int, n_pointings_init: int)[source]#
Get pointing positions from a single healpix, upgrading it if necessary
- hpint
a single healpix id in DC2 (NSIDE=32, nested)
- n_pointings_initint
how many pointings to get from this healpix
- tuple
ra, dec of pointings
- get_pointings(n_pointings_init: int)[source]#
Get pointing positions all over the DC2 field
- n_pointings_initint
how many pointings to get
- tuple
ra, dec of pointings
- get_obs_info(ra: numpy.ndarray, dec: numpy.ndarray, skip_existing=True, min_visits=0, skip_ddf=True)[source]#
Loop through pointings and query visits that fall inside FOV (run at generation time)
After DDF rejection, we might end up with a final n_pointings different from n_pointings_init
- bin_by_day(bandpasses=list('ugrizy'), skip_existing=True)[source]#
Bin the observations by day, trimming days that weren’t observed in any filter and in any pointing (run at generation time)
- bandpasseslist
Bandpasses to base binning on
- skip_existingbool, optional
whether to skip operations for pointings already saved to disk