apply_region_mask_from_db¶
- grizli.prep.apply_region_mask_from_db(flt_file, dq_value=1024, verbose=True, in_place=True)[source]¶
Query the
exposure_region_mask
table and apply masks- Parameters
- flt_filestr
Image filename
- dq_valueint
Value to “OR” into the DQ extension
- verbosebool
Messaging
- in_placebool
Apply to DQ extension and resave
flt_file
- Returns
- region_maskarray-like
If a region mask for
flt_file
is found in the database, return a mask array derived from the database footprint. Otherwise, returnNone
.