You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
May 9, 2017 - Notice of Upcoming CFMask Discontinuation
Starting June 2, 2017, users will no longer be able to order CFMask processing for Landsat Collection 1 Higher-Level data products. Equivalent information is now available in the pixel_qa band, which is included with all Higher-Level products. For more information on the pixel_qa band, see the Product Characteristics sections of the Landsat 4-7 and Landsat 8 Surface Reflectance Product Guides.
Add pixel_qa Bit Index table to processLandsat doc
Create well documented bitVectorToInt function
Choose sensible default values for processLandsat
Update tutorial to reflect these changes
Example of bitToInt function
defbit_pos_to_int(x):
"""Takes a list containing bit positions and returns the corresponding integer Args: x (list): A list of bit position (e.g.: [0,3] for 1001, aka 9) Return: The integer corresponding to the list of bit position provided in the list """bit_list= [0] * (max(x) +1)
foriinx:
bit_list[i] =1out=0forbitinbit_list[::-1]:
out= (out<<1) |bitreturnout
The text was updated successfully, but these errors were encountered:
loicdtx
changed the title
cfmask band will disappea, information migrated to pixel_qa band
cfmask band will disappear, information migrated to pixel_qa band
May 10, 2017
On the it value conversion, for a related package I suggested making a function with human-interpretable parameters that define features (=bits) that must (TRUE), must not (FALSE) or may (NA) be present in the output file: JornDallinga/JornDallinga.github.io#3
So, for instance, to obtain Landsat 8 "Clear" values one could have:
And that would return integers 322 and 386. This makes it easy to, for instance, not to filter out water pixels (by using water=NA, in which case the function returns 4 integers).
Note from ESPA:
L8 product guide
L4-7 product guide
TODO:
processLandsat
docbitVectorToInt
functionprocessLandsat
Example of
bitToInt
functionThe text was updated successfully, but these errors were encountered: