Conversation
|
Hi @sssangha, thanks for looking into this. I pulled PR #313 and reinstalled with I am now getting this error for three tracks that I've tested so far: 41, 48, and 19: The launch command is similar for each (I only change the bbox file and minimum overlap): |
|
@rzinke and @bbuzz31 I have confirmed the job runs to completion now with this new patch. Specifically, I found and fixed a bug whereby midnight crossings were not handled as intended. I have now refactored the code a bit behind this simple logic: if there is spatial overlap and the IFGs are within one day of eachother, that means they are of the same orbit and thus contiguous IFGs. At the same time, I've made some ancillary pep8 updates that helped me debug and make the code a bit more readable. Please confirm if this patch works as intended on your end! |
|
It got a lot closer this time! Now I am getting the error: Looks like there needs to be a check to force the file sizes to be consistent. |
|
Getting this same failure for another of the tracks, too. |
|
Those tracks are T41 (the best-behaved track for Tibet) and T48 (the midnight-crosser). |
|
Hey @bbuzz31, It looks like the error is occurring sometime around the interval 20180918_20180310, you might be able to save time by narrowing it down to that date range. Then again, the exact size of the file will likely depend on the intersection of the other product footprints. The TSsetup command is The shapefile is included in the attached .zip. Let me know how I can help. |
|
Hello @rzinke I was unable to replicate, but I had just tried it out with this IFG to conserve space. Could you perhaps share the following produceBoundingBox outputs in your workspace for testing: |
|
@bbuzz31 I don't think it is related to that, especially because the other layers (e.g. amplitude) are generated fine. I wonder if it's perhaps an issue with the unwrap stitcher. |
|
Here are the productBoundingBox files (attached |
|
Unwrap stitcher seems likely to me... It looks like the connectedComponents get resampled by gdalWarp a few lines above, in lines 387-388. Seems to me we should be able to ensure the gdalWarp outputs are the same size as the inputs(?). For example, we could explicitly pass the output file size to the gdalWarp function in line 388... I wonder if there's a more elegant way to do this though, e.g., with TAP or some other flag. Do either of you know of a convenient argument for that, @sssangha or @bbuzz31 ? |
|
Apologies, there was some confusion on my end to replicate the issue as I was working with track 48 products, but was able to debug with track 41 products using the following commands: I have resolved the issue by forcing consistent dimensions in the @rzinke I found this particular stitched pair to be of very poor quality. After running some quick tests to vet and hopefully merge these changes, could you also perhaps visually inspect pairs across a track or two? I'd be curious to get a gauge of the quality of the stitched IFGs. Perhaps it would be easiest to inspect the IFG stack through Mintpy. I had done something similar to this before for the CA tracks with David. Make sense? |
|
That fixed it. P.S. I have not done any systematic QA on the stitched interferograms, though previous experience tells me the stitching quality varies greatly from one track to the next. |
|
With the mintpy conda install, the For all
Do you recall any particular reason that |
There is no reason, please feel free to go ahead to remove it. |
Thanks! Any plans for a new conda release soon, or should I switch or circleci back to installing from source? |
|
A new release of mintpy is planned before the end of next week (Aug 5), the conda-forge version usually is available within 12 hours after the github release. |
8a7b046 to
c735b97
Compare
e8edb73 to
1ae5318
Compare

The code had failed to properly recognize spatiotemporal continuity across protects that span midnight.
E.g. the following two products for track 48 over Tibet (see issue #308 on how to access), which are continuous in space and time, were treated as two separate products:
S1-GUNW-D-R-048-tops-20161015_20160730-000002-00089E_00035N-PP-b2bb-v2_0_5.nc
S1-GUNW-D-R-048-tops-20161015_20160730-235937-00089E_00036N-PP-ea06-v2_0_5.nc
This leads to issues internally downstream where multiple products point to the same extracted shapefile without being stitched together. For instance, if one gets rejected for not meeting user-defined spatial criteria, the program crashes in a loop after deleting the corresponding extracted shapefile as the next product in the loop points to the now deleted shapefile (see issue #308).
I also cleaned up some of the more egregious examples of list comprehension in the code to assist with debugging and readability.
Addresses issue #308. Note I performed tests on a subset of the products specified in issue #309 due to bandwidth issues, but it appears as if the issue is resolved on my end.