-
Notifications
You must be signed in to change notification settings - Fork 299
Open
Description
Description of the problem
In the Mintpy directory there is no maskTempCoh.h5 file not created as a result it can not pull and read the mask file for the invert network and velocity estimation .
Full script that generated the error
`%matplotlib inline
inv_vmin, inv_vmax = util.get_mintpy_vmin_vmax(ts_path, "timeseries", mask_path=mint_path/'maskTempCoh.h5', stack_depth_limit=20, bottom_percentile=0.05)
convert m to cm
inv_vmin = inv_vmin * 100
inv_vmax = inv_vmax * 100
uncomment the following 2 lines to manually set the vmin and vmax values
inv_vmin = -2.0
inv_vmax = 2.0
print(f"inv_vmin: {inv_vmin}, inv_vmax: {inv_vmax}")
scp_args = f'{ts_path} --notick --noaxis -v {inv_vmin} {inv_vmax} --dpi 600 --figsize 15 15'
view.main(scp_args.split())`
**Full error message**
FileNotFoundError Traceback (most recent call last)
Cell In[24], line 2
1 get_ipython().run_line_magic('matplotlib', 'inline')
----> 2 inv_vmin, inv_vmax = util.get_mintpy_vmin_vmax(ts_path, "timeseries", mask_path=mint_path/'maskTempCoh.h5', stack_depth_limit=20, bottom_percentile=0.05)
4 # convert m to cm
5 inv_vmin = inv_vmin * 100
File ~/Data_Recipe_Jupyter_Books/opensarlab_MintPy_Recipe_Book/util/util.py:121, in get_mintpy_vmin_vmax(dataset_path, dataset_name, mask_path, stack_depth_limit, bottom_percentile)
118 darr = darr[::stride, :, :]
120 if mask_path:
--> 121 with h5py.File(mask_path, 'r') as m:
122 mask = m["mask"]
123 darr *= mask
File ~/.local/envs/opensarlab_mintpy_recipe_book/lib/python3.11/site-packages/h5py/_hl/files.py:566, in File.__init__(self, name, mode, driver, libver, userblock_size, swmr, rdcc_nslots, rdcc_nbytes, rdcc_w0, track_order, fs_strategy, fs_persist, fs_threshold, fs_page_size, page_buf_size, min_meta_keep, min_raw_keep, locking, alignment_threshold, alignment_interval, meta_block_size, track_times, **kwds)
557 fapl = make_fapl(driver, libver, rdcc_nslots, rdcc_nbytes, rdcc_w0,
558 locking, page_buf_size, min_meta_keep, min_raw_keep,
559 alignment_threshold=alignment_threshold,
560 alignment_interval=alignment_interval,
561 meta_block_size=meta_block_size,
562 **kwds)
563 fcpl = make_fcpl(track_order=track_order, track_times=track_times,
564 fs_strategy=fs_strategy, fs_persist=fs_persist,
565 fs_threshold=fs_threshold, fs_page_size=fs_page_size)
--> 566 fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
568 if isinstance(libver, tuple):
569 self._libver = libver
File ~/.local/envs/opensarlab_mintpy_recipe_book/lib/python3.11/site-packages/h5py/_hl/files.py:241, in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
239 if swmr and swmr_support:
240 flags |= h5f.ACC_SWMR_READ
--> 241 fid = h5f.open(name, flags, fapl=fapl)
242 elif mode == 'r+':
243 fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)
File h5py/_objects.pyx:54, in h5py._objects.with_phil.wrapper()
File h5py/_objects.pyx:55, in h5py._objects.with_phil.wrapper()
File h5py/h5f.pyx:104, in h5py.h5f.open()
FileNotFoundError: [Errno 2] Unable to synchronously open file (unable to open file: name = '/home/jovyan/MintPy/maskTempCoh.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
System information
- Operating system: Windows
- Python environment: conda
- MintPy version: Using OpenSarLab
- InSAR processor/product: hyp3
- Your custom / default template file (if the bug is related to a specific dataset):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels