Some python scripts to process modis data.
This package mainly use to convert modis land use to WRF geogrid format.
modis_package is licensed under the terms of GNU GPL 2.
main: gdal, python-geogrid
download modis data
./chrome_download.py -t 20190101 -d MCD12Q1 -a china (need chromedriver)
./download -t 20190101 -d MCD12Q1 -a china
joint modis tile data
./joint_tile.py -t 20010101 -d MCD12Q1 -a china -s 1
resample modis data grid to WSG84 projection
./resample_grid.py -i jointed.tif -s 1
clip ara to a square area
./clip_region.py -i resampled.tif -s 1 -w "20, 70, 100, 10"
convert to geogrid format (WRF supported)
./convert_geogrid.py -i clipped.tif -s 1
See the code (argparse part) to specific parameters