lfast_etc.Sky

class lfast_etc.Sky(path=PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/schmidt-observatories-lfast-etc/checkouts/latest/src/lfast_etc/data/sky/skytable_secz1.3.fits'), scale=1.0)[source]

Sky radiance and transmission from a SkyCalc FITS table.

The bundled table is grey time: the ESO SkyCalc model at 2640 m (no Kitt Peak site exists in SkyCalc), August, airmass 1.3, PWV 2.5 mm, moon up at 45 deg altitude and 45 deg from the target (about 60% of the visible sky), R=20,000 sampling. scale=0.4 is a crude dark-time proxy. Resels narrower than the table sampling (R > 20,000, i.e. the CSHELL presets) fall back to the nearest sample, so airglow lines are pre-smoothed to R=20,000. Generate your own table at https://www.eso.org/observing/etc/skycalc/ for other conditions or a finer grid.

Parameters:
  • path (str or Path) – SkyCalc FITS file with columns lam [nm], flux [ph/s/m^2/um/arcsec^2] and trans.

  • scale (float) – Multiplicative factor on the sky radiance (e.g. crude moon scaling).

__init__(path=PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/schmidt-observatories-lfast-etc/checkouts/latest/src/lfast_etc/data/sky/skytable_secz1.3.fits'), scale=1.0)[source]

Methods

__init__([path, scale])

describe()

radiance_per_bin(wavelength_nm, delta_lambda_nm)

Mean sky radiance in each bin [ph/s/m^2/nm/arcsec^2].

transmission(wavelength_nm)

Atmospheric transmission interpolated onto wavelength_nm.

transmission_smoothed(wavelength_nm[, width_nm])

Atmospheric transmission box-averaged over width_nm (the sampling of the shipped K_opt), used to take the 1 nm atmosphere out of K_opt before the line-spread function puts the resolved one back (see LFASTETC, lsf).