|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
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") | |
| Build a FONcTransform object. 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" |
||
| ) |
Build a FONcTransform object.
Constructor that creates transformation object from the specified DataDDS object to the specified file.
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 70 of file FONcTransform.cc.
References BESDataHandlerInterface::container, BESDataHandlerInterface::first_container(), BESContainer::get_container_type(), and FONcUtils::name_prefix.

|
virtual |
Destructor.
Cleans up any temporary data created during the transformation
Definition at line 104 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 225 of file FONcTransform.cc.
References FONcBaseType::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

|
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 130 of file FONcTransform.cc.
References BESDEBUG, FONcUtils::convert(), FONcBaseType::define(), FONcUtils::handle_error(), FONcUtils::reset(), RETURNAS_NETCDF4, and FONcBaseType::write().
Referenced by FONcTransmitter::send_data().
