pytroll / satpy

Python package for earth-observing satellite data processing
http://satpy.readthedocs.org/en/latest/
GNU General Public License v3.0
1.06k stars 292 forks source link

Allow users to control data quality flag masking #223

Open djhoese opened 6 years ago

djhoese commented 6 years ago

Problem description

Typically in readers if there are data quality flags we, as the reader creators, decide on what should be masked out of the data to produce the nicest looking output/image. I have a use case where I would like to retrieve the DQFs with the image data, but not mask the image data beforehand. This way I can visualize the data and quickly switch which flags are used/masked.

anikfal commented 3 years ago

Regarding the VIIRS I01 dataset, all of the variables are as follows:

(0) /All_Data/VIIRS-I1-SDR_All/ModeGran (1) /All_Data/VIIRS-I1-SDR_All/ModeScan (2) /All_Data/VIIRS-I1-SDR_All/NumberOfBadChecksums (3) /All_Data/VIIRS-I1-SDR_All/NumberOfDiscardedPkts (4) /All_Data/VIIRS-I1-SDR_All/NumberOfMissingPkts (5) /All_Data/VIIRS-I1-SDR_All/NumberOfScans (6) /All_Data/VIIRS-I1-SDR_All/PadByte1 (7) /All_Data/VIIRS-I1-SDR_All/QF1_VIIRSIBANDSDR (8) /All_Data/VIIRS-I1-SDR_All/QF2_SCAN_SDR (9) /All_Data/VIIRS-I1-SDR_All/QF3_SCAN_RDR (10) /All_Data/VIIRS-I1-SDR_All/QF4_SCAN_SDR (11) /All_Data/VIIRS-I1-SDR_All/QF5_GRAN_BADDETECTOR (12) /All_Data/VIIRS-I1-SDR_All/Radiance (13) /All_Data/VIIRS-I1-SDR_All/RadianceFactors (14) /All_Data/VIIRS-I1-SDR_All/Reflectance (15) /All_Data/VIIRS-I1-SDR_All/ReflectanceFactors

I wonder if the quality flags are used in masking the data? And if they are not used, is it possible for the user to carry out this task?