bes
Updated for version 3.20.5
|
Transformation object that converts an OPeNDAP DataDDS to a netcdf file. More...
#include <FONcTransform.h>
Public Member Functions | |
virtual void | dump (ostream &strm) const |
dumps information about this transformation object for debugging purposes More... | |
FONcTransform (DDS *dds, BESDataHandlerInterface &dhi, const string &localfile, const string &netcdfVersion="netcdf") | |
Constructor that creates transformation object from the specified DataDDS object to the specified file. More... | |
virtual void | transform () |
Transforms each of the variables of the DataDDS to the NetCDF file. More... | |
virtual | ~FONcTransform () |
Destructor. More... | |
Transformation object that converts an OPeNDAP DataDDS to a netcdf file.
This class transforms each variable of the DataDDS to a netcdf file. For more information on the transformation please refer to the OpeNDAP documents wiki.
Definition at line 62 of file FONcTransform.h.
FONcTransform::FONcTransform | ( | DDS * | dds, |
BESDataHandlerInterface & | dhi, | ||
const string & | localfile, | ||
const string & | ncVersion = "netcdf" |
||
) |
Constructor that creates transformation object from the specified DataDDS object to the specified file.
Build a FONcTransform object. By default it builds a netcdf 3 file; pass "netcdf-4" to get a netcdf 4 file.
dds | |
dhi | |
localfile | |
netcdfVersion | |
dds | DataDDS object that contains the data structure, attributes and data |
dhi | The data interface containing information about the current request |
localfile | netcdf to create and write the information to |
BESInternalError | if dds provided is empty or not read, if the file is not specified or failed to create the netcdf file |
Definition at line 67 of file FONcTransform.cc.
|
virtual |
Destructor.
Cleans up any temporary data created during the transformation
Definition at line 101 of file FONcTransform.cc.
|
virtual |
dumps information about this transformation object for debugging purposes
Displays the pointer value of this instance plus instance data, including all of the FONc objects converted from DAP objects that are to be sent to the netcdf file.
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 233 of file FONcTransform.cc.
|
virtual |
Transforms each of the variables of the DataDDS to the NetCDF file.
For each variable in the DataDDS write out that variable and its attributes to the netcdf file. Each OPeNDAP data type translates into a particular netcdf type. Also write out any global variables stored at the top level of the DataDDS.
Definition at line 127 of file FONcTransform.cc.