I have a raster table in postgresql that I create using a PostGIS raster. If I want to have an average raster file of 3 raster records, given that Null pixel values โโshould not be involved in the averaging operation. I mean, the pixel values โโof the resulting raster record should be the average of the corresponding pixel values โโfor the three existing raster records. Raster records contain some pixels with Null values, and Null values โโshould not be involved in the calculation. Is it possible? sample_data_link is a link for sample data, which are images. If Postgis 2.0 is installed on your system, the following commands on the windows command line and the folder where you copied the sample data will produce the following results:
raster2pgsql -r *_cropped.tif -F -I myschema.mytable > cropped_1.sql and
raster2pgsql -r *_cropped.tif -F -I myschema.mytable > cropped_1.sql
source share