readfile.read_snap_dim
: more tolerant exaction on DATE12
#1208
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello @yunjunz and other fellows,
I'm opening this thread to have your input on the modification of a part of readfile.py. I'm using SNAP to generate the stack; however, it lacks a direct function to ensure that all interferograms are resampled to a common grid across the dataset. I changed my process so every single pair of scenes is first co-registered to a 3rd reference scene then split the stack and maintain the two scenes of interest to proceed with the rest of the process. This changed the structure of the "Abstracted Metadata" of dim files a little bit in the baseline section. See the snippet below and refer to the attached file here for the full file. The first, second and third dates always belong to the reference, master the slave scenes respectively.
This obviously triggered an error when prep_snap.py runs. I modified the code in readfile.py as shown below with the track change feature. It runs now and the baseline values as well as dates are identified correctly. I was wondering if anywhere else in this script or other script(s) should be modified accordingly too.
Let me know if I wasn't clear on anything.
Many thanks,
Sohrab
Reminders