snaphu plugin for SNAP

Hello everyone

This is my very first try now I am stuck, please help

I did the stage[1] to [8]. I’ve got the ……ifg_deb_dinsar_ML_flt

Then I made a folder (named it “anap_out”)

Next I went to

Interferometric—>Unwrapping—>Snaphu Export

Now I have

coh_IW1_……snafu.hdr

coh_IW1_……snafu.img

Phase_ifg_……snaphu.hdr

Phase_ifg_……snaphu.img

Snafu.conf

UnwPhase_ifg……snaphu.hdr

According to the https://step.esa.int/…./snaphu/ I have to go to

Interferometric—>Unwrapping—>Snaphu-unwrapping

I am there, on the second tab I chose the folder that made above(snap_out)

Here is my question, for the first tab ,Source product, which file should I use?

I chose coh_IW1_……snafu.hdr ,Phase_ifg_……snaphu.hdr,and UnwPhase_ifg……snaphu.hdr but nothing happens. When put a check mark on “Display execution output” and click Run, I got this error

Variable SNAPHU_TOOL_EXE is not set

Variable SNAPHU_EXE is not set

(I am working on iMac)
Thank you for your time

please have a look at this tutorial: Sentinel-1 TOPS interferometry

1 Like

Hello
I am also facing problem regarding Snaphu.
I export the data and its generate 6 file.
after that i run the command in terminal but it doesn’t read the commnd given in configuration file.
Screen Shot 2020-09-09 at 8.13.46 PM
please help me.

in Linux you have to compile snaphu first. Was snaphu created successfully?

1 Like

my issue solved with this, my snaphu on Linux(ubuntu) was not okay.

thank you for the reference, big help. is there any other nice tutorial on finding displacement on ground surface, I work on earthquake

I made some more:

Also these are great references:

1 Like

Thanks for replying,
I am using Mac OS X and install snaphu completely.
Yes, I created snaphu successfully. But it didn’t read the configuration file command.

I have found that using the operation that calls snaphu inside SNAP to not always work. I prefer to call snaphu from the command line. The configuration file that you generated will have the proper command line operation to call (it should be something like "snaphu.exe -f configfile imageFile lineCount. Therefore, my process is:

snaphu Export -> run command line -> snaphu import.

In addition to being able to avoid the issues with calling it from SNAP, you get two other advantages:

  1. You can use SNAPHU v2.0, which adds the -S command line parameter. Calling this parameter will run snaphu normally, then run the unwrapped file back through snaphu with only a single tile. This will fix the visible striping where tiles overlap, and does not add much time to the processing.

  2. You can then run the snaphu command on every band. Running it through SNAP does not apply if you have a couple different interferometric pairs in the same product (i.e. a pair for day1-day2, a pair for day1-day3, and a pair for day2-day3)

1 Like

That is great, thank you for mentioning it!

When I run snaphu in command line, it doesn’t work properly. Can you tell me what is the reason?

Screen Shot 2020-09-13 at 10.42.59 PM

as I suggested in the other topic, try the MST solver instead the MCF. You can simply modify the config file and run snaphu again. Deleting temporary files is recommended.

I tried it but it show this

Screen Shot 2020-09-15 at 6.40.04 PM

from last two hours.

please don’t distribute your questions over multiple topics.
I recommended multi-looking in the other topic (because of the file size) and asked for a screenshot of the interferogram: