1.4.1.1.3.1.2. polar2grid.enhancements.viirs module

Enhancement functions for VIIRS.

polar2grid.enhancements.viirs._cloud_layers_lmh(data_np: ndarray) ndarray[source]
polar2grid.enhancements.viirs.cloud_layers_lmh(img: XRImage) XRImage[source]

Convert bit-mask CloudLayer to Low-Medium-High categories.

This is done in the CIRA version of the product for easier readability.

Data is a bit-mask of (0=clear), 1 first layer, 2 second layer, 4 third layer, 8 fourth layer, 16 fifth layer. The first and second layers are grouped into a “Low” layer, third and fourth layers are grouped into a “Mid” layer, and the fifth layer is called “High”. This function groups these 3 layer types with the final output being Clear (0), Low (1), Mid (2), Mid + Low (3), High (4), High + Low (5), High + Mid (6), and High + Mid + Low (7).