Closed SMJMirza closed 2 years ago
@SMJMirza you need to install hyp3lib for the command line scripts to work. Either:
python -m pip install hyp3lib
Or
conda install -c conda-forge hyp3lib
If you want an editable/development install from a clone of the repository, you can do:
git clone https://github.com/ASFHyP3/hyp3-lib
cd hyp3-lib
python -m pip install -e .
Dear Joseph,
Thank you so much for your guidance and support. Sorry that I reported it as a bug. I did not find another option to ask for this issue.
Regarding using the cutgeotiffs.py script for the MintPy inputs, I found the following commands to run it, but I wondered if it is the wrong way. Somebody suggested the following lines:
cd hyp3 demtif=xxxxxx/xxxx_dem.tif ("as same as the attachment") cutGeotiffs.py $demtif /.tif
When we download and unzip all HyP3 products, we will have several folders ( 691 in my case), including the inputs files for the MintPy package. Could you please kindly guide me on how I should use the cutgeotiffs.py script for this purpose?
Sincerely, Sayyed
[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 04/13/22, 11:29:43 AM
On Wed, Apr 13, 2022 at 11:06 AM Joseph H Kennedy @.***> wrote:
Closed #263 https://github.com/ASFHyP3/hyp3-lib/issues/263.
— Reply to this email directly, view it on GitHub https://github.com/ASFHyP3/hyp3-lib/issues/263#event-6423892478, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATMZF73C2UA62N2QN4PZFODVEY233ANCNFSM5TH3CC2Q . You are receiving this because you were mentioned.Message ID: @.***>
--
Sayyed Mohammad Javad Mirzadeh Ph.D. Candidate, Remote Sensing and Geophysics Researcher in the application of InSAR on Tectonics and Geo-hazard Monitoring and Modeling 80 Nandan Road, Shanghai 200030, China Satellite Navigation and Remote Sensing Group Shanghai Astronomical Observatory Chinese Academy of Sciences, Beijing, China Cell Phone: (+86) 13031099118 Email Address: @., @.
@SMJMirza bug was a fine way to report it -- we don't have any installation guide in our README, which I've made a note to update.
cutGeotiffs.py
works by clipping every GeoTIFF passed in to the same common (overlapping) area. You'll need to download all your products to a hyp3
directory and unzip then all. Then, from within that directory, you can run
cutGeotiffs.py */*.tif
To clip every product GeoTIFF. (HyP3 products get unzipped into a product folder, so that command selects every GeoTIFF inside every product folder)
This may take a while, but you can speed it up by only selecting the files needed for MintPy.
Dear Joseph,
Thank you so much for your information and consideration. It works very well, and I can continue my research to see the results of HyP3 + MintPy.
Sincerely, Sayyed
[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 04/13/22, 03:51:08 PM
On Wed, Apr 13, 2022 at 11:52 AM Joseph H Kennedy @.***> wrote:
@SMJMirza https://github.com/SMJMirza bug was a fine way to report it -- we don't have any installation guide in our README, which I've made a note to update.
cutGeotiffs.py works by clipping every GeoTIFF passed in to the same common (overlapping) area. You'll need to download all your products to a hyp3 directory and unzip then all. Then, from within that directory, you can run
cutGeotiffs.py /.tif
To clip every product GeoTIFF. (HyP3 products get unzipped into a product folder, so that command selects every GeoTIFF inside every product folder)
This may take a while, but you can speed it up by only selecting the files needed for MintPy.
— Reply to this email directly, view it on GitHub https://github.com/ASFHyP3/hyp3-lib/issues/263#issuecomment-1097525728, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATMZF73OHYE5QMVXEQI2MS3VEZAJJANCNFSM5TH3CC2Q . You are receiving this because you were mentioned.Message ID: @.***>
--
Sayyed Mohammad Javad Mirzadeh Ph.D. Candidate, Remote Sensing and Geophysics Researcher in the application of InSAR on Tectonics and Geo-hazard Monitoring and Modeling 80 Nandan Road, Shanghai 200030, China Satellite Navigation and Remote Sensing Group Shanghai Astronomical Observatory Chinese Academy of Sciences, Beijing, China Cell Phone: (+86) 13031099118 Email Address: @., @.
Hi
I want to set the path to the hyp3-lib and use the cutGeotiffs.py script to clip DEM and all interferograms to the same area for the MintPy time series processing. I added the following line in my bash file, but still, I can not read the hyp3-lib scripts in the main directory of the MintPy processing:
if [ -z ${PYTHONPATH+x} ]; then export PYTHONPATH=""; fi
export MINTPY_HOME=~/tools/MintPy export HYP3_HOME==~/tools/hyp3-lib export PATH=${PATH}:${MINTPY_HOME}/mintpy export PATH=${PATH}:${HYP3_HOME}/hyp3lib export PYTHONPATH=${PYTHONPATH}:${MINTPY_HOME}:~/tools/PyAPS export PYTHONPATH=${PYTHONPATH}:~/tools/PySolid export PATH=~/tools/miniconda3/lib/python3.8/site-packages/isce/applications:$PATH export PATH=~/tools/miniconda3/lib/python3.8/site-packages/isce/bin:$PATH export PATH=~/tools/isce2-main/contrib/stack/topsStack:$PATH
export PATH=~/tools/isce2-main/contrib/stack/stripmapStack:$PATH
Could you please guide me to fix this issue? As I mentioned, I have to use this script to clip the input files of the MintPy package to do the time series processing, following this link.