This class stores MOS data.
More...
#include "../include/MosUData.h"
|
| enum | Model { NONE
, NGM
, ETA
, NAM
} |
| |
|
| | MosUData () |
| |
| int | init () |
| |
| int | setId (const char *rid) |
| |
| int | setId (const char *rid, float rlat, float rlon) |
| |
| const char * | getId () |
| |
| int | getLoc (float &rlat, float &rlon) |
| |
| int | getLoc (EarthPoint &ept) |
| |
| EarthPoint | getLoc () |
| |
|
float | getLat () |
| |
|
float | getLon () |
| |
| int | setElev (float relev) |
| |
| float | getElev () |
| |
| int | getSeconds () |
| |
| int | setDate (Date &rdate) |
| |
| int | getDate (Date &rdate) |
| |
| Date | getDate () |
| |
| int | setModel (int val) |
| |
| int | getModel () |
| |
| int | setNum (int val) |
| |
| int | getNum () |
| |
| int | setHour (int ind, int val) |
| |
| int | getHour (int ind) |
| |
|
int | getInd (float hr) |
| |
| int | setT (int ind, int type, float val) |
| |
| float | getT (int ind, int type) |
| |
| int | setRHum (int ind, int type, float val) |
| |
| float | getRHum (int ind, int type) |
| |
| int | setVert (int ind, float val) |
| |
| float | getVert (int ind) |
| |
| int | setLift (int ind, float val) |
| |
| float | getLift (int ind) |
| |
| int | setThick (int ind, float val) |
| |
| float | getThick (int ind) |
| |
| int | setDir (int ind, float val) |
| |
| float | getDir (int ind) |
| |
| int | setSpd (int ind, float val) |
| |
| float | getSpd (int ind) |
| |
| int | setSLPres (int ind, float val) |
| |
| float | getSLPres (int ind) |
| |
| int | setPrec (int ind, float val) |
| |
| float | getPrec (int ind) |
| |
| int | print () |
| |
|
|
static const int | NumData = 13 |
| |
|
|
class | MosUFile |
| |
|
class | MosDataTool |
| |
This class stores MOS data.
- Author
- Dan Vietor
◆ MosUData()
Constructor. Initializes class data
References init().
◆ getDate() [1/2]
| Date MosUData::getDate |
( |
| ) |
|
Gets the initial date of the filecast
- Returns
- Date class containing initial date
◆ getDate() [2/2]
| int MosUData::getDate |
( |
Date & |
rdate | ) |
|
Gets the initial date of the forecast
- Return values
-
| rdate | Date of initial data |
◆ getDir()
| float MosUData::getDir |
( |
int |
ind | ) |
|
Gets the wind direction of a forecast
- Parameters
-
| ind | Index of forecast to get data |
- Returns
- Wind direction in degrees
References WXP::Const::MISS.
◆ getElev()
| float MosUData::getElev |
( |
| ) |
|
Gets the elevation
- Returns
- Elevation of station
◆ getHour()
| int MosUData::getHour |
( |
int |
ind | ) |
|
Gets the forecast hour of a forecast
- Parameters
-
| ind | Index of forecast to get data |
- Returns
- Forecast hour
References WXP::Const::MISS.
◆ getId()
| const char * MosUData::getId |
( |
| ) |
|
Gets the station identifier
- Returns
- Station identifier string
◆ getLift()
| float MosUData::getLift |
( |
int |
ind | ) |
|
Gets the lifted index ceiling code of a forecast
- Parameters
-
| ind | Index of forecast to get data |
- Returns
- Lifted index
References WXP::Const::MISS.
◆ getLoc() [1/3]
◆ getLoc() [2/3]
◆ getLoc() [3/3]
| int MosUData::getLoc |
( |
float & |
rlat, |
|
|
float & |
rlon |
|
) |
| |
Gets the location of the station
- Return values
-
| rlat | Latitude of station |
| rlon | Longitude of station |
◆ getModel()
| int MosUData::getModel |
( |
| ) |
|
Gets the model designator
- Returns
- Integral model designator
◆ getNum()
Gets the number of forecast times
- Returns
- Number of forecast times
◆ getPrec()
| float MosUData::getPrec |
( |
int |
ind | ) |
|
Gets the precipitation of a forecast
- Parameters
-
| ind | Index of forecast to get data |
- Returns
- Precipitation
References WXP::Const::MISS.
◆ getRHum()
| float MosUData::getRHum |
( |
int |
ind, |
|
|
int |
type |
|
) |
| |
Gets the relative humidity of a forecast
- Parameters
-
| ind | Index of forecast to get data |
- Returns
- Relative humidity
References WXP::Const::MISS.
◆ getSeconds()
| int MosUData::getSeconds |
( |
| ) |
|
Gets Unix time in seconds for initial forecast time
- Returns
- Seconds since 1/1/1970 (Unix time)
References WXP::Date::getSeconds().
◆ getSLPres()
| float MosUData::getSLPres |
( |
int |
ind | ) |
|
Gets the sea level pressure of a forecast
- Parameters
-
| ind | Index of forecast to get data |
- Returns
- SL Pressure
References WXP::Const::MISS.
◆ getSpd()
| float MosUData::getSpd |
( |
int |
ind | ) |
|
Gets the wind speed of a forecast
- Parameters
-
| ind | Index of forecast to get data |
- Returns
- Wind speed
References WXP::Const::MISS.
◆ getT()
| float MosUData::getT |
( |
int |
ind, |
|
|
int |
type |
|
) |
| |
Gets the temperature of a forecast
- Parameters
-
| ind | Index of forecast to get data |
| type | Index of type of temperature |
- Returns
- Temperature
References WXP::Const::MISS.
◆ getThick()
| float MosUData::getThick |
( |
int |
ind | ) |
|
Gets the thickness a forecast
- Parameters
-
| ind | Index of forecast to get data |
- Returns
- Thickness
References WXP::Const::MISS.
◆ getVert()
| float MosUData::getVert |
( |
int |
ind | ) |
|
Gets the vertical velocity of a forecast
- Parameters
-
| ind | Index of forecast to get data |
- Returns
- vertical velocity
◆ init()
◆ print()
◆ setDate()
| int MosUData::setDate |
( |
Date & |
rdate | ) |
|
Sets the initial date of the forecast
- Parameters
-
| rdate | Date of initial data |
◆ setDir()
| int MosUData::setDir |
( |
int |
ind, |
|
|
float |
val |
|
) |
| |
Sets the wind direction of a forecast
- Parameters
-
| ind | Index of forecast |
| val | Wind direction in degrees |
◆ setElev()
| int MosUData::setElev |
( |
float |
relev | ) |
|
Sets the elevation
- Parameters
-
| relev | Elevation of station |
◆ setHour()
| int MosUData::setHour |
( |
int |
ind, |
|
|
int |
val |
|
) |
| |
Sets the forecast hour of a forecast
- Parameters
-
| ind | Index of forecast |
| val | Forecast hour |
◆ setId() [1/2]
| int MosUData::setId |
( |
const char * |
rid | ) |
|
Sets the station identifier
- Parameters
-
| rid | Station identifier string |
References WXP::StrLib::copy().
◆ setId() [2/2]
| int MosUData::setId |
( |
const char * |
rid, |
|
|
float |
rlat, |
|
|
float |
rlon |
|
) |
| |
Sets the station information
- Parameters
-
| rid | Station identifier string |
| rlat | Latitude of station |
| rlon | Longitude of station |
References WXP::StrLib::copy().
◆ setLift()
| int MosUData::setLift |
( |
int |
ind, |
|
|
float |
val |
|
) |
| |
Sets the lifted index of a forecast
- Parameters
-
| ind | Index of forecast |
| val | Lifted index |
◆ setModel()
| int MosUData::setModel |
( |
int |
rmodel | ) |
|
Sets the model designator
- Parameters
-
| rmodel | Integral model designator |
◆ setNum()
| int MosUData::setNum |
( |
int |
val | ) |
|
Sets the number of forecast times
- Parameters
-
| val | Number of forecast times |
◆ setPrec()
| int MosUData::setPrec |
( |
int |
ind, |
|
|
float |
val |
|
) |
| |
Sets the precipitation of a forecast
- Parameters
-
| ind | Index of forecast |
| val | Precipitation |
◆ setRHum()
| int MosUData::setRHum |
( |
int |
ind, |
|
|
int |
type, |
|
|
float |
val |
|
) |
| |
Sets the relative humidity of a forecast
- Parameters
-
| ind | Index of forecast |
| val | Relative humidity |
◆ setSLPres()
| int MosUData::setSLPres |
( |
int |
ind, |
|
|
float |
val |
|
) |
| |
Sets the sea level pressure of a forecast
- Parameters
-
| ind | Index of forecast |
| val | SL Pressure |
◆ setSpd()
| int MosUData::setSpd |
( |
int |
ind, |
|
|
float |
val |
|
) |
| |
Sets the wind speed of a forecast
- Parameters
-
| ind | Index of forecast |
| val | Wind speed |
◆ setT()
| int MosUData::setT |
( |
int |
ind, |
|
|
int |
type, |
|
|
float |
val |
|
) |
| |
Sets the temperature of a forecast
- Parameters
-
| ind | Index of forecast |
| type | Index of type of temperature |
| val | Temperature |
◆ setThick()
| int MosUData::setThick |
( |
int |
ind, |
|
|
float |
val |
|
) |
| |
Sets the thickness a forecast
- Parameters
-
| ind | Index of forecast |
| val | Thickness |
◆ setVert()
| int MosUData::setVert |
( |
int |
ind, |
|
|
float |
val |
|
) |
| |
Sets the vertical velocity of a forecast
- Parameters
-
| ind | Index of forecast |
| val | vertical velocity |
The documentation for this class was generated from the following files: