yoyololicon / kamui

MIT License
19 stars 4 forks source link

Unwrapping for Non-Continuous Data #3

Open neolluna96 opened 7 months ago

neolluna96 commented 7 months ago

Hi @yoyololicon ! As you said yesterday, I opened an issue here.. might be better. Thanks for the fast answer, btw! I tried the masking of the NaNs before performing the unwrapping already, but then the issue is that the unwrapping works well in some places and not in others. I think it may have something to do with the starting point of the unwrapping... I think some weights are usually used in other methods to solve this, but I don't have this option here, right? Maybe I could use the edges or starting pixel parameter to try and fix this? I am using wrapped cyclical data from -pi to pi and the unwrapping works well until there are too many NaNs dividing two areas.

I'm really trying to find a PUMA code that solves this, since right now I'm using SNAPHU but I think PUMA could be better.

Thanks!!

yoyololicon commented 7 months ago

If your data contains too many NaNs thus separating them into disjoint graphs, I would suggest finding these subgraphs and doing the unwrapping separately. kamui assumes the data is one connected graph. Try removing the NaNs nodes and the edges connect to them.

I'm actually not doing InSAR research personally 😅 so I don't know if it's common to have NaNs in the data. Feel free to contribute if you feel there's a need for it.