nclist_to_df | R Documentation |
Extracts full time series from a list of NetCDF files, provided for time steps (can be one time step or multiple time steps) separately and writes .RData files for each longitude index.
nclist_to_df( nclist, outdir, fileprefix, varnam, ilon = NA, lonnam = "lon", latnam = "lat", timenam = "time", timedimnam = "time", ncores = 1, single_basedate = FALSE, fgetdate = NA, overwrite = FALSE )
nclist |
A vector of character strings specifying the complete paths to files. |
outdir |
A character string specifying output directory where data frames are written
using the |
fileprefix |
A character string specifying the file name prefix. |
varnam |
The variable name(s) for which data is to be read from NetCDF files. |
ilon |
An integer specifying an individual longitude index. If provided, it overrides that the function extracts data for all longitude indices. |
lonnam |
The dimension name of longitude. |
latnam |
The dimension name of latitude |
timenam |
The name of dimension variable used for time. Defaults to |
timedimnam |
The name of the dimension (axis) used for time. Defaults to |
ncores |
Number of cores for parallel execution (distributing extraction of
longitude slices). When set to |
single_basedate |
A logical specifying whether all files in the file list have the same base date (e.g., time units given in 'days since <basedate>'). |
fgetdate |
A function to derive the date used for the time dimension based on the file name. |
overwrite |
A logical indicating whether time series files are to be overwritten. |
Nothing. Writes data to .RData files for each longitude index.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.