how can I change the extent of a netcdf file from 0, 360, 0, 300
to -180, 180, -90, 90
Would the solution be the same if the original extents are
0, 320, 0, 384
0, 362, 0, 294
0, 720, 0, 576
0, 362, 0, 332
0, 360, 0, 256
0, 802, 0, 404
class : RasterLayer
dimensions : 300, 360, 108000 (nrow, ncol, ncell)
resolution : 1, 1 (x, y)
extent : 0, 360, 0, 300 (xmin, xmax, ymin, ymax)
crs : NA
source : memory
names : layer
values : -1.728468, 35.60058 (min, max)