ncdf4_convert_from_path {TargetSearch} | R Documentation

## Convert CDF files to CDF4 from a path automatically

### 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

    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

    ## 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)

[Package TargetSearch version 1.42.1 Index]