convertmodis
module¶
Convert MODIS HDF file to GeoTiff file or create a HDF mosaic file for several tiles using Modis Reprojection Tools.
Classes:
Functions:
-
pymodis.convertmodis.
checkMRTpath
(mrtpath)[source]¶ Function to check if MRT path it correct
- Parameters
mrtpath (str) – the path to MRT directory
- Returns
The path to ‘bin’ and ‘data’ directory inside MRT path
-
class
pymodis.convertmodis.
convertModis
(hdfname, confile, mrtpath)[source]¶ Bases:
object
A class to convert modis data from hdf to tif using resample (from MRT tools)
- Parameters
-
class
pymodis.convertmodis.
createMosaic
(listfile, outprefix, mrtpath, subset=False)[source]¶ Bases:
object
A class to convert several MODIS tiles into a mosaic
- Parameters
listfile (str) – the path to file with the list of HDF MODIS file
outprefix (str) – the prefix for output files
mrtpath (str) – the full path to mrt directory which contains the bin and data directories
subset (str) – a string composed by 1 and 0 according with the layer to mosaic. The string should something like ‘1 0 1 0 0 0 0’