Unpack Bits
Python script to unpack QF Mask layer for a given bit range from the NASA's Black Marble VNP46A1/A2 Products and save it into GeoTiff. Please refer to the Table 4 of the User Guide for Cloud Flag description keys. https://viirsland.gsfc.nasa.gov/PDF/BlackMarbleUserGuide_v1.2_20220916.pdf
Official Website https://blackmarble.gsfc.nasa.gov/
Products description and download through NASA's LAADS DAAC https://ladsweb.modaps.eosdis.nasa.gov/missions-and-measurements/science-domain/nighttime-lights/