input_jwst_model_to_dict

jwst.resample.resample.input_jwst_model_to_dict(model, weight_type, enable_var, compute_err)[source]

Convert a data model to a dictionary of keywords and values expected by stcal.resample.

Parameters:
modelDataModel

A JWST data model.

weight_typestr

The weighting type for adding models’ data.

enable_varbool

Indicates whether to resample variance arrays.

compute_errstr

The method to compute the output model’s error array.

Returns:
dict

A dictionary of keywords and values expected by stcal.resample.