World Ocean Simulation System (WOSS) library
|
WossDb for custom made NetCDF DECK41 Sediment database. More...
#include <sediment-deck41-coord-db.h>
Public Member Functions | |
SedimDeck41CoordDb (const ::std::string &name=DB_NAME_NOT_SET) | |
SedimDeck41CoordDb (const ::std::string &name, DECK41DbType db_type) | |
Deck41Types | getSeaFloorType (const Coord &coordinates) const |
virtual bool | finalizeConnection () |
virtual bool | isValid () |
void | setDeck41DbType (DECK41DbType db_type) |
DECK41DbType | getDeck41DbType () const |
Public Member Functions inherited from woss::WossNetcdfDb | |
WossNetcdfDb (const ::std::string &name) | |
virtual bool | openConnection () |
virtual bool | closeConnection () |
Public Member Functions inherited from woss::WossDb | |
WossDb (const ::std::string &name) | |
void | setDbName (const ::std::string &pathname) |
::std::string | getDbName () const |
void | setDebug (double flag=true) |
bool | isUsingDebug () const |
Protected Member Functions | |
int | getSedimIndex (const Coord &coords) const |
::std::pair< int, int > | getSedimIndexes (const Coord &coordinates) const |
Protected Member Functions inherited from woss::WossDb | |
PathName | getPathName (const ::std::string &complete_path) |
Protected Attributes | |
netCDF::NcVar | main_sedim_var_coord |
NcVar * | main_sedim_var_coord |
netCDF::NcVar | sec_sedim_var_coord |
NcVar * | sec_sedim_var_coord |
netCDF::NcVar | lat_var |
NcVar * | lat_var |
netCDF::NcVar | lon_var |
NcVar * | lon_var |
DECK41DbType | deck41_db_type |
Protected Attributes inherited from woss::WossNetcdfDb | |
netCDF::NcFile * | netcdf_db |
NcFile * | netcdf_db |
Protected Attributes inherited from woss::WossDb | |
::std::string | db_name |
bool | debug |
WossDb for custom made NetCDF DECK41 Sediment database.
SedimDeck41Db implements WossNetcdfDb for the custom made NetCDF DECK41 Sediment database
SedimDeck41CoordDb::SedimDeck41CoordDb | ( | const ::std::string & | name = DB_NAME_NOT_SET | ) |
SedimDeck41CoordDb default constructor. Default constructed object are not valid
name | pathname of database |
References woss::DECK41_DB_V1_TYPE.
SedimDeck41CoordDb::SedimDeck41CoordDb | ( | const ::std::string & | name, |
DECK41DbType | db_type | ||
) |
SedimDeck41CoordDb default constructor. Default constructed object are not valid
name | pathname of database |
db_type | DECK41 db type |
|
virtual |
Post openConnection() actions, used to create and initialize NetCDF variables
Implements woss::WossDb.
References woss::DECK41_DB_INVALID_TYPE, deck41_db_type, woss::DECK41_DB_V2_TYPE, lat_var, lon_var, main_sedim_var_coord, woss::WossNetcdfDb::netcdf_db, and sec_sedim_var_coord.
|
inline |
Deck41Types SedimDeck41CoordDb::getSeaFloorType | ( | const Coord & | coordinates | ) | const |
Returns a Deck41Types for the given coordinates
coordinates | const reference to a valid Coord object |
References woss::WossDb::debug, deck41_db_type, woss::DECK41_DB_V1_TYPE, woss::DECK41_DB_V2_TYPE, woss::Coord::getLatitude(), woss::Coord::getLongitude(), getSedimIndex(), getSedimIndexes(), lat_var, lon_var, main_sedim_var_coord, and sec_sedim_var_coord.
Referenced by woss::SedimDeck41Db::getDeck41TypesFromCoords().
|
protected |
Returns the index used by a NetCDF variable to get the DECK41 floortype integer value
coordinates | const reference to a valid Coord object |
References woss::WossDb::debug, woss::Coord::getLatitude(), and woss::Coord::getLongitude().
Referenced by getSeaFloorType().
|
protected |
Returns the index pair used by a NetCDF variable to get the DECK41 floortype integer value
coordinates | const reference to a valid Coord object |
References woss::Coord::COORD_MAX_LATITUDE, woss::Coord::COORD_MAX_LONGITUDE, woss::Coord::COORD_MIN_LATITUDE, woss::Coord::COORD_MIN_LONGITUDE, woss::WossDb::debug, woss::Coord::getLatitude(), and woss::Coord::getLongitude().
Referenced by getSeaFloorType().
|
inlinevirtual |
Checks the validity of SedimDeck41CoordDb
Reimplemented from woss::WossDb.
References woss::WossDb::db_name, woss::DECK41_DB_INVALID_TYPE, deck41_db_type, and woss::WossDb::isValid().
|
inline |
Sets the current DECK41 Db type
db_type | DECK41DbType |
References deck41_db_type.
Referenced by woss::SedimDeck41DbCreator::initializeSedimDb().
|
protected |
DECK41 database type
Referenced by finalizeConnection(), getDeck41DbType(), getSeaFloorType(), isValid(), and setDeck41DbType().
|
protected |
NetCDF latitude variable
Referenced by finalizeConnection(), and getSeaFloorType().
|
protected |
NetCDF longitude variable
Referenced by finalizeConnection(), and getSeaFloorType().
|
protected |
NetCDF variable representing main DECK41 floortype
Referenced by finalizeConnection(), and getSeaFloorType().
|
protected |
NetCDF variable representing secondary DECK41 floortype
Referenced by finalizeConnection(), and getSeaFloorType().