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:
  • model (DataModel) – A JWST data model.

  • weight_type (str) – The weighting type for adding models’ data.

  • enable_var (bool) – Indicates whether to resample variance arrays.

  • compute_err (str) – The method to compute the output model’s error array.

Returns:

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

Return type:

dict