How to change the extent of a raster?
In your case, alignExtent is useless since the two rasters have the same resolution and their extents correspond with regards to this resolution. If your goal is to give the extent of raster_2015 to raster_2013, you need to realize that extent (raster_2015) is shorter (smaller) with respect to xmin, but larger or equal elsewhere.
What makes a raster have a higher resolution?
A raster at the same extent with more pixels will have a higher resolution (it looks more “crisp”). A raster that is stretched over the same extent with fewer pixels will look more blury and will be of lower resolution. Source: National Ecological Observatory Network (NEON)
How do you do land use raster in Photoshop?
Easiest way to do that is to double click the land use raster layer in the layer list. The output will be a raster with the extent of the DEM with NoData where there are no the land use values. You can do this using the Raster Clip tool.
How to snap raster with the extent of the dem?
Use the raster calculator, set output extent and snap raster to the DEM in the tool environment, then use the land use raster layer as the expression. Easiest way to do that is to double click the land use raster layer in the layer list. The output will be a raster with the extent of the DEM with NoData where there are no the land use values.
How to change the coordinate system of a raster?
Defining or modifying a raster’s coordinate system In ArcCatalog or the Catalog window, right-click the raster whose coordinate system you want to define and click Properties. Scroll down to the Spatial Reference section, and click Edit.
How to clip a raster dataset in ArcMap?
The Export Raster Data dialog box appears. In the Extent section, click the Data Frame radio button. Select the output location for the raster export, the name of the output raster, and the file format. Click Save to export the raster. Once the operation is completed, click Yes to display the clipped raster dataset in ArcMap.
How does crop Ping affect the extent of raster?
If your goal is to give the extent of raster_2015 to raster_2013, you need to realize that extent (raster_2015) is shorter (smaller) with respect to xmin, but larger or equal elsewhere. So crop ping alone will just affect xmin of raster_2013.
Why is alignextent useless in R-Stack Overflow?
Then, there are several issues with your code. In your case, alignExtent is useless since the two rasters have the same resolution and their extents correspond with regards to this resolution.
Is there a way to resample raster 2013?
As @Geo-sp mentions, you can also resample raster_2013, but you would typically use this if the rwo rasters are not aligned (and be aware that it would, in such case, result in modified data due to the interpolation). Here, since they are, it would give the same result as crop (extend ()), but it would be much slower and more resource-consuming: