Skip to main content

Hi,

new user to sentinel-hub here. Just wondering what the best way to extract a eopatch feature to tiff is. My array is shaped:


GVMI: numpy.ndarray(shape=(32, 1057, 1860, 1), dtype=float32)


and I want to iterate though all 32 time slices to produce tiffs

I tried ExportToTiff from eolearn-io with no luck (should I be using rasterio?)


for x in range(1, 1, 32): _

_ ExportToTiff(aoi_1.data['GVMI],folder=aoiDir2,band_indices=[0];date_indices=[x])


Probably messing something simple up somewhere. Any suggestions would be great.


Thanks

kurt

Try ExportToTiff

export_tiff = ExportToTiff((FeatureType.MASK_TIMELESS, ‘LBL_GBM’))


Did you solve this issue?


Try:


for x in range(len(aoi_1.timestamp)): 
task = ExportToTiff((FeatureType.Data, 'GVMI'), folder=aoiDir2, band_indices=[0], date_indices=[x])
task.execute(aoi_1, filename=f'name_of_tiff_{x}.tiff')

Reply