30#ifndef WOSS_SSP_NETCDF_DB_H
31#define WOSS_SSP_NETCDF_DB_H
44#ifdef WOSS_NETCDF_SUPPORT
49#if defined (WOSS_NETCDF4_SUPPORT)
55 static const int SSP_WOA2005_STD_NLAT = 180;
57 static const int SSP_WOA2005_STD_NLON = 360;
59 static const double SSP_WOA2005_STD_SPACING = 1.0;
62 static const double SSP_WOA2005_STD_MIN_LAT = -89.5;
64 static const double SSP_WOA2005_STD_MAX_LAT = 89.5;
67 static const double SSP_WOA2005_STD_MIN_LON = -179.5;
69 static const double SSP_WOA2005_STD_MAX_LON = 179.5;
72 static const double SSP_WOA2005_STD_START_LAT = 89.5;
74 static const double SSP_WOA2005_STD_START_LON = -179.5;
77 static const int SSP_WOA2013_STD_NLAT = 720;
79 static const int SSP_WOA2013_STD_NLON = 1440;
81 static const double SSP_WOA2013_STD_SPACING = 0.25;
84 static const double SSP_WOA2013_STD_MIN_LAT = -89.875;
86 static const double SSP_WOA2013_STD_MAX_LAT = 89.875;
89 static const double SSP_WOA2013_STD_MIN_LON = -179.875;
91 static const double SSP_WOA2013_STD_MAX_LON = 179.875;
94 static const double SSP_WOA2013_STD_START_LAT = -89.875;
96 static const double SSP_WOA2013_STD_START_LON = -179.875;
98 static const int SSP_STD_NDEPTH = 33;
103 static const short ssp_std_depths[SSP_STD_NDEPTH] = { 0, 10, 20, 30, 50, 75, 100, 125, 150, 200, 250, 300,
104 400, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500,
105 1750, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 5500 };
135#if defined (WOSS_NETCDF4_SUPPORT)
172 virtual SSP*
getValue(
const Coord& coordinates,
const Time& time,
long double ssp_depth_precision )
const ;
191#if defined (WOSS_NETCDF4_SUPPORT)
197#if defined (WOSS_NETCDF4_SUPPORT)
215#if defined (WOSS_NETCDF4_SUPPORT)
Coordinates (lat, long) class definitions and functions library.
Definition coordinates-definitions.h:107
SSP class offers multiple creation and manipulation capabilities for sound speed profile.
Definition ssp-definitions.h:258
WossDb for the custom made NetCDF WOA2005 SSP database.
Definition ssp-woa2005-db.h:123
virtual bool insertValue(const Coord &coordinates, const Time &time_value, const SSP &ssp_value)
Definition ssp-woa2005-db.cpp:121
void getSSPValue(const SSPIndexes &indexes, double ssp_values[]) const
SSPIndexes getSSPIndexes(const Coord &coordinates) const
Definition ssp-woa2005-db.cpp:127
WOADbType woa_db_type
Definition ssp-woa2005-db.h:186
virtual SSP * getValue(const Coord &coordinates, const Time &time, long double ssp_depth_precision) const
Definition ssp-woa2005-db.cpp:266
netCDF::NcVar ssp_var
Definition ssp-woa2005-db.h:192
netCDF::NcVar lon_var
Definition ssp-woa2005-db.h:205
netCDF::NcVar lat_var
Definition ssp-woa2005-db.h:201
WOADbType getWoaDbType() const
Definition ssp-woa2005-db.h:178
void getSSPValue(const Coord &coordinates, const SSPIndexes &indexes, double ssp_values[]) const
Definition ssp-woa2005-db.cpp:170
virtual bool finalizeConnection()
Definition ssp-woa2005-db.cpp:77
a class for time date manipulation
Definition time-definitions.h:95
NetCDF implementation of WossDb.
Definition woss-db.h:193
Data behaviour class for SSP database.
Definition woss-db.h:375
Definitions and library for Sound Speed Profiles.
WOADbType
Definition ssp-woa2005-db.h:112
@ WOA_DB_TYPE_2005
2005 and 2009 NetCDF Db type, 1 degree resolution
Definition ssp-woa2005-db.h:113
@ WOA_DB_TYPE_INVALID
Must always be the last.
Definition ssp-woa2005-db.h:115
@ WOA_DB_TYPE_2013
2013, 2001 and 2018 NetCDF4 Db type, 0.25 degree resolution
Definition ssp-woa2005-db.h:114
::std::pair< int, int > SSPIndexes
Definition ssp-woa2005-db.h:110
Provides the interface for woss::WossDb class.