View source: R/oisst_data_funs.R
fix_raster | R Documentation |
Helper function to convert an array (x, y, z) into raster layers with the correct dimensions and orientation for spatial analyses. Typically used when working from netcdf to raster.
fix_raster(x, lons.use, lats.use, x.min.use, x.max.use, y.min.use, y.max.use)
x |
matrix. As currently implemented, x is an individiaul time slice from an x, y, z array. |
lons.use |
Longitudes, extracted using ncvar_get |
lats.use |
Latitudes, extracted using ncvar_get |
x.min.use |
Bounding box x minimum |
x.max.use |
Bounding box x maximum |
y.min.use |
Bounding box y minimum |
y.max.use |
Bounding box y maximum |
rast.out Correctly trimmed and oriented raster object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.