startR (version 0.0.1)

NcCloser: NetCDF File Closer for 'startR'

Description

This is a file closer function for NetCDF files, intended for use as parameter file_closer 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_closer of that function.

This function uses the function NcClose() in the package 'easyNCDF', which in turn uses nc_close() in the package 'ncdf4'.

Usage

NcCloser(file_object)

Arguments

file_object

Open connection to a NetCDF file, optionally with additional header information. See details in the documentation of the parameter file_closer of the function Start().

Value

This function returns NULL.

See Also

NcOpener, NcDimReader, NcDataReader, NcVarReader

Examples

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

Run the code above in your browser using DataCamp Workspace