You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/articles/32_R-CF.Rmd
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ This article presents a view of CF from the perspective of R. The main elements
27
27
28
28
By definition, a CF-compliant data set is stored in a netCDF file. The CF elements and their relationship to the building blocks of the netCDF file are given in the figure below:
29
29
30
-
{width="680"}
30
+
{width="680"}
31
31
32
32
If you've worked with netCDF data in R before, probably using package `ncdf4` (but what follows is equally true when you use package `RNetCDF`), you should be familiar with the yellow boxes in the above figure, especially "NC::Variable" (the specific notation used in the figure is not important here), corresponding to the `ncvar4` class in
33
33
`ncdf4`. CF, however, recognizes 11 different objects that are each based on an "NC::Variable". This ranges from axes, or *generic coordinate variables* in the white box in the figure, to *grid mapping variables* (that define the coordinate reference system of your data) to the actual data array in a *data variable*. This is the source of all those surprising "variables" that you see when you do `names(nc$var)`:
@@ -132,11 +132,11 @@ Note how in the `array()` version the `x` and `y` axes are reversed and the `y`
132
132
133
133
The netCDF file format is very flexible, as well as CF, and the `ncdfCF` package uses a layered structure to capture it all. This structure enables a full support of the features provided by the `netcdf` library and the CF Conventions.
134
134
135
-
{width="680"}
135
+
{width="680"}
136
136
137
137
Each of the building blocks may have other objects associated with it, such as axes for `CFVariable`. Package `ncdfCF` is built using the `R6` OOP framework and uses class hierarchies throughout. The crucial but humble "virtual" class `CFAxis` is not used directly, instead you'll work with its seven descendant classes. `CFVariable` has several specialised sub-classes, such as `CFVariableL3b` for NASA level-3 binned data used for MODIS imagery, or `CFVerticalParametricTerm` which you will encounter when using *formula terms* for a parametric vertical axis.
138
138
139
-
{width="680"}
139
+
{width="680"}
0 commit comments