VAPOR3 3.9.4
|
Derived variable abstract class. More...
#include <DerivedVar.h>
Public Member Functions | |
DerivedVar (string varName) | |
virtual | ~DerivedVar () |
virtual int | Initialize ()=0 |
string | GetName () const |
virtual bool | GetBaseVarInfo (DC::BaseVar &var) const =0 |
virtual bool | GetAtt (string attname, std::vector< double > &values) const |
virtual bool | GetAtt (string attname, std::vector< long > &values) const |
virtual bool | GetAtt (string attname, string &values) const |
virtual std::vector< string > | GetAttNames () const |
virtual DC::XType | GetAttType (string attname) const |
virtual std::vector< string > | GetInputs () const =0 |
virtual int | GetDimLensAtLevel (int level, std::vector< size_t > &dims_at_level, std::vector< size_t > &bs_at_level) const =0 |
virtual int | GetDimLensAtLevel (int level, std::vector< size_t > &dims_at_level, std::vector< size_t > &bs_at_level, long ts) const |
virtual size_t | GetNumRefLevels () const |
virtual std::vector< size_t > | GetCRatios () const |
virtual int | OpenVariableRead (size_t ts, int level=0, int lod=0)=0 |
virtual int | CloseVariable (int fd)=0 |
virtual int | ReadRegion (int fd, const std::vector< size_t > &min, const std::vector< size_t > &max, float *region)=0 |
virtual int | ReadRegion (int fd, const std::vector< size_t > &min, const std::vector< size_t > &max, double *region) |
virtual bool | VariableExists (size_t ts, int reflevel, int lod) const =0 |
Public Member Functions inherited from Wasp::MyBase | |
MyBase () | |
const string & | getClassName () const |
Protected Member Functions | |
int | _getVar (DC *dc, size_t ts, string varname, int level, int lod, const std::vector< size_t > &min, const std::vector< size_t > &max, float *region) const |
int | _getVarDestagger (DC *dc, size_t ts, string varname, int level, int lod, const std::vector< size_t > &min, const std::vector< size_t > &max, float *region, int stagDim) const |
Protected Member Functions inherited from Wasp::MyBase | |
void | SetClassName (const string &name) |
Protected Attributes | |
string | _derivedVarName |
DC::FileTable | _fileTable |
Additional Inherited Members | |
Public Types inherited from Wasp::MyBase | |
typedef void(* | ErrMsgCB_T) (const char *msg, int err_code) |
typedef void(* | DiagMsgCB_T) (const char *msg) |
Static Public Member Functions inherited from Wasp::MyBase | |
static void | SetErrMsg (const char *format,...) |
Record a formatted error message. | |
static void | SetErrMsg (int errcode, const char *format,...) |
Record a formatted error message and an error code. | |
static const char * | GetErrMsg () |
static void | SetErrCode (int err_code) |
Record an error code. | |
static int | GetErrCode () |
Retrieve the current error code. | |
static void | SetErrMsgCB (ErrMsgCB_T cb) |
static ErrMsgCB_T | GetErrMsgCB () |
static void | SetErrMsgFilePtr (FILE *fp) |
static const FILE * | SetErrMsgFilePtr () |
static void | SetDiagMsg (const char *format,...) |
Record a formatted diagnostic message. | |
static const char * | GetDiagMsg () |
static void | SetDiagMsgCB (DiagMsgCB_T cb) |
static DiagMsgCB_T | GetDiagMsgCB () |
static void | SetDiagMsgFilePtr (FILE *fp) |
static bool | EnableErrMsg (bool enable) |
static bool | GetEnableErrMsg () |
Static Public Attributes inherited from Wasp::MyBase | |
static char * | ErrMsg |
static int | ErrCode |
static int | ErrMsgSize |
static FILE * | ErrMsgFilePtr |
static ErrMsgCB_T | ErrMsgCB |
static char * | DiagMsg |
static int | DiagMsgSize |
static FILE * | DiagMsgFilePtr |
static DiagMsgCB_T | DiagMsgCB |
static bool | Enabled |
Derived variable abstract class.
This abstract base class defines an API for the internal creation of derived data and coordinate variables. Derived variables may be used to support the results of a data operator (e.g. computing wind speed from velocity component variables), creating of a dimensioned coordinate variable from a dimensionless one (e.g. supporting the CF conventions formula_terms attribute), resampling a variable to a different mesh ( resampling a staggered variable to an unstaggered mesh), or conversion of units (e.g. converting formatted time strings to time in seconds).
Definition at line 34 of file DerivedVar.h.
|
inline |
Definition at line 36 of file DerivedVar.h.
|
inlinevirtual |
Definition at line 38 of file DerivedVar.h.
|
protected |
|
protected |
|
pure virtual |
Implemented in VAPoR::DerivedCoordVar_PCSFromLatLon, VAPoR::DerivedCoordVar_CF1D, VAPoR::DerivedCoordVar_CF2D, VAPoR::DerivedCoordVar_WRFTime, VAPoR::DerivedCoordVar_TimeInSeconds, VAPoR::DerivedCoordVar_Time, VAPoR::DerivedCoordVar_Staggered, VAPoR::DerivedCoordVar_UnStaggered, VAPoR::DerivedCoordVarStandardWRF_Terrain, VAPoR::DerivedCoordVarStandardOceanSCoordinate, VAPoR::DerivedCoordVarStandardAHSPC, and VAPoR::DerivedParticleDensity.
|
inlinevirtual |
Definition at line 46 of file DerivedVar.h.
|
inlinevirtual |
Definition at line 52 of file DerivedVar.h.
|
inlinevirtual |
Definition at line 58 of file DerivedVar.h.
|
inlinevirtual |
Definition at line 64 of file DerivedVar.h.
|
inlinevirtual |
Definition at line 66 of file DerivedVar.h.
|
pure virtual |
Implemented in VAPoR::DerivedCoordVar_PCSFromLatLon, VAPoR::DerivedCoordVar_CF1D, VAPoR::DerivedCoordVar_CF2D, VAPoR::DerivedCoordVar_WRFTime, VAPoR::DerivedCoordVar_TimeInSeconds, VAPoR::DerivedCoordVar_Time, VAPoR::DerivedCoordVar_Staggered, VAPoR::DerivedCoordVar_UnStaggered, VAPoR::DerivedCoordVarStandardWRF_Terrain, VAPoR::DerivedCoordVarStandardOceanSCoordinate, VAPoR::DerivedCoordVarStandardAHSPC, and VAPoR::DerivedParticleDensity.
|
inlinevirtual |
Reimplemented in VAPoR::DerivedCoordVarStandardWRF_Terrain, VAPoR::DerivedCoordVarStandardOceanSCoordinate, and VAPoR::DerivedCoordVarStandardAHSPC.
Definition at line 76 of file DerivedVar.h.
|
pure virtual |
Implemented in VAPoR::DerivedCoordVar_PCSFromLatLon, VAPoR::DerivedCoordVar_CF1D, VAPoR::DerivedCoordVar_CF2D, VAPoR::DerivedCoordVar_WRFTime, VAPoR::DerivedCoordVar_TimeInSeconds, VAPoR::DerivedCoordVar_Time, VAPoR::DerivedCoordVar_Staggered, VAPoR::DerivedCoordVar_UnStaggered, VAPoR::DerivedCoordVarStandardWRF_Terrain, VAPoR::DerivedCoordVarStandardOceanSCoordinate, VAPoR::DerivedCoordVarStandardAHSPC, and VAPoR::DerivedParticleDensity.
|
inlinevirtual |
Reimplemented in VAPoR::DerivedCoordVar_CF1D.
Definition at line 72 of file DerivedVar.h.
References GetDimLensAtLevel().
Referenced by GetDimLensAtLevel().
|
pure virtual |
Implemented in VAPoR::DerivedCoordVar_PCSFromLatLon, VAPoR::DerivedCoordVar_CF1D, VAPoR::DerivedCoordVar_CF2D, VAPoR::DerivedCoordVar_WRFTime, VAPoR::DerivedCoordVar_TimeInSeconds, VAPoR::DerivedCoordVar_Time, VAPoR::DerivedCoordVar_Staggered, VAPoR::DerivedCoordVar_UnStaggered, VAPoR::DerivedCoordVarStandardWRF_Terrain, VAPoR::DerivedCoordVarStandardOceanSCoordinate, VAPoR::DerivedCoordVarStandardAHSPC, VAPoR::DerivedParticleDensity, and VAPoR::DerivedCoordVar1DSpan.
|
inline |
Definition at line 42 of file DerivedVar.h.
|
inlinevirtual |
Reimplemented in VAPoR::DerivedCoordVarStandardWRF_Terrain, VAPoR::DerivedCoordVarStandardOceanSCoordinate, and VAPoR::DerivedCoordVarStandardAHSPC.
Definition at line 74 of file DerivedVar.h.
|
pure virtual |
Implemented in VAPoR::DerivedCoordVar_PCSFromLatLon, VAPoR::DerivedCoordVar_CF1D, VAPoR::DerivedCoordVar_CF2D, VAPoR::DerivedCoordVar_WRFTime, VAPoR::DerivedCoordVar_TimeInSeconds, VAPoR::DerivedCoordVar_Time, VAPoR::DerivedCoordVar_Staggered, VAPoR::DerivedCoordVar_UnStaggered, VAPoR::DerivedCoordVarStandardWRF_Terrain, VAPoR::DerivedCoordVarStandardOceanSCoordinate, VAPoR::DerivedCoordVarStandardAHSPC, VAPoR::DerivedParticleDensity, and VAPoR::DerivedParticleAverage.
|
pure virtual |
Implemented in VAPoR::DerivedCoordVar_PCSFromLatLon, VAPoR::DerivedCoordVar_CF1D, VAPoR::DerivedCoordVar_CF2D, VAPoR::DerivedCoordVar_WRFTime, VAPoR::DerivedCoordVar_TimeInSeconds, VAPoR::DerivedCoordVar_Time, VAPoR::DerivedCoordVar_Staggered, VAPoR::DerivedCoordVar_UnStaggered, VAPoR::DerivedCoordVarStandardWRF_Terrain, VAPoR::DerivedCoordVarStandardOceanSCoordinate, VAPoR::DerivedCoordVarStandardAHSPC, and VAPoR::DerivedParticleDensity.
|
virtual |
Reimplemented in VAPoR::DerivedCoordVar_WRFTime, and VAPoR::DerivedCoordVar_TimeInSeconds.
|
pure virtual |
Implemented in VAPoR::DerivedCoordVar_PCSFromLatLon, VAPoR::DerivedCoordVar_CF1D, VAPoR::DerivedCoordVar_CF2D, VAPoR::DerivedCoordVar_WRFTime, VAPoR::DerivedCoordVar_TimeInSeconds, VAPoR::DerivedCoordVar_Time, VAPoR::DerivedCoordVar_Staggered, VAPoR::DerivedCoordVar_UnStaggered, VAPoR::DerivedCoordVarStandardWRF_Terrain, VAPoR::DerivedCoordVarStandardOceanSCoordinate, VAPoR::DerivedCoordVarStandardAHSPC, VAPoR::DerivedParticleDensity, and VAPoR::DerivedCoordVar1DSpan.
|
pure virtual |
Implemented in VAPoR::DerivedCoordVar_PCSFromLatLon, VAPoR::DerivedCoordVar_CF1D, VAPoR::DerivedCoordVar_CF2D, VAPoR::DerivedCoordVar_WRFTime, VAPoR::DerivedCoordVar_TimeInSeconds, VAPoR::DerivedCoordVar_Time, VAPoR::DerivedCoordVar_Staggered, VAPoR::DerivedCoordVar_UnStaggered, VAPoR::DerivedCoordVarStandardWRF_Terrain, VAPoR::DerivedCoordVarStandardOceanSCoordinate, VAPoR::DerivedCoordVarStandardAHSPC, and VAPoR::DerivedParticleDensity.
|
protected |
Definition at line 88 of file DerivedVar.h.
|
protected |
Definition at line 89 of file DerivedVar.h.