build_regular_wavelength_wcs¶
- msaexp.utils.build_regular_wavelength_wcs(slits, pscale_ratio=1, keep_wave=False, wave_scale=1, log_wave=False, refmodel=None, wave_range=None, wave_step=None, wave_array=None, ypad=2, force_nypix=None, force_yoffset=None, get_weighted_center=False, center_on_source=True, fix_slope=None, **kwargs)[source]¶
Create a spatial/spectral WCS covering footprint of the input
Refactored from
jwst.resample.resample_spec.ResampleSpecData.build_nirspec_output_wcsfor regularly-spaced grids in linear or log wavelength.- Parameters
- wave_scalefloat
Factor by which to scale the wavelength grid relative to the median dispersion of a single slit
- log_wavebool
Wavelength grid is evenly spaced in log(wave)
- get_weighted_centerbool
Try to find the source centroid in the slit
- Returns
- target_wavesarray-like
Wavelength grid
- header
Header WCS header
- data_sizetuple
Image dimensions of output array
- output_wcs
gwcs.wcs.WCS Spectroscopic WCS