Skip to content
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

Snaphu export fails for areas with NaN values (water, border pixels) #9

Open
loreabad6 opened this issue Oct 21, 2021 · 10 comments
Open
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed
Milestone

Comments

@loreabad6
Copy link
Member

When doing the unwrapping, with a single tile, Snaphu fails with the following:

snaphu v1.4.2
27 parameters input from file snaphu.conf (84 lines total)
only one tile--disregarding multiprocessor option
only one tile--disregarding tile overlap values
Logging run-time parameters to file snaphu.log
Reading wrapped phase from file Phase_ifg_IW3_VV_25Aug2019_31Aug2019.snaphu.img
NaN or infinity found in input float data
Abort
done

Working on a subset inlands works good.
cc @bro076

@loreabad6 loreabad6 added the bug Something isn't working label Oct 21, 2021
@loreabad6 loreabad6 added this to the v0.0.1 milestone Oct 21, 2021
@loreabad6 loreabad6 self-assigned this Oct 21, 2021
@loreabad6

This comment has been minimized.

@loreabad6 loreabad6 changed the title Snaphu fails for NaN data in water areas Snaphu export fails for subsets with water in SNAP 8 Nov 2, 2021
@loreabad6
Copy link
Member Author

After further checking, what seems to be the problem is the export step in the pipeline.

It creates weird artifacts on water areas that then result in errors during unwrapping:
image

The errors are gone using Snaphu Export in SNAP-6, which I have installed locally.
image

And then unwrapping works:
image

I found this thread on the STEP forum that might be related, but I am not sure as if this is the case.

My problem is I cannot really test the Export in SNAP 8 Desktop since I don't have it locally.
@bro076 I think you have SNAP-8 desktop, could you give it a try? I added a subset of the output of pipeline II here.
@ZahraDabiri you have SNAP-7 right? Would you also mind testing?

Thank you both!

@bro076
Copy link

bro076 commented Nov 2, 2021

good stuff! Yes I have snap 8. I am going to another Oslo meeting for a few days now, but I will try it get it running tonight or tomorrow. Can snap 8 not be installed in the docker?

@loreabad6
Copy link
Member Author

Yes but only command line for now. I am trying to determine if this is a bug from snappy, from SNAP-8 or from any other source... That's why I want to run the process on Snap-8 Desktop

@ZahraDabiri
Copy link

Hi Lorena,

I did the export, unwrapping, import in the SNAP v7; the results look good
Snaphu_import
. I saved it on the R drive:
"...\PFG330001_12_SliDEM\04_Work\WP3\DEM generation and Landslide volume estimaiton\test\Snphu" . "out_pipe_II_subset_Snaphu.dim" is the result of the import .

hope it helps :-)

@loreabad6
Copy link
Member Author

Thanks Ani! Yes looks good so SNAP 6 and 7 work ok... let's see if SNAP-8 Desktop gives issues

@bro076
Copy link

bro076 commented Nov 3, 2021 via email

@loreabad6
Copy link
Member Author

No worries! take your time :)

@bro076
Copy link

bro076 commented Nov 10, 2021

I ran it in python, and I get the result looks the same as when done in SNAP Desktop

image

@loreabad6 loreabad6 modified the milestones: v0.0.1, v0.1.0 Aug 1, 2022
@loreabad6 loreabad6 changed the title Snaphu export fails for subsets with water in SNAP 8 Snaphu export fails ~for subsets with water in SNAP 8~ Aug 1, 2022
@loreabad6 loreabad6 changed the title Snaphu export fails ~for subsets with water in SNAP 8~ Snaphu export fails ~~for subsets with water in SNAP 8~~ Aug 1, 2022
@loreabad6 loreabad6 changed the title Snaphu export fails ~~for subsets with water in SNAP 8~~ Snaphu export fails in SNAP-8 Aug 1, 2022
@loreabad6 loreabad6 added the help wanted Extra attention is needed label Aug 1, 2022
@loreabad6
Copy link
Member Author

loreabad6 commented Aug 1, 2022

Maybe related but there have been several failures also with the message:

Reading wrapped phase from file Phase_ifg_IW1_VV_19Jul2018_13Jul2018.snaphu.img
No weight file specified.  Assuming uniform weights
No brightness file specified.  Using interferogram magnitude as intensity
Reading correlation data from file coh_IW1_VV_19Jul2018_13Jul2018.snaphu.img
Calculating topography-mode cost parameters
Despeckling intensity image
Normalizing intensity
Intensity-normalization averaging box too large for input array size
Abort

Some checks indicate that coherence is 0 everywhere, any thoughts @ZahraDabiri?

@loreabad6 loreabad6 changed the title Snaphu export fails in SNAP-8 Snaphu export fails for areas with NaN values (water, border pixels) Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants