I should be able to get product data by executing: readRasterData(int offsetX,int offsetY, int width, int height,ProductData rasterData)
but I am not sure which parameters should I provide to read whole band (and how to declare rasterData variable)
You can find several examples in in the example directory of your snappy installation
(e.g. ..\site-packages\snappy\examples).
The files snappy_flh.py and snappy_ndvi.py can be of interest for you.
i don’t know what to put insted of ‘FLH_Product’, ‘FLH_Type’ ,‘FLH’
and
how to pass full path of image which i have to save.
my code is here
dataline=np.zeros(width*height)
VH = final.getBand('Sigma0_VH_db')
VV = final.getBand('Sigma0_VV_db')
arr_VH = VH.readPixels(0,0,width,height,dataline)
arr_VV = VV.readPixels(0,0,width,height,dataline)
sm = (img_VH + (img_VV - 15) * 1.1397) #this is final array i want to save as tiff
I want to save final array as tiff can you please see my code.