-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create prep_hyp3_crop.py #792
base: main
Are you sure you want to change the base?
Conversation
Provide a script for processing hyp3_product. Including crop, transfer all images from WGS84 UTM into WGS84 lat/lon. Co-Authored-By: Lei <[email protected]>
💖 Thanks for opening this pull request! Please check out our contributing guidelines. 💖 |
WE found there exists problems in zipped files, will update a new version before this Friday. |
made a script to crop hyp3 image and transfer the coordinate from UTM to latlon |
Hi @Arctic-Ambrun, first, thank you for contributing! I would have hoped you opened an issue first, before implementing this PR, as described in our contributing guideline. Then the PR would be more focused. With the current form, it requires major changes as listed below: We are determined to support UTM coordinates (as this will be used by NISAR products). So re-projecting during the data loading step is not desired. However, re-projection in the last step of def utm_to_latlon(data, meta):
# where data is a 2D or 3D np.ndarray, for the data in UTM coordinates
# meta is a dict, for the cooresponding metadata read from readfile.read_attribute()
# code block to re-project the data from UTM to lat/lon coordinates
# code block to update the meta dict object, reflecting the changes of the metadata related with coordinates, e.g. Y/X_FIRST/STEP/UNIT, REF_LAT/LON, the complete list is here: https://mintpy.readthedocs.io/en/latest/api/attributes/
# then return the data in lat/lon coordinates and the updated meta dict. I believe your The rest of the script seems to unzip and/or crop the HyP3 GeoTIFF files, which could be a simple replacement of the current preparation procedures using
|
Hi @yunjunz , I understand and I will try to satisfy the requirements. But so far, the script is only works for my requirement. As a freshmen in cooperation in GITHUB, I`m really sorry. I need time for understanding the whole script and try to change untill satisfied.
|
@yunjunz and @Arctic-Ambrun , a few thoughts the HyP3 side:
So, I'm curious about couple things:
|
To follow up on this a little, the majority of usage we (HyP3) sees is SBAS InSAR stacks that are then going to be analysed in MintPy. So we're interested in supporting that workflow and making it as easy as possible for our users. But, HyP3 and MintPy are separate services/tools, both of which are broader scoped than just HyP3 -> MintPy workflows, so we should be careful to not blur the lines too much. |
@jhkennedy This tutorial (https://hyp3-docs.asf.alaska.edu/tutorials/mintpy) is very nice, could you add the link to I was not aware of the
Yes, I agree, especially if these steps require hyp3* libraries.
I think command line scripts would be great (especially for users who are not familiar with notebooks). It seems to me, maybe, one script for each section (as shown in the tutorial notebook). The optional custom SNWE cropping, as intended in this PR, would be helpful to be included in the hyp3 tutorial and cmd scripts. |
Provide a script for processing hyp3_product.
Including crop, transfer all images from WGS84 UTM into WGS84 lat/lon to avoid the
Co-Authored-By: Lei [email protected]
Description of proposed changes
The projection of hyp3 product is WGS84 UTM, however, It may lead a distortion when processing from vel.h5 into *.kmz
We reprojected the GTiff from hyp3, and provide a choice to crop the image into a small scale to save RAM memory and improve speed. For future update, we plan to add more choices to improve the selecting of original hyp3-gamma product.
This is my first time to pull a request, I dont know what means in Reminders
Reminders