The GridPolator API#

GridPolator Package#

The main interaction between the user and GridPolator is through the GridSpectra class. The GridSpectra class is used to store, recall, and interpolate a grid of spectra. However, since it is implemented in JAX, it is important to also alert the user of the default units that GridSpectra uses. The default units are:

  • flux: W m-2 um-1

  • wavelength: um

  • temperature: K

Classes#

GridSpectra(native_wl, params, spectra[, impl])

Store, recall, and interpolate a grid of spectra

GridPolator.config.flux_unit = Unit("W / (um m2)")#

The standard unit of flux.

This unit is used to standardize the flux in VSPEC calculations. \(W m^{-2} \mu m^{-1}\) is chosen because it is the standard spectral irrandience unit in PSG.

Type:

astropy.units.Unit

GridPolator.config.wl_unit = Unit("um")#

The standard unit of wavelength.

The output wavelength can still be changed by the user, but internally we want units to be consistent.

Type:

astropy.units.Unit

GridPolator.config.teff_unit = Unit("K")#

The standard unit of temperature.

This selection standardizes units across the package.

Type:

astropy.units.Unit