read_crs_from_netCDF: Read crs projection from a netCDF

View source: R/functions_netCDF.R

read_crs_from_netCDFR Documentation

Read crs projection from a netCDF

Description

Read crs projection from a netCDF

Usage

read_crs_from_netCDF(x, nc_name_crs = "crs", nc_name_crs_wkt = "crs_wkt")

Arguments

x

An object identifying a netCDF file, i.e., a character string as file name or an object of class ncdf4 derived from ncdf4::nc_open.

nc_name_crs

A character string. The name of the crs variable in the netCDF. Function create_netCDF hard codes "crs".

nc_name_crs_wkt

A character string. The name of the attribute that holds the WKT2 string of the crs variable in the netCDF. Function create_netCDF hard codes "crs_wkt".

Value

An object of the crs-class of package sf.

Details

Example code is available in the documentation of read_netCDF.


DrylandEcology/rSW2st documentation built on Jan. 10, 2024, 6:22 p.m.