<div dir="ltr"><div><div><div><div><div><div>Dear list,<br></div>I am trying to crop a raster map into a smaller area, but I am failing.<br><br></div>This wiki pageĀ <a href="https://grasswiki.osgeo.org/wiki/Cropping_maps">link</a> is quite clear:<br>"Make boundary into mask using <span class="gmail-plainlinks"><a rel="nofollow" class="external gmail-text" href="https://grass.osgeo.org/grass72/manuals/r.mask.html">r.mask</a></span> then copy raster source to new map (<span class="gmail-plainlinks"><a rel="nofollow" class="external gmail-text" href="https://grass.osgeo.org/grass72/manuals/g.copy.html">g.copy</a></span>). All cells outside of the mask will be omitted from the new copy."<br><br></div>r.mask vector=myarea<br>g.copy --overwrite raster=OldRasterWithBigArea,NewRasterWithSmallArea<br>r.mask -r<br><br></div>I expected all cell outside were not going to be omitted, but replaced by NULL.<br><br></div>Regards<br>--<br></div>Marco<br></div>