reconstruct_order#

arcesetc.reconstruct_order(sptype, wavelength, V, exp_time=None, signal_to_noise=None)[source]#

Return the counts as a function of wavelength for the spectral order nearest to wavelength for a star of spectral type sptype and V magnitude V.

Either exp_time or signal_to_noise should be supplied to the function (but not both).

Warning

arcesetc doesn’t know anything about saturation. Ye be warned!

Parameters:
sptypestr

Spectral type of the star.

wavelengthQuantity
Vfloat

V magnitude of the target.

exp_timeNone or float

If exp_time is a float, show the counts curve for that exposure time. Otherwise, use signal_to_noise to compute the appropriate exposure time.

signal_to_noiseNone or float

If signal_to_noise is a float, compute the appropriate exposure time to generate the counts curve that has S/N = signal_to_noise at wavelength wavelength. Otherwise, generate counts curve for exposure time exp_time.

Returns:
waveQuantity

Wavelengths.

fluxndarray

Flux at each wavelength.

exp_timeQuantity

Exposure time input; or required to reach S/N of signal_to_noise.