create_ncdfcwt {jcext} | R Documentation |
create_ncdfcwt
Description
Converts 3D arrays with daily frequencies of weather types to NETCDF files.
Usage
create_ncdfcwt(cwt_out, times, centralp, onefile = TRUE, path = NULL)
Arguments
cwt_out |
List with a list for each grid point that contains two objects: CWT and indices. |
times |
Numeric with the dates. |
centralp |
Numeric with the centralp obtained from the main program. |
onefile |
Logical. If TRUE one single output file with all WT is created, if FALSE one file per type is created. |
path |
Path name to create the output file. |
Value
A netcdf file with all weather types or one file per type.
See Also
Examples
# This is a long running example
cwtGlobal <- extended_jc(press$msl, press$loni, press$lati, press$dates, gale=FALSE, num_cores=2)
# Create ncdf file (one file with all types)
create_ncdfcwt(cwtGlobal, press$dates, cwtGlobal$centralp, onefile = TRUE, path = NULL)
[Package jcext version 0.1.1 Index]