bes Updated for version 3.20.13
|
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 | |
virtual void | dump (std::ostream &strm) const =0 |
dump the contents of this object to the specified ostream | |
FONcTransform (BESResponseObject *obj, BESDataHandlerInterface *dhi, const std::string &localfile, const std::string &ncVersion="netcdf") | |
Constructor that creates transformation object from the specified DataDDS object to the specified file. | |
FONcTransform (libdap::DDS *dds, BESDataHandlerInterface &dhi, const std::string &localfile, const std::string &netcdfVersion="netcdf") | |
Constructor that creates transformation object from the specified DataDDS object to the specified file. | |
FONcTransform (libdap::DMR *dmr, BESDataHandlerInterface &dhi, const std::string &localfile, const std::string &netcdfVersion="netcdf") | |
Constructor that creates transformation object from the specified DataDDS object to the specified file. | |
virtual void | transform_dap2 (ostream &strm) |
Transforms each of the variables of the DataDDS to the NetCDF file. | |
virtual void | transform_dap4 () |
Transforms each of the variables of the DMR to the NetCDF file. | |
virtual | ~FONcTransform () |
Destructor. | |
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 59 of file FONcTransform.h.
FONcTransform::FONcTransform | ( | libdap::DDS * | dds, |
BESDataHandlerInterface & | dhi, | ||
const std::string & | localfile, | ||
const std::string & | netcdfVersion = "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 101 of file FONcTransform.cc.
FONcTransform::FONcTransform | ( | libdap::DMR * | dmr, |
BESDataHandlerInterface & | dhi, | ||
const std::string & | localfile, | ||
const std::string & | netcdfVersion = "netcdf" |
||
) |
Constructor that creates transformation object from the specified DataDDS object to the specified file.
dmr | DMR 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 141 of file FONcTransform.cc.
FONcTransform::FONcTransform | ( | BESResponseObject * | obj, |
BESDataHandlerInterface * | dhi, | ||
const std::string & | localfile, | ||
const std::string & | ncVersion = "netcdf" |
||
) |
Constructor that creates transformation object from the specified DataDDS object to the specified file.
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 181 of file FONcTransform.cc.
|
virtual |
Destructor.
Cleans up any temporary data created during the transformation
Definition at line 210 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 |
Definition at line 1346 of file FONcTransform.cc.
|
pure virtualinherited |
dump the contents of this object to the specified ostream
This method is implemented by all derived classes to dump their contents, in other words, any state they might have, private variables, etc...
The inline function below can be used to dump the contents of an OPeNDAPObj object. For example, the object Animal is derived from BESObj. A user could do the following:
Animal *a = new dog( "Sparky" ) ; cout << a << endl ;
And the dump method for dog could display the name passed into the constructor, the (this) pointer of the object, etc...
strm | C++ i/o stream to dump the object to |
Implemented in CmdApp, CmdClient, BESDap4ResponseHandler, BESDapModule, BESDapRequestHandler, BESDapResponse, BESDASResponse, BESDASResponseHandler, BESDataDDSResponse, BESDataDDXResponseHandler, BESDataResponseHandler, BESDDSResponse, BESDDSResponseHandler, BESDDXResponseHandler, BESDMRResponse, BESDMRResponseHandler, ShowPathInfoResponseHandler, DapModule, DapRequestHandler, BESCatalogDirectory, BESCatalogEntry, BESCatalogList, BESCatalogResponseHandler, BESCatalogUtils, BESConfigResponseHandler, BESContainer, BESContainerStorageFile, BESContainerStorageList, BESContainerStorageVolatile, BESContextManager, BESDefine, BESDefineResponseHandler, BESDefinitionStorageList, BESDefinitionStorageVolatile, BESDelContainerResponseHandler, BESDelContainersResponseHandler, BESDelDefResponseHandler, BESDelDefsResponseHandler, BESFileContainer, BESFileContainerStorage, BESFileLockingCache, BESHelpResponseHandler, BESHTMLInfo, BESInfo, BESInfoList, BESLog, BESMemoryGlobalArea, BESPlugin< M >, BESPlugin< BESAbstractModule >, BESPlugin< C >, BESPluginFactory< C >, BESPluginFactory< BESAbstractModule >, BESProcIdResponseHandler, BESRequestHandler, BESRequestHandlerList, BESResponseHandler, BESResponseHandlerList, BESReturnManager, BESServiceRegistry, BESServicesResponseHandler, BESSetContainerResponseHandler, BESSetContextResponseHandler, BESShowContainersResponseHandler, BESShowContextResponseHandler, BESShowDefsResponseHandler, BESShowErrorResponseHandler, BESStatusResponseHandler, BESStopWatch, BESStreamResponseHandler, BESTextInfo, BESTokenizer, BESTransmitter, BESUncompressManager3, BESVersionInfo, BESVersionResponseHandler, BESXMLInfo, bes::CatalogItem, bes::CatalogNode, bes::ShowNodeResponseHandler, TheBESKeys, SampleModule, SampleRequestHandler, SampleSayResponseHandler, SampleSayXMLCommand, BESAsciiModule, BESAsciiRequestHandler, cmr::CmrCatalog, cmr::CmrContainer, cmr::CmrContainerStorage, CmrModule, CSV_Field, CSV_Header, CSV_Obj, CSV_Reader, CSVModule, CSVRequestHandler, dmrpp::DmrppModule, FoCovJsonModule, FoCovJsonRequestHandler, FoDapCovJsonTransform, FoDapJsonTransform, FoInstanceJsonTransform, FoJsonModule, FoJsonRequestHandler, FONcDim, FONcMap, FONcModule, FONcRequestHandler, FitsModule, FitsRequestHandler, FFModule, functions::DapFunctions, DapFunctionsRequestHandler, gateway::GatewayContainer, gateway::GatewayContainerStorage, gateway::GatewayModule, GatewayPathInfoCommand, GatewayPathInfoResponseHandler, gateway::GatewayRequestHandler, GDALModule, HDF4Module, httpd_catalog::HttpdCatalog, httpd_catalog::HttpdCatalogContainer, httpd_catalog::HttpdCatalogContainerStorage, httpd_catalog::HttpdCatalogModule, ncml_module::NCMLModule, ncml_module::NCMLRequestHandler, NCModule, ngap::NgapContainer, ngap::NgapContainerStorage, ngap::NgapModule, ngap::NgapRequestHandler, UgridFunctions, BESUsage, BESUsageModule, BESUsageRequestHandler, W10nJsonRequestHandler, W10nJsonTransform, W10NModule, W10nShowPathInfoCommand, W10nShowPathInfoResponseHandler, BESXDModule, BESXDRequestHandler, Connection, PPTClient, PPTConnection, Socket, SocketListener, TcpSocket, UnixSocket, StandAloneClient, BESXMLCatalogCommand, BESXMLCommand, BESXMLDapCommandModule, BESXMLDefineCommand, BESXMLDeleteContainerCommand, BESXMLDeleteContainersCommand, BESXMLDeleteDefinitionCommand, BESXMLDeleteDefinitionsCommand, BESXMLGetCommand, BESXMLSetContainerCommand, BESXMLSetContextCommand, BESXMLShowCommand, BESXMLShowErrorCommand, bes::NullResponseHandler, bes::SetContextsResponseHandler, ShowBesKeyCommand, ShowBesKeyResponseHandler, bes::ShowNodeCommand, ShowPathInfoCommand, SiteMapCommand, SiteMapResponseHandler, bes::XMLSetContextsCommand, BESAbstractModule, BESCatalog, BESContainerStorage, BESDefinitionStorage, BESReporter, BESResponseObject, FONcBaseType, ServerHandler, BESDataHandlerInterface, BESError, BESForbiddenError, BESInterface, BESInternalError, BESInternalFatalError, BESModuleApp, BESNotFoundError, BESReporterList, BESSyntaxUserError, BESTimeoutError, http::EffectiveUrlCache, cmr::CmrError, dmrpp::DmrppRequestHandler, FONcArray, HDF5Module, PPTServer, BESServerHandler, DaemonCommandHandler, ServerApp, StandAloneApp, BESXMLInterface, and BESApp.
|
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 366 of file FONcTransform.cc.
|
virtual |
Transforms each of the variables of the DMR to the NetCDF file.
For each variable in the DMR 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 DMR.
Definition at line 680 of file FONcTransform.cc.