Submodule to query the ESO ETC

This module is somehow specialized and limited to compare the results of the 4FS ETC. So, the parameters are those which can be adjusted in the 4FS ETC as well.

Examples

>>> from qmostetc.eso.etc import run, config
>>> tbl = run(config(resolution='lrs', template='Pickles_A0V',
...                  mag=16*u.ABmag, magband='Johnson.V',
...                  airmass=1.05, brightness='gray',
...                  exptime=1200*u.s))  
>>> print(tbl)  
    wavelength     arm  ...     obstarget         totalsignal
        nm              ...      electron
------------------ ---- ... ------------------ ------------------
367.13015535029183 blue ... 14.434174356930033 29.523836856930032
 367.1618925465504 blue ...  29.67490607184254  48.14995240938677
               ...  ... ...                ...                ...
 952.3939453903644  red ... 214.20185990551548  254.5528153065562
  952.433732234933  red ... 143.57961792976232 175.63715498930236
Length = 18432 rows
qmostetc.eso.etc.run(cfg)

Call the ESO ETC with a given configuration

To not overload the ESO ETC, it will cache the results and re-use them on repeated queries.

If the environment variable ESO_CACHE is set, its path is used to cache the ESO queries.

Parameters:
cfgdict

ESO configuration as a nested dictionary. This may be created with the function config().

Returns:
astropy.table.Table

Result table

qmostetc.eso.etc.config(resolution, template, airmass, mag, magband='sdss_r', brightness='gray', exptime=<Quantity 1200. s>, shape='point', sersic_radius=None, sersic_index=None)

Generate an ESO ETC configuration from the parameters

Parameters:
resolutionstr

Desired spectrograph for this target. One of ‘lrs’ or ‘hrs’.

templatestr

SEDTemplate name. One of ‘pickels’, ‘elliptical’, ‘sa’, ‘starb3’.

decastropy.units.Quantity

Target declination [deg]

magastropy.units.Quantity

Apparent magnitude for the target already band defined in the reddened. [ABmag or VEGAmag]

magbandstr

Magnitude band. One of ‘U’, ‘B’, ‘V’, ‘GAIA_GBP’, ‘sdss_u’, ‘sdss_g’, ‘sdss_r’, ‘sdss_i’.

brightnessstr

Sky brightness. One of “dark”, “gray”, “bright”.

exptimeastropy.units.Quantity

Exposure time [s]

shapestr

Source morphology. One of “point”, ‘flat’ or “sersic”. If “sersic”, the additional parameters “sersic_radius” and “sersic_index” need to be given.