WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
WXP::MosUData Class Reference

This class stores MOS data. More...

#include "../include/MosUData.h"

Public Types

enum  Model { NONE , NGM , ETA , NAM }
 

Public Member Functions

 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 Public Attributes

static const int NumData = 13
 

Friends

class MosUFile
 
class MosDataTool
 

Detailed Description

This class stores MOS data.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ MosUData()

MosUData::MosUData ( )

Constructor. Initializes class data

References init().

Member Function Documentation

◆ 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
rdateDate of initial data

◆ getDir()

float MosUData::getDir ( int  ind)

Gets the wind direction of a forecast

Parameters
indIndex 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
indIndex 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
indIndex of forecast to get data
Returns
Lifted index

References WXP::Const::MISS.

◆ getLoc() [1/3]

EarthPoint MosUData::getLoc ( )

Gets the location of the station

Returns
EarthPoint class with location

References WXP::EarthPoint::set().

◆ getLoc() [2/3]

int MosUData::getLoc ( EarthPoint ept)

Gets the location of the station

Return values
eptThe EarthPoint class to put location

References WXP::EarthPoint::set().

◆ getLoc() [3/3]

int MosUData::getLoc ( float &  rlat,
float &  rlon 
)

Gets the location of the station

Return values
rlatLatitude of station
rlonLongitude of station

◆ getModel()

int MosUData::getModel ( )

Gets the model designator

Returns
Integral model designator

◆ getNum()

int MosUData::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
indIndex 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
indIndex 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
indIndex 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
indIndex 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
indIndex of forecast to get data
typeIndex of type of temperature
Returns
Temperature

References WXP::Const::MISS.

◆ getThick()

float MosUData::getThick ( int  ind)

Gets the thickness a forecast

Parameters
indIndex 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
indIndex of forecast to get data
Returns
vertical velocity

◆ init()

int MosUData::init ( )

Initializes class data

References WXP::Const::MISS.

Referenced by MosUData(), and WXP::MosUFile::read().

◆ print()

int MosUData::print ( )

◆ setDate()

int MosUData::setDate ( Date rdate)

Sets the initial date of the forecast

Parameters
rdateDate of initial data

◆ setDir()

int MosUData::setDir ( int  ind,
float  val 
)

Sets the wind direction of a forecast

Parameters
indIndex of forecast
valWind direction in degrees

◆ setElev()

int MosUData::setElev ( float  relev)

Sets the elevation

Parameters
relevElevation of station

◆ setHour()

int MosUData::setHour ( int  ind,
int  val 
)

Sets the forecast hour of a forecast

Parameters
indIndex of forecast
valForecast hour

◆ setId() [1/2]

int MosUData::setId ( const char *  rid)

Sets the station identifier

Parameters
ridStation identifier string

References WXP::StrLib::copy().

◆ setId() [2/2]

int MosUData::setId ( const char *  rid,
float  rlat,
float  rlon 
)

Sets the station information

Parameters
ridStation identifier string
rlatLatitude of station
rlonLongitude of station

References WXP::StrLib::copy().

◆ setLift()

int MosUData::setLift ( int  ind,
float  val 
)

Sets the lifted index of a forecast

Parameters
indIndex of forecast
valLifted index

◆ setModel()

int MosUData::setModel ( int  rmodel)

Sets the model designator

Parameters
rmodelIntegral model designator

◆ setNum()

int MosUData::setNum ( int  val)

Sets the number of forecast times

Parameters
valNumber of forecast times

◆ setPrec()

int MosUData::setPrec ( int  ind,
float  val 
)

Sets the precipitation of a forecast

Parameters
indIndex of forecast
valPrecipitation

◆ setRHum()

int MosUData::setRHum ( int  ind,
int  type,
float  val 
)

Sets the relative humidity of a forecast

Parameters
indIndex of forecast
valRelative humidity

◆ setSLPres()

int MosUData::setSLPres ( int  ind,
float  val 
)

Sets the sea level pressure of a forecast

Parameters
indIndex of forecast
valSL Pressure

◆ setSpd()

int MosUData::setSpd ( int  ind,
float  val 
)

Sets the wind speed of a forecast

Parameters
indIndex of forecast
valWind speed

◆ setT()

int MosUData::setT ( int  ind,
int  type,
float  val 
)

Sets the temperature of a forecast

Parameters
indIndex of forecast
typeIndex of type of temperature
valTemperature

◆ setThick()

int MosUData::setThick ( int  ind,
float  val 
)

Sets the thickness a forecast

Parameters
indIndex of forecast
valThickness

◆ setVert()

int MosUData::setVert ( int  ind,
float  val 
)

Sets the vertical velocity of a forecast

Parameters
indIndex of forecast
valvertical velocity

The documentation for this class was generated from the following files: