| nc_to_raster | R Documentation | 
This function converts a netcdf object to a raster object
nc_to_raster(
  nc,
  varname,
  extent = c(0, 360, -90, 90),
  crop = raster::extent(280, 300, 30, 50),
  show_images = FALSE
)
| nc | The nc file path | 
| varname | The name of the variable to convert to a raster | 
| extent | The latitude and longitude range the data should have, of the form c(xmin, xmax, ymin, ymax). Defaults to  | 
| crop | An extent object to use to crop data. Defaults to  | 
| show_images | Boolean. Whether to display images of the data. Useful to check if cropping is occurring correctly. | 
A raster brick
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.