hispecdrp.primitives.spectral_extraction.iso_lambda_shear

Iso-λ shear from HDF PSF stamps for sheared Horne extraction.

Functions

create_trace_shear_from_sim_hdf(spectrograph, *)

Per-order iso-λ shear ∂row/∂col on the oriented spectral-row grid.

order_list_for_spectrograph(spectrograph)

Echelle order numbers for spectrograph (public helper).

psf_stamp_shear_dx_dy(stamp, *, oversample)

Measure native-detector shear dx/dy from one oversampled PSF stamp.

create_trace_shear_from_sim_hdf(spectrograph, *, fiber=2, n_pix=4096)[source]

Per-order iso-λ shear ∂row/∂col on the oriented spectral-row grid.

Shape matches TracePosModel.pos_fib*: (n_orders, n_pix), with shear[k, x] the spectral-row shift per cross-dispersion pixel at spectral sample x for echelle order index k.

order_list_for_spectrograph(spectrograph)[source]

Echelle order numbers for spectrograph (public helper).

psf_stamp_shear_dx_dy(stamp, *, oversample, min_row_flux_frac=0.001)[source]

Measure native-detector shear dx/dy from one oversampled PSF stamp.

Stamp layout matches _deposit_oversampled_psf_numba(): axis 0 is cross-dispersion (y), axis 1 is spectral (x). Returns detector-pixel shear (spectral shift per cross-dispersion pixel).