Giter VIP home page Giter VIP logo

Comments (10)

mirzaees avatar mirzaees commented on June 5, 2024

@gjustin40 your interferograms seem to have NaN values. you may modify them and replace Nan values with something or you may use a mask. If all of your interferograms have nan values at the same pixels, try making a mask with .h5 format and then use generate_unwrap_mask.py to update the unwrap mask before running unwrap step. The other way is to directly update unwrap mask in your inverted folder with opening and modifying it in python.

from miaplpy.

Jesse-kearse avatar Jesse-kearse commented on June 5, 2024

I am also trying to solve this issue, and I get the same snaphu error when trying to unwrap, as it appear the interferograms are corrupted somehow. In my workflow, something has gone wrong during the phase_linking or stage. If I view the temporal coherence of "phase_series.h5" I get a blank image with uniform temporal coherence across the scene.

view.py inverted/phase_series.h5 temporalCoherence

Screen Shot 2023-10-05 at 2 32 16 PM

The next stage of forming interferograms still worked, however the ifgs are also not displaying and appear to be "empty"

view.py inverted/interferograms_single_reference/20200205_20180615/filt_fine.int phase

Screen Shot 2023-10-05 at 2 34 59 PM

So it at least for me, its not a problem with snaphu , its something upstream. @gjustin40 if you havnt already , you could check that your unwrapped ifgs are formed correctly?

@mirzaees do you have any ideas what might have happened here?

Thanks for any help

from miaplpy.

Jesse-kearse avatar Jesse-kearse commented on June 5, 2024

Sorry, @gjustin40 , typo: check that your "wrapped" ifgs are formed correctly

from miaplpy.

Jesse-kearse avatar Jesse-kearse commented on June 5, 2024

After doing some more digging, my issue goes all the way back to the initial slcStack.h5 file.

view.py inputs/slcStack.h5

Screen Shot 2023-10-05 at 3 14 16 PM

Only the reference appears. The size of the .h5 file is about the size I would expect from a ROI of this size (~2.5 GB).

Interesting that I could make it all the way through to ifg unwrapping with snaphu before noticing an issue.

I will restart from the beginning and pay closer attention to the loading of the SLC files in the load_data stage.

from miaplpy.

Jesse-kearse avatar Jesse-kearse commented on June 5, 2024

Ok, so a long story, but I found it in the end. It turns out that I had no actual raw SLC data, the /coreg_secondarys/ directory was empty, so the .slc.full.vrt files were pointing to raw data that does not exist.

When loading the datasets, I got the following error:

ERROR 4: ../merged/SLC/20180603/../../../coreg_secondarys/20180603/IW2/burst_01.slc.vrt: No such file or directory

Probably quite a unique problem (sorry for taking up all this space on this thread), but worth noting that Miaplpy can proceed from load_data to unwrapping before this causes a fatal error.

from miaplpy.

gjustin40 avatar gjustin40 commented on June 5, 2024

Thank you for your help @mirzaees @Jesse-kearse

After reviewing the information provided above, I realized there may have been an issue in the previous step, so I decided to give it another try. In fact, it seems that the problem started when I was creating the stack in isce2, so I expanded the bbox range and tried again, and fortunately, it worked without any issues!

In my case, it seems that there was an issue in run_04_miaplpy_generate_ifgram. It appeared that the problem arose from setting a bbox that was too small during the stack creation process in isce2. I increased the size of the bbox and tried again, and it worked correctly!

I'm not sure whether the cause was the size of the bbox or the difference between the -w and -c options in isce when generating the stack, but the important thing is that it's working well now!

Thank you for your advice.

By the way, Can i convert Miaplpy result which is Grid format to point format like StaMPS? @mirzaees

from miaplpy.

Jesse-kearse avatar Jesse-kearse commented on June 5, 2024

I think ISCE2 works best when you are processing at least 2 adjacent bursts, I think that is a common issue that is easily solved with increasing the bbox size to include 2 bursts.

from miaplpy.

gjustin40 avatar gjustin40 commented on June 5, 2024

@Jesse-kearse Thanks for your advices
I think so too.

My mistake was that I made too small subset during interferogram stack step in isce2.
Subset should be applied after make stack of interferogram with more wide bbox range to prevent error.

@Jesse-kearse Do you know how to get result of Miaplpy by point like StaMPS?
In tutorial, there is a step to view PS mask in Visualization. I want to get PS with point not the grid(raster)

from miaplpy.

Jesse-kearse avatar Jesse-kearse commented on June 5, 2024

Hi @gjustin40

Is your question about displaying the data as points instead of a raster image? As I understand, StaMPS has its outputs structured as column arrays e.g. lon,lat,phs. You would need to simply get the lon,lat coordinates of each cell in Miaplpy geocoded raster, as well as the velocity value and make your own file with a lon,lat,velocity structure (e.g. a 3-column matrix). Then you could plot it with stamps, or gmt plot function, or with which ever mapping package you choose.

from miaplpy.

gjustin40 avatar gjustin40 commented on June 5, 2024

I asked if there is a function to convert PS masks to point format (.shp, .geojson) in Miaplpy!
I guess I can make it myself if not.

Thank you.

from miaplpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.