Takes NetCDF-CF grid mapping attributes and returns a proj4 string.
nc_gm_to_prj(x)
# S3 method for class 'data.frame'
nc_gm_to_prj(x)
# S3 method for class 'list'
nc_gm_to_prj(x)
A proj4 string.
The WGS84 datum is used as a default if one os not provided in the grid mapping.
If only a semi_major axis is provided, a sperical earth is assumed.
crs <- list(grid_mapping_name="latitude_longitude",
longitude_of_prime_meridian = 0,
semi_major_axis = 6378137,
inverse_flattening = 298)
nc_gm_to_prj(crs)