I have a script which uses Snappy and does the following operation on it:
- Orbit File
- Speckle Filtering
- Terrain Correction
Now the Subset is taken over a region of area i.e. I have a Polygon value:
wkt = “POLYGON((…))”
Now what I want is to extract the Sigma0 values from all the pixels in the region specified in the Polygon. I saw a few discussions similar to this, where certain classes were being mentioned but I couldn’t quite get it. It would be appreciated if I could get some more clarity on what to use and how.
Thanks in advance!!
P.S. I am a beginner in using the snappy package
Could you please specify what you mean with “extract all pixels“?
Their coordinates, their values? To what format or file structure?
By “extract all pixels” I mean, all the pixels which belong in the POLYGON((…)) which is the region of interests. So I need to find which pixel indicates the lat and long values in the POLYGON and what is the corresponding Sigma0 value so that I can print them.
The csv export should work then.
In the write tab of the graph builder select “Save as:” CSV instead of BEAM DIMAP.
Thanks for the solution!! So even in python I could just simply write, ‘CSV’ instead of ‘BEAM-DIMAP’ in writeProdouct function??
I have never tried this, but I think so.
Sorry, I have not seen that this topic was opened in the #development:python section.