Synthetic photometry (simqso.sqphoto)

Reference/API

simqso.sqphoto.nmgy2abmag(_b, f, df=None)[source]
simqso.sqphoto.abmag2nmgy(_b, m)[source]
simqso.sqphoto.nmgy2asinhmag(_b, f, df=None)[source]
simqso.sqphoto.asinhmag2nmgy(_b, m)[source]
class simqso.sqphoto.sdssPhotoUnc(b)[source]

Bases: object

In a given SDSS band “b”, provide the uncertainty for a given flux in nanomaggies (f_nmgy) based on the distribution of observing conditions.

–> Currently underestimates true scatter by using gaussians for the scatter, whereas the true distributions generally have long tails to higher values for sky, nEff, etc.

see http://classic.sdss.org/dr7/algorithms/fluxcal.html for details

class simqso.sqphoto.empiricalPhotoUnc[source]

Bases: object

approximation only valid in sky-dominated regime

class simqso.sqphoto.ukidsslasPhotoUnc(b)[source]

Bases: simqso.sqphoto.empiricalPhotoUnc

class simqso.sqphoto.ukidssdxsPhotoUnc(b)[source]

Bases: simqso.sqphoto.empiricalPhotoUnc

as with Stripe82, not valid at bright magnitudes (m<~20)

class simqso.sqphoto.sdssStripe82PhotoUnc(b)[source]

Bases: simqso.sqphoto.empiricalPhotoUnc

this fails at m<~18 when SDSS detections are no longer sky-dominated, but not really interested in bright objects on the Stripe… also, dominated by calibration uncertainty for bright objects anyway

class simqso.sqphoto.cfhtlsWidePhotoUnc(b)[source]

Bases: simqso.sqphoto.empiricalPhotoUnc

as with Stripe82, not valid at bright magnitudes (m<~19)

class simqso.sqphoto.allwisePhotoUnc(b)[source]

Bases: object

simqso.sqphoto.piecewise_linear(x, x0, y0, k)[source]
class simqso.sqphoto.tmassPhotoUnc(b)[source]

Bases: object

simqso.sqphoto.load_photo_map(photSystems)[source]
simqso.sqphoto.getPhotoCache(wave, photoMap)[source]
simqso.sqphoto.calcSynPhot(spec, photoMap=None, photoCache=None, mags=None, fluxes=None)[source]
simqso.sqphoto.calcObsPhot(synFlux, photoMap, seed=None)[source]
class simqso.sqphoto.LazyPhotoMap(photSystems)[source]

Bases: object

Needed for using photoMap in multiprocessing calls

calcSynPhot(spec)[source]
getBandpasses()[source]