load_wcs

romancal.assign_wcs.load_wcs(input_model, reference_files=None)[source]

Create a gWCS object and store it in Model.meta.

Parameters:
  • input_model (WfiImage) – The exposure.

  • reference_files (dict) – A dict {reftype: reference_file_name} containing all reference files that apply to this exposure.

Returns:

output_model – The input image file with attached gWCS object. The input_model is modified in place.

Return type:

ImageModel