getGmFromPrj: Get NetCDF-CF Grid Mapping from Projection

Description Usage Arguments Details Value Examples

Description

This function takes a proj4 string and returns a NetCDF-CF projection container as a named list of attributes.

Usage

1

Arguments

prj

A proj.4 string as returned from the sp CRS function.

Details

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

Value

A named list containing attributes required for that grid_mapping.

Examples

1
2
prj <- "+proj=longlat +a=6378137 +f=0.00335281066474748 +pm=0 +units=m +no_defs"
grid_mapping <- getGmFromPrj(prj)

dblodgett-usgs/NCDFSG documentation built on May 15, 2019, 1:21 a.m.