0

I have a polygon shapefile and want to divide them into very small regions using python.

This is being done as Google Earth Engine does not download data over large areas, hence I want to divide the whole shapefile and download the data individually. I realise there is an option to export data to google cloud/drive but it is not what I'm looking for.

dataset = ee.ImageCollection('IDAHO_EPSCOR/GRIDMET').filter(ee.Filter.date('2021-06-01','2021-10-31'));
Fuel_Moisture_1000Hr = dataset.select('fm1000').median() 
geemap.ee_export_image(Fuel_Moisture_1000Hr, filename=os.path.join(export_path, 'fm_1000hr.tif'), scale=4638.3, region=roi, file_per_band=False)

The ROI is large and I want to divide them into small regions and run the above command in a for loop.

Vince
  • 20,017
  • 15
  • 45
  • 64
Hrushi
  • 169
  • 7

1 Answers1

0

You could use QGIS tool for this task: Split vector layer

If you want to use python specifically, you can call this tool in pyqgis.

Comrade Che
  • 7,091
  • 27
  • 58
  • I want to split them in a python script, pyqgis I think pyqgis is not a very good choice then as we can't directly import it – Hrushi Aug 24 '22 at 05:13