Closed fukun364202818 closed 1 year ago
đź‘‹ Thanks for opening your first issue here! Please filled out the template with as much details as possible. We appreciate that you took the time to contribute! Make sure you read our contributing guidelines.
Close this issue as it's related to insarmaps_scripts
and has been tracked there.
Description of the problem Hello! I generated KeyError when converting the .he5 file generated by save_hdfeos5.py using hdfeos5_2json_mbtiles.py: "Unable to synchronously open object (object 'latitude' doesn't exist)", then I looked at the .he5 file and found that there was indeed no latitude, longitude. Why is that? How do I fix this? thank you
Full script that generated the error Unable to synchronously open object (object 'latitude' doesn't exist)
read lat and long. MintPy doesn't seem to support this yet, so we use the raw
h5 file object
f = h5py.File(he_obj.file, "r") lats = np.array(f["HDFEOS"]["GRIDS"]["timeseries"]["geometry"]["latitude"]) lons = np.array(f["HDFEOS"]["GRIDS"]["timeseries"]["geometry"]["longitude"])
Full error message
Unable to synchronously open object (object 'latitude' doesn't exist)
System information