I’ve tried a lot of codes thanks to the search but none of them help me to clarify the error i’m getting. Anyone that make this before or its used to snappy can identify where im failing and help?
You are right, snappy_bmaths.py makes a new product with 2 bands. As its not my need, I’ve adjusted the code. If I copy and paste the code without modifications it will works as supposed to be.
Now the question is that all the other bands from my source product are left behind with the create of a new product, and I need them all for the snaphu unwrapping
I recall a request for an option to include all input bands in BandMaths output, but a) I don’t see such an option, and b) the request may have made in a BEAM or SeaDAS forum as I can’t find it in this (STEP) Forum. NASA SeaDAS (based on SNAP) GPT Cookbook: BandMaths has one example that just copies the bands that are to be preserved. You could also use Merge to add the new bands to your input file.
Since it is not possible to apply band-math on multiple products using SNAPPY for coherence filtering. What if I use snap itself to do coherence mask and produce new filtered coherence map out of the original coherence maps one by one, is it possible to stack all those products to filter only the spatially coincident pixels whose coherence values temporally barely change over the entire stack?