I am new to Snap (have been using it for a few weeks), and I have started using Snappy in Python in order to automize some of the processes I am doing (I have a lot of images to analyse). I was wondering if there is anywhere that can show me how to Mosaic images using snappy. I am using AATSR images.
Thanks for your help!
To code in python just you need to have information about parameters of these operators.
These information can be found in the File, Display parameters in SNAP.
Then you need to write the following code to Run:
Example for terrain correction
params = HashMap()
params.put(‘demName’, ‘SRTM 3Sec’)
terrain_corrected_product = GPF.createProduct(“Terrain-Correction”, params, product)
So I have managed to get this far:
for i in range(3):
Mosaic = GPF.createProduct("Mosaic", params, products)
Where “paths” are the paths to my products. However, when I run this I’m getting the error
Does anyone know what could be causing this error?
I also can´t seem to find where I can find the parameters of an operator - could you be more specific?
For example to access to mosaic parameters: go to Raster-Geometric operation_mosaicing. in the new open menu go to file- dispaly parameters. look at the attached file…
Also you can use gpt -h mosaic in the command line to access to these parameters…