startR (version 0.0.1)

NcOpener: NetCDF File Opener for 'startR'

Description

This is a file closer function for NetCDF files, intended for use as parameter file_opener in a call to the function Start() in the package 'startR'. This function complies with the input/output interface required by Start() defined in the documentation for the parameter file_opener of that function.

This function uses the function NcOpen() in the package 'easyNCDF', which in turn uses nc_open() in the package 'ncdf4'.

Usage

NcOpener(file_path)

Arguments

file_path

Character string with the path to the data file to read. See details in the documentation of the parameter file_opener of the function Start().

Value

An open connection to a NetCDF file, with additional header information, as returned by nc_open in the package 'ncdf4'. See details in the documentation of the parameter file_opener of the function Start().

See Also

NcCloser, NcDataReader, NcDimReader, NcVarReader

Examples

Run this code
# NOT RUN {
## Check https://earth.bsc.es/gitlab/es/startR for step-by-step examples 
## of Start() that use NcOpener().
# }

Run the code above in your browser using DataLab