--
You received this message because you are subscribed to the Google Groups "MintPy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mintpy+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mintpy/702d6bdd-0b79-4c81-bc79-35f75ec368e1n%40googlegroups.com.
#############
Make tiffs of TS Data
##########
#convert each timeseries data into individual tiffs - PYTHON script
import h5py
f = h5py.File('geo/geo_timeseries_ERA5_ramp_demErr.h5', 'r')
list(f.keys())
#['bperp', 'date', 'timeseries']
#get list of dates
d = []
for date in f['date']:
d.append(int(date.decode('utf-8'))) #need to convert byte-string into simple string and then into int
#print(d)
#Run conversion tool over all dates
import os
for date in d:
os.system('save_gdal.py -d {} -o d{}.tif geo/geo_timeseries_ERA5_ramp_demErr.h5'.format(date, date))
_________________________________
To view this discussion on the web visit https://groups.google.com/d/msgid/mintpy/08c3c8bb-7678-4997-9fc7-e3275590cd0fn%40googlegroups.com.