qualitymodis module

A class for the extraction and transformation of MODIS quality layers to specific information

Classes:

class pymodis.qualitymodis.QualityModis(infile, outfile, qType=None, qLayer=None, pType=None)[source]

A Class for the extraction and transformation of MODIS quality layers to specific information

Parameters:
  • infile (str) – the full path to the hdf file
  • outfile (str) – the full path to the parameter file
exportData()[source]

writes calculated QA values to physical .tif file

loadData()[source]

loads the input file to the object

loadQAArray()[source]

loads the QA layer to the object

qualityConvert(modisQaValue)[source]

converts encoded Bit-Field values to designated QA information

run()[source]

Function defines the entire process

setProductGroup()[source]

read productGroup from Metadata of hdf file

setProductType()[source]

read productType from Metadata of hdf file

setQAGroup()[source]

set QA dataset group type

setQALayer()[source]

function sets the input path of the designated QA layer