Added (more) volume constants

This commit is contained in:
Martin Opat 2025-01-15 14:31:41 +01:00
parent 5ccc9b0fe2
commit b700216186
1 changed files with 10 additions and 6 deletions

View File

@ -5,12 +5,6 @@
#include <cmath> #include <cmath>
// --------------------------- Basic Constants --------------------------- // --------------------------- Basic Constants ---------------------------
// const int VOLUME_WIDTH = 576; // lon
const int VOLUME_WIDTH = 97; // lon
// const int VOLUME_HEIGHT = 361; // lat
const int VOLUME_HEIGHT = 71; // lat
const int VOLUME_DEPTH = 42; // lev
const int INITIAL_WINDOW_WIDTH = 1200; const int INITIAL_WINDOW_WIDTH = 1200;
const int INITIAL_WINDOW_HEIGHT = 900; const int INITIAL_WINDOW_HEIGHT = 900;
@ -18,6 +12,16 @@ const double epsilon = 1e-10f;
const double infty = 1e15f; // This value is used to represent missing values in data const double infty = 1e15f; // This value is used to represent missing values in data
// --------------------------- Dataset Constants --------------------------- // --------------------------- Dataset Constants ---------------------------
// const int VOLUME_WIDTH = 576; // lon
const int VOLUME_WIDTH = 97; // lon
// const int VOLUME_HEIGHT = 361; // lat
const int VOLUME_HEIGHT = 71; // lat
const int VOLUME_DEPTH = 42; // lev
const float DLON = 60.0f / VOLUME_WIDTH; // 60 for current trimmed data set range
const float DLAT = 35.0f / VOLUME_HEIGHT; // 35 for current trimmed data set range
const float DLEV = 1000.0f / VOLUME_DEPTH; // 1000 from max pressure (hPa) but not sure here
const float MIN_TEMP = 210.0f; const float MIN_TEMP = 210.0f;
const float MAX_TEMP = 240.0f; const float MAX_TEMP = 240.0f;