addStandardSpatialAttributes: Adds standard spatial attributes to a netCDF file

View source: R/addStandardSpatialAttributes.R

addStandardSpatialAttributesR Documentation

Adds standard spatial attributes to a netCDF file

Description

A very simple convenience function for filling the the standard Lon/Lat info when preparing a netCDF file

Usage

addStandardSpatialAttributes(nc.file)

Arguments

nc.file

The netcdf object to which the attributes should be added

Details

This function is mostly for internal use (by writeNetCDF), but is also useful for the DGVMData R package so it exported.

It expects the longitude dimension to be named one of lon/Lon/longitude/Longitude and latitude one of lat/Lat/latitude/Latitude. If the fucntion doesn't find one of these it will fail.

Value

A netcdf object

Author(s)

Matthew Forrest matthew.forrest@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.