makeLCDA

astraeus.xarrayIO.makeLCDA(spec, wave, time, flux_units, wave_units, time_units, name=None)

Make Xarray DataArray with light curve (wavelength, time) dimensions.

Parameters

spec: ndarray

2D array of spectra or uncertainty values

wave: ndarray

1D array of wavelength values

time: ndarray

1D array of time values

flux_units: str

Flux units (e.g., ‘electrons’)

wave_units: str

Wavelength units (e.g., ‘microns’)

time_units: str

Time units (e.g., ‘BJD_TDB’)

name: str

Name of spec-like array (e.g., ‘spec_unc’)

Returns

da: object

Xarray DataArray