geco-bern / ingestr

Data ingest for points (given longitude, latitude, and required dates) from large global files or remote data servers and create time series at user-specified temporal resolution.
https://geco-bern.github.io/ingestr
42 stars 21 forks source link

MODOCGA quality control flag #45

Closed khufkens closed 2 years ago

khufkens commented 2 years ago

Resolve the correct interpretation of the quality control flags.

https://lpdaac.usgs.gov/products/modocgav006/

khufkens commented 2 years ago

As per: https://ladsweb.modaps.eosdis.nasa.gov/filespec/MODIS/6/MODOCGA

Note: Bits are listed from the MSB (bit 31) to the LSB (bit 0).

Bit(s) Description
28-31  band 15 data quality four bit range;
       0000 -- highest quality
       0111 -- noisy detector
       1000 -- dead detector; data interpolated in L1B
       1001 -- solar zenith >= 86 degrees
       1010 -- solar zenith >= 85 and < 86 degrees
       1011 -- missing input
       1100 -- internal constant used in place of climatological data 
               for at least one atmospheric constant
       1101 -- correction out of bounds pixel constrained to extreme 
               allowable value
       1110 -- L1B data faulty
       1111 -- not processed due to deep ocean or clouds
24-27  band 14 data quality four bit range;
       SAME AS ABOVE
20-23  band 13 data quality four bit range;
       SAME AS ABOVE
16-19  band 12 data quality four bit range;
       SAME AS ABOVE
12-15  band 11 data quality four bit range;
       SAME AS ABOVE
8-11   band 10 data quality four bit range;
       SAME AS ABOVE
4-7    band 9 data quality four bit range;
       SAME AS ABOVE
0-3    band 8 data quality four bit range;
       SAME AS ABOVE
khufkens commented 2 years ago

https://github.com/computationales/ingestr/commit/54151bab8bd2bf2b30525abcfcb24078e79ac30d

part 1

khufkens commented 2 years ago

fixed per https://github.com/computationales/ingestr/commit/54151bab8bd2bf2b30525abcfcb24078e79ac30d

only retaining highest quality