You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone. I am using view.py to plot my hyp3 timeseries.h5 file. However when I use view.py timeseries.h5 '*202302' --lalo-label there goes a CRSError, detailed output shows here:
run view.py in MintPy version 1.6.1, date 2024-07-31
input file is timeseries file: /mnt/d/Baihetan/timeseries.h5 in float32 format
file size in y/x: (1015, 271)
input dataset: "['*202302']"
num of datasets in file timeseries.h5: 42
datasets to exclude (0):
[]
datasets to display (2):
['timeseries-20230205', 'timeseries-20230217']
data coverage in y/x: (0, 0, 271, 1015)
subset coverage in y/x: (0, 0, 271, 1015)
data coverage in lat/lon: (286980.0, 3036340.0, 297820.0, 2995740.0)
subset coverage in lat/lon: (286980.0, 3036340.0, 297820.0, 2995740.0)
colormap: jet
Traceback (most recent call last):
File "/home/griffin/ProgramFile/anaconda3/envs/isce/bin/view.py", line 10, in
sys.exit(main())
File "/home/griffin/ProgramFile/anaconda3/envs/isce/lib/python3.10/site-packages/mintpy/cli/view.py", line 182, in main
obj.configure(inps)
File "/home/griffin/ProgramFile/anaconda3/envs/isce/lib/python3.10/site-packages/mintpy/view.py", line 1586, in configure
inps = update_inps_with_file_metadata(inps, self.atr)
File "/home/griffin/ProgramFile/anaconda3/envs/isce/lib/python3.10/site-packages/mintpy/view.py", line 135, in update_inps_with_file_metadata
inps = check_map_projection(inps, metadata, print_msg=inps.print_msg)
File "/home/griffin/ProgramFile/anaconda3/envs/isce/lib/python3.10/site-packages/mintpy/view.py", line 214, in check_map_projection
inps.map_proj_obj = ccrs.UTM(utm_zone)
File "/home/griffin/ProgramFile/anaconda3/envs/isce/lib/python3.10/site-packages/cartopy/crs.py", line 1541, in init
super().init(proj4_params, globe=globe)
File "/home/griffin/ProgramFile/anaconda3/envs/isce/lib/python3.10/site-packages/cartopy/crs.py", line 675, in init
super().init(*args, **kwargs)
File "/home/griffin/ProgramFile/anaconda3/envs/isce/lib/python3.10/site-packages/cartopy/crs.py", line 202, in init
super().init(self.proj4_init)
File "/home/griffin/ProgramFile/anaconda3/envs/isce/lib/python3.10/site-packages/pyproj/crs/crs.py", line 348, in init
self._local.crs = _CRS(self.srs)
File "pyproj/_crs.pyx", line 2378, in pyproj._crs._CRS.init
pyproj.exceptions.CRSError: Invalid projection: +proj=utm +ellps=WGS84 +units=m +zone=48N +no_defs +type=crs: (Internal Proj Error: proj_create: Error 1027 (Invalid value for an argument): utm: Invalid value for zone)
It should due to the UTM coordinate of the Hyp3 products. However, the UTM coordinate label can be well displayed when I plot one single date, but fails for the multiple dates. I'm confused about it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone. I am using view.py to plot my hyp3 timeseries.h5 file. However when I use
view.py timeseries.h5 '*202302' --lalo-label
there goes a CRSError, detailed output shows here:It should due to the UTM coordinate of the Hyp3 products. However, the UTM coordinate label can be well displayed when I plot one single date, but fails for the multiple dates. I'm confused about it.
Beta Was this translation helpful? Give feedback.
All reactions