Utility Functions
The utils module provides helpful functions for Resample such as creating image mask from model’s DQ array, computing average pixel area, loading a custom WCS from an ASDF file, etc.
stcal.resample.utils Module
Functions
|
Create a weight map that is used for weighting input images when they are co-added to the ouput model. |
|
Build a bit mask from an input DQ array and a bitvalue flag |
|
Computes the average pixel area (in steradians) based on input WCS using pixels within either the bounding box (if available) or the entire data array as defined either by |
|
Check if the measurement_time keyword is present in the datamodel for use in exptime weighting. |
|
Differentiate between surface brightness and flux density data units. |
|
Returns True if |
|