writeNetCDF4: Write data to a netCDF4 file

View source: R/vbsc2netcdf4.R

writeNetCDF4R Documentation

Write data to a netCDF4 file

Description

writeNetCDF4 Writes a list of data to a netCDF4 file. tsd2NetCDF4 Writes a list of data to a netCDF4 file. pings2NetCDF4 Convenience function for converting .pings files to netCDF4 files. seg2NetCDF4 Convenience function for converting .seg files to netCDF4 files.

Usage

writeNetCDF4(data, con, units = NULL, dims = NULL)

tsd2NetCDF4(tsdFile, netCDF4dir, units = NULL, dims = NULL)

pings2NetCDF4(event)

seg2NetCDF4(event)

Arguments

data

The list of data to write to the netCDF4 file.

con

The path to the netCDF4 file.

units

An optional list of units, named by the names of data.

dims

An optional list of dimensions, named by the names of data, where each element must be a list of the elements Name and Unit as vectors of the names and units of the dimensions of the element of data that the dimensions correspond to (example: dims = list(vbsc = list(Name = c("sample", "beam", "ping"), Unit = c("SampleIndex", "BeamIndex", "PingIndex")))).

tsdFile

The path to a TSD file.

netCDF4dir

The path to the directory in which to put a netCDF4 file.

event

The path to the event holding TSD files.


arnejohannesholmin/sonR documentation built on April 14, 2024, 11:39 p.m.