fix_coordinates: Check existence of a variable inside a given .nc file. If the...

Description Usage Arguments Value

View source: R/utils.R

Description

Check existence of a variable inside a given .nc file. If the variable does not exist, use the replacement one.

Usage

1
fix_coordinates(nc, coordinates, spare_coordinates)

Arguments

nc

file with extension .nc already loaded in the R environment.

coordinates

Grid variables (for instance, longitude and latitude).

spare_coordinates

Spare names for coordinates. Variables such as longitude and latitude may be named differently in every .nc file. In order to account this possibility, you can provide a set of spare names for both coordinates.

Value

Returns existing coordinates (either coordinates or spare_coordinates)


pegoraro/qchlorophyll documentation built on May 24, 2019, 11:46 p.m.