API

Public Step API

jwst.pathloss.pathloss_step Module

Account for signal loss in the optical path of spectroscopic modes.

Classes

PathLossStep([name, parent, config_file, ...])

Apply the path loss correction to a science exposure.

Complete Developer API

jwst.pathloss.pathloss Module

Functions

get_center(exp_type, input_model[, offsets])

Get the center of the target in the aperture.

shutter_above_is_closed(shutter_state)

Check if the shutter above the target shutter is closed.

shutter_below_is_closed(shutter_state)

Check if the shutter below the target shutter is closed.

get_aperture_from_model(input_model, match)

Determine the correct aperture in the model to use.

calculate_pathloss_vector(pathloss_refdata, ...)

Calculate the pathloss vectors from the pathloss model.

calculate_two_shutter_uniform_pathloss(...)

Calculate pathloss for uniform source, two-shutter slit.

do_correction(input_model[, pathloss_model, ...])

Execute all tasks for Path Loss Correction.

interpolate_onto_grid(wavelength_grid, ...)

Interpolate pathloss value onto grid.

is_pointsource(srctype)

Check whether input is a point source.

do_correction_mos(data, pathloss[, inverse, ...])

Path loss correction for NIRSpec MOS.

do_correction_fixedslit(data, pathloss[, ...])

Path loss correction for NIRSpec fixed-slit modes.

do_correction_ifu(data, pathloss[, inverse, ...])

Path loss correction for NIRSpec IFU.

do_correction_lrs(data, pathloss, user_slit_loc)

Path loss correction for MIRI LRS fixed-slit.

do_correction_soss(data, pathloss)

Path loss correction for NIRISS SOSS.