makeFluxLikeDA¶
- astraeus.xarrayIO.makeFluxLikeDA(flux, time, flux_units, time_units, name=None, y=None, x=None, order=None)¶
Make Xarray DataArray with flux-like dimensions (time, y, x).
Parameters¶
- fluxarray
3D array of flux or uncertainty values
- timearray
1D array of time values
- flux_unitsstr
Flux units (e.g., ‘electrons’)
- time_unitsstr
Time units (e.g., ‘BJD_TDB’)
- namestr
Name of flux-like array (e.g., ‘flux_unc’)
- yarray; optional
1D array of pixel positions, default is 0..flux.shape[1]
- xarray; optional
1D array of pixel positions, default is 0..flux.shape[2]
- orderint, list, or array; optional
Spectroscopic order, default is None
Returns¶
- da: object
Xarray DataArray