I want to resample a raster from 15m to 460m using a Gaussian filter.
The goal
I am having a coarse image which I want to downscale. I also have a fine resolution band to assist the downscaling. The downscaling method I am using is called geographically weighted area-to-point regression Kriging (GWATPRK). The method consists of two steps:
- GWR and,
- ATPK on the GWR's residuals.
In order to perform GWR using raster data, those needs to have the same pixel size. This means that, my fine resolution image needs to be upscaled to match the spatial resolution of the coarse band. This upscaling of the fine band needs to be done using a Gaussian kernel (i.e., the PSF). I have found that GRASS GIS
has a built-in tool within QGIS
called r.resamp.filter
. Whenever I try to execute the code I am getting this error (this is the log window):
ERROR: At least one filter must be finite
C:\Users\Geography\Documents>g.region raster=outpute19c4df1297e4428bdf5c9a3f38ae890
ERROR: Raster map <outpute19c4df1297e4428bdf5c9a3f38ae890> not found
C:\Users\Geography\Documents>r.out.gdal -t -m input="outpute19c4df1297e4428bdf5c9a3f38ae890" output="C:\Users\Geography\AppData\Local\Temp\processing_uJGZeO\2c592b8c22724aab80f0506e9a4a8192\output.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite
ERROR: Raster map or group <outpute19c4df1297e4428bdf5c9a3f38ae890> not found
C:\Users\Geography\Documents>exit
Execution of <C:\Users\Geography\AppData\Local\Temp\processing_uJGZeO\grassdata\grass_batch_job.cmd> finished.
Cleaning up temporary files...
Press any key to continue . . .
Execution completed in 3.22 seconds
Results:
{'output': 'C:\\Users\\Geography\\AppData\\Local\\Temp\\processing_uJGZeO\\2c592b8c22724aab80f0506e9a4a8192\\output.tif'}
Loading resulting layers
The following layers were not correctly generated.
• C:/Users/Geography/AppData/Local/Temp/processing_uJGZeO/2c592b8c22724aab80f0506e9a4a8192/output.tif
You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
I tried many parameters but I can't understand what am I doing wrong. Below I attached a screenshot of one of my tries setting the parameters. I also tried to set x_radius and y_radius. What am I missing here?
From here you can download the image.
I am leaving this link, from an other question I found which is exactly what I am trying to achieve.