How to extract imd rainfall data for polygons(district level) within a shapefile?.
Used PyQGIS , solution (given below) wherein output for each day of all polygons is exported as .csv file. Had to give a while loop since for loop was giving some error. I was wondering whether
my procedure is right
is it possible to append the zonalstat for each day in the same shapefile/or output csv file?
while i <366: processing.run("native:zonalstatisticsfb",{'INPUT':'path to shapefile','INPUT_RASTER':'path to nc.file/_Clim_Pred_LRF_New_RF25_IMD0p252014.nc','RASTER_BAND':i,'COLUMN_PREFIX':'_'+str(i)+'_','STATISTICS':[0,1,2,5,6],'OUTPUT':'outputpath/2014output_band'+str(i)+'.csv'}) print(i) i+=1