33#ifndef WOSS_SEDIMENT_DECK41_COORD_DB_H
34#define WOSS_SEDIMENT_DECK41_COORD_DB_H
37#ifdef WOSS_NETCDF_SUPPORT
42#if defined (WOSS_NETCDF4_SUPPORT)
48 static constexpr int DECK41_MINUTES_SEDIM_NLAT = 10801;
50 static constexpr int DECK41_MINUTES_SEDIM_NLON = 21601;
52 static constexpr double DECK41_MINUTES_SEDIM_SPACING = 0.0166666666666667;
54 static constexpr int DECK41_V2_SEDIM_NLAT = 10800;
56 static constexpr int DECK41_V2_SEDIM_NLON = 21600;
58 static constexpr double DECK41_V2_SEDIM_MIN_LAT = -89.9833333333333333;
60 static constexpr double DECK41_V2_SEDIM_MAX_LAT = 89.9833333333333333;
62 static constexpr double DECK41_V2_SEDIM_MIN_LON = -179.9833333333333333;
64 static constexpr double DECK41_V2_SEDIM_MAX_LON = 179.9833333333333333;
66 static constexpr double DECK41_V2_SEDIM_START_LAT = -89.9833333333333333;
68 static constexpr double DECK41_V2_SEDIM_START_LON = -179.9833333333333333;
70 static constexpr double DECK41_V2_SEDIM_SPACING = 0.0166666666666667;
97#if defined (WOSS_NETCDF4_SUPPORT)
130#if defined (WOSS_NETCDF4_SUPPORT)
151#if defined (WOSS_NETCDF4_SUPPORT)
160#if defined (WOSS_NETCDF4_SUPPORT)
169#if defined(WOSS_NETCDF4_SUPPORT)
178#if defined(WOSS_NETCDF4_SUPPORT)
196#if defined (WOSS_NETCDF4_SUPPORT)
Coordinates (lat, long) class definitions and functions library.
Definition coordinates-definitions.h:98
WossDb for custom made NetCDF DECK41 Sediment database.
Definition sediment-deck41-coord-db.h:87
Deck41Types getSeaFloorType(const Coord &coordinates) const
Definition sediment-deck41-coord-db.cpp:177
virtual bool isValid() const override
Definition sediment-deck41-coord-db.h:127
virtual ~SedimDeck41CoordDb() override=default
netCDF::NcVar lon_var
Definition sediment-deck41-coord-db.h:179
std::pair< int, int > getSedimIndexes(const Coord &coordinates) const
Definition sediment-deck41-coord-db.cpp:73
netCDF::NcVar lat_var
Definition sediment-deck41-coord-db.h:170
NcVar * lon_var
Definition sediment-deck41-coord-db.h:181
NcVar * lat_var
Definition sediment-deck41-coord-db.h:172
netCDF::NcVar sec_sedim_var_coord
Definition sediment-deck41-coord-db.h:161
int getSedimIndex(const Coord &coords) const
Definition sediment-deck41-coord-db.cpp:118
DECK41DbType getDeck41DbType() const
Definition sediment-deck41-coord-db.h:142
NcVar * main_sedim_var_coord
Definition sediment-deck41-coord-db.h:154
NcVar * sec_sedim_var_coord
Definition sediment-deck41-coord-db.h:163
virtual bool finalizeConnection() override
Definition sediment-deck41-coord-db.cpp:140
DECK41DbType deck41_db_type
Definition sediment-deck41-coord-db.h:187
netCDF::NcVar main_sedim_var_coord
Definition sediment-deck41-coord-db.h:152
void setDeck41DbType(DECK41DbType db_type)
Definition sediment-deck41-coord-db.h:135
std::string db_name
Definition woss-db.h:152
virtual bool isValid() const
Definition woss-db.h:124
NetCDF implementation of WossDb.
Definition woss-db.h:178
Definition ac-toolbox-arr-asc-reader.h:44
DECK41DbType
Definition sediment-deck41-coord-db.h:75
@ DECK41_DB_V1_TYPE
DECK41 V1 NetCDF Legacy db.
@ DECK41_DB_INVALID_TYPE
INVALID, must be last.
@ DECK41_DB_V2_TYPE
DECK41 V2 NetCDF4 db.
std::pair< int, int > Deck41Types
Definition sediment-definitions.h:46
Definitions and library for woss::Sediment class.
Provides the interface for woss::WossDb class.