This function takes a proj4 string and returns a NetCDF-CF projection container as a named list of attributes.
A proj.4 string as returned from the sp CRS function.
https://en.wikibooks.org/wiki/PROJ.4 https://trac.osgeo.org/gdal/wiki/NetCDF_ProjectionTestingStatus http://cfconventions.org/cf-conventions/cf-conventions.html#appendix-grid-mappings
A named list containing attributes required for that grid_mapping.
prj <- "+proj=longlat +a=6378137 +f=0.00335281066474748 +pm=0 +units=m +no_defs" grid_mapping <- getGmFromPrj(prj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.