ncdf4_convert_from_path: Convert CDF files to CDF4 from a path automatically

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Convert from NetCDF format 3 into a custom TargetSearch NetCDF format 4 automatically by scanning for CDF-3 files in given path and calling the function ncdf4_convert() on them.

Usage

1
ncdf4_convert_from_path(cdf_path = ".", out_path = cdf_path, ...)

Arguments

cdf_path

the input path to scan for

out_path

the output path in which the files will be saved

...

extra options passed to ncdf4_convert(), which in can be passed to baseline()

Details

This function simply wraps around ncdf4_convert(). It searches for CDF-3 files and converts them to CDF-4. Note that the search is not recursive.

By default, the function scans the current path and saves them in the same path if out_path is not specified.

Value

a character vector of generated files or invisible.

Author(s)

Alvaro Cuadros-Inostroza

See Also

ncdf4_convert(), baseline()

Examples

1
2
3
4
5
6
7
## Not run: 
# get files from package TargetSearchData
require(TargetSearchData)
cdfpath <- file.path(find.package("TargetSearchData"), "gc-ms-data")
ncdf4_convert_from_path(cdfpath, ".")

## End(Not run)

TargetSearch documentation built on March 12, 2021, 2 a.m.