InstrumentDefaults#
- class muse.variables_schema.InstrumentDefaults(
- *,
- dx_pixel_CI=None,
- dy_pixel_CI=None,
- slit_sep_CI=None,
- full_well_depth_CI=None,
- dx_pixel_SG=None,
- dy_pixel_SG=None,
- slit_sep_SG=None,
- pixels_SG=None,
- number_of_slits_SG=None,
- pixels_between_slits=None,
- spectral_slit_separation_SG=None,
- steps_per_raster_SG=None,
- mesh_transmission=None,
- oversample_x_SG=None,
- oversample_y_SG=None,
- center_diffraction=None,
- lpi=None,
- psf_fwhm=None,
- psf_fwhm_x=None,
- psf_fwhm_y=None,
- data_compression=None,
- ccd_gain=None,
- sum_over_dims_synthesis=None,
- main_lines_SG=None,
- main_lines_SG_wavelength=None,
- bands_SG=None,
- fov_mode=None,
- fov_restype=None,
- fov_sub_interpolation=None,
- exposure_times_SG=None,
- exposure_times_CI=None,
- electron_density=<Quantity 1.e+09 1 / cm3>,
- electron_pressure=<Quantity 3.e+15 K / cm3>,
- response_logT_min=4.8,
- target_logT=None,
- target_vdop=None,
- minimum_abundance=None,
- response_method='linear',
- normalization=1e-27,
- num_lines_keep=None,
- sum_lines=None,
- initial_wavelength_SG=None,
- channel_spectral_order=None,
Bases:
objectContainer of instrument properties used by functions and methods within the muse library; not a general-purpose instrument defaults class.
Every parameter is optional and defaults to
None; populate the ones a given instrument needs (seemuse.variablesfor the MUSE and AIA instances). Each field documents its meaning and the unit it is normalized to.Fields are validated and normalized on construction. Instances prevent top-level attribute reassignment; create modified copies with
attrs.evolve.This is not a deeply immutable container. The converters copy input values and make common array buffers read-only, but some nested objects still expose mutable APIs:
xarray.DataArrayfields can still have.data, coordinates,.attrs, and.encodingreassigned or mutated through xarray APIs.Object-dtype arrays or custom objects stored inside mappings can still mutate their contained Python objects even when the outer array or mapping is read-only.
muse.variables_schema.FrozenDictprevents normal mapping mutation, but it is still adictsubclass for pickle compatibility.
Because nested state can change, instances are intentionally unhashable.
Method generated by attrs for class InstrumentDefaults.
Attributes Summary
Wavelength bands for the SG.
CCD gain in electrons per DN.
Centers the peak of the PSF before convolution.
Spectral order of main line for each band (channel)
Data compression level.
Spatial pixel size along x-axis for the CI.
Spatial pixel size along x-axis for the SG.
Spatial pixel size along y-axis for the CI.
Spatial pixel size along y-axis for the SG.
Effective density for response creation.
Effective pressure for response creation.
Typical exposure times for the CI, keyed by solar condition.
Typical exposure times for the SG, keyed by solar condition.
This is the pad method used by
xarray.DataArray.padType of tiling and resolution matching.
Does a subgrid interpolation.
Full well depth in DN for the CI.
Wavelength at SG_xpixel=0 for slit=0, in Angstroms.
Instrumental width sigma in Angstroms.
Lines per inch of mesh grid, keyed by diffraction channel.
Main spectral lines for the SG, grouped per channel.
Center of the main spectral lines in angstrom, keyed by line name.
Mesh transmission coefficient, keyed by diffraction channel.
Minimum abundance considered for response creation.
Normalization in the response function.
Number of lines conserved independently for the response creation.
Number of slits in the SG.
Oversampling factor along x-axis for the SG.
Oversampling factor along y-axis for the SG.
Number of pixels along the spectral dimension for the SG.
Number of pixels between slits for the SG.
FWHM of the core PSF.
FWHM of the core PSF in x direction.
FWHM of the core PSF in y direction.
Minimum logT for response creation.
Type of interpolation in the response creation.
Slit separation in pixels to convert the CI into SG format.
Slit separation in pixels for the SG.
Spectral slit separation for the SG.
Number of steps per raster for the SG.
Sum all lines for response creation.
Dimensions to sum over during synthesis/inversions.
Target logT values for different solar conditions.
Target vdop values for different solar conditions.
Attributes Documentation
-
bands_SG:
astropy.units.Quantity| None# Wavelength bands for the SG.
Normalized to Angstroms.
-
ccd_gain:
astropy.units.Quantity| None# CCD gain in electrons per DN.
-
dx_pixel_CI:
astropy.units.Quantity| None# Spatial pixel size along x-axis for the CI.
Normalized to arcseconds.
-
dx_pixel_SG:
astropy.units.Quantity| None# Spatial pixel size along x-axis for the SG.
Normalized to arcseconds.
-
dy_pixel_CI:
astropy.units.Quantity| None# Spatial pixel size along y-axis for the CI.
Normalized to arcseconds.
-
dy_pixel_SG:
astropy.units.Quantity| None# Spatial pixel size along y-axis for the SG.
Normalized to arcseconds.
-
electron_density:
astropy.units.Quantity# Effective density for response creation.
Normalized to inverse cubic centimeters.
-
electron_pressure:
astropy.units.Quantity# Effective pressure for response creation.
Normalized to Kelvin per cubic centimeter.
- exposure_times_CI: Mapping | None#
Typical exposure times for the CI, keyed by solar condition.
Values normalized to seconds.
- exposure_times_SG: Mapping | None#
Typical exposure times for the SG, keyed by solar condition.
Values normalized to seconds.
- fov_mode: str | None#
This is the pad method used by
xarray.DataArray.pad
-
full_well_depth_CI:
astropy.units.Quantity| None# Full well depth in DN for the CI.
- initial_wavelength_SG: DataArray | None#
Wavelength at SG_xpixel=0 for slit=0, in Angstroms.
Values normalized to Angstroms.
- instrumental_width_sg#
Instrumental width sigma in Angstroms.
FWHM in pixels converted to 1 sigma in Angstroms. Value, .0815, provided by Paul B. Value has spectral plate scale baked in and should be calculated using a future property.
- lpi: Mapping | None#
Lines per inch of mesh grid, keyed by diffraction channel.
The set of keys defines which channels have diffraction patterns.
- main_lines_SG_wavelength: Mapping | None#
Center of the main spectral lines in angstrom, keyed by line name.
Values normalized to Angstroms.
-
pixels_SG:
astropy.units.Quantity| None# Number of pixels along the spectral dimension for the SG.
-
pixels_between_slits:
astropy.units.Quantity| None# Number of pixels between slits for the SG.
-
psf_fwhm:
astropy.units.Quantity| None# FWHM of the core PSF.
Normalized to arcseconds.
-
psf_fwhm_x:
astropy.units.Quantity| None# FWHM of the core PSF in x direction.
Normalized to arcseconds.
-
psf_fwhm_y:
astropy.units.Quantity| None# FWHM of the core PSF in y direction.
Normalized to arcseconds.
-
slit_sep_CI:
astropy.units.Quantity| None# Slit separation in pixels to convert the CI into SG format.
-
slit_sep_SG:
astropy.units.Quantity| None# Slit separation in pixels for the SG.
-
spectral_slit_separation_SG:
astropy.units.Quantity| None# Spectral slit separation for the SG.
Normalized to Angstroms.