reduce cell size of a raster

I have a raster with a resolution of 700m x 700m and I would like to change the cell resolution to 1mx1m. I am using the function disaggregate from the raster package.

vf_day_700to1 <- disaggregate(vf_day_700m, fact=1)
However, the resolution of the output is the same as the input's resolution, so nothing changed, and there is no error message.
Why does it not work?

 > vf_day_700m
class      : RasterLayer 
dimensions : 21, 14, 294  (nrow, ncol, ncell)
resolution : 700, 700  (x, y)
extent     : 169000, 178800, 167056, 181756  (xmin, xmax, ymin, ymax)
crs        : +proj=lcc +lat_0=90 +lon_0=4.36748666666667 +lat_1=51.1666672333333 +lat_2=49.8333339 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +units=m +no_defs 
source     : vf_day_700m.grd 
names      : vegetation_daytime_leuven 
values     : 0.0812, 0.9994476  (min, max)```


``` > vf_day_700mto1
dimensions : 21, 14, 294  (nrow, ncol, ncell)
resolution : 700, 700  (x, y)
extent     : 169000, 178800, 167056, 181756  (xmin, xmax, ymin, ymax)
crs        : +proj=lcc +lat_0=90 +lon_0=4.36748666666667 +lat_1=51.1666672333333 +lat_2=49.8333339 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +units=m +no_defs 
source     : vf_day_700m.grd 
names      : vegetation_daytime_leuven 
values     : 0.0812, 0.9994476  (min, max)

What happens if you change the fact? e.g. disaggregate(vf_day_700m, fact=5)

Ah yes actually it splits the raster cells in 5 so that is what I need to change, thank you.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.