Also see an visiliazed UI on Baidu Pan: https://pan.baidu.com/s/1FfDVzu3mlM9wItu7KVTl3A Fetch code: 2333
GDAL
numpy >= 1.11.1
pip install git+https://github.com/Kindron/geotool.git
from geotool.tif_process import GeoTiff, define_ref_predict
from geotool.tif_merge import run_merge
tif = GeoTiff('xx.tif')
# if you want to clip tif with grid reserved geo reference
tif.clip_tif_with_grid(512, 'out_dir')
# if you want to clip tif with shape file
tif.clip_tif_with_shapefile('shapefile.shp', 'out_dir')
# if you want to mask tif with shape file
tif.mask_tif_with_shapefile('shapefile.shp', 'save_path.tif')
# After you get your model results(pngs or tifs), you can redefine their reference
# with you clipped before, notice they must match names
define_ref_predict('cipped_before_dir', 'your_result_dir', 'save_dir')
# if you want to merge tifs
run_merge('tif_dir', 'save_path.tif')
- Kingdrone - Initial work - geotool