ASFHyP3 / hyp3-lib

Common library for HyP3 plugins
BSD 3-Clause "New" or "Revised" License
14 stars 11 forks source link

UTM coordinate system of HyP3 products #265

Open SMJMirza opened 1 year ago

SMJMirza commented 1 year ago

Hi everyone,

I hope you are doing well.

Recently, I tried to use the HyP3 products over my study site for the MintPy job, but I faced an issue. Unfortunately, a part of my study site is covered by UTM 39N, while another is covered by UTM 40N. So, when I tried downloading the products, I found that the ascending and descending frames-based products are in different zones; UTM 39N and 40N, respectively. So, after finishing the MintPy job for both frames, I could not decompose to the vertical and horizontal deformation and other post-processing and post-analysis.

So, I thought it could be good to convert the HyP3 products from the UTM to the WGS84 simultaneously; we tried to crop them to the same extent using the "cutGeotiffs.py" code of HyP3-lib. I added two lines to the code to have both versions of Geotiff files for the MintPy job. If it is suitable for other users to enjoy, I can put my solution here.

Sincerely, Sayyed

jhkennedy commented 1 year ago

@SMJMirza I'm glad you found a solution!

We, however, do not recommend using cutGeotiffs.py from hyp3-lib anymore, and instead direct people to our Mintpy tutorial: https://hyp3-docs.asf.alaska.edu/tutorials/mintpy

Here's the current hyp3-lib README:


image


If you'd like to add a reprojecting step to our Mintpy Tutorial notebook, we'd appreciate it! Otherwise, we'll try to update it ourselves. The notebook code is here: https://github.com/ASFHyP3/hyp3-docs/tree/develop/docs/tutorials

ditafaith commented 9 months ago

Hi @jhkennedy @SMJMirza I realize it is too late to know the problem of hyp3 products with the UTM projection system, before further stage when processing with MintPy. However, is there already a solution ?

SMJMirza commented 9 months ago

@ditafaith Glad to see your comment. To use the HyP3 products with the MintPy time series processing, I added two lines inside the "cutGeotiff.py" code from hyp3lib and generated the cropped Geotiff files in the UTM84 geographic coordinate system.