WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
MosRaw.h
1#ifndef _WINC_MOSRAW
2#define _WINC_MOSRAW
3
4#include <WXP/CityHash.h>
5#include <WXP/Date.h>
6#include <WXP/Datum.h>
7#include <WXP/Domain.h>
8#include <WXP/Filename.h>
9#include <WXP/Raw.h>
10#include <WXP/MosData.h>
11#include <WXP/StatPrior.h>
12#include <WXP/StrLib.h>
13#include <WXP/String.h>
14
15namespace WXP {
16 class MosRaw {
17 Filename filename;
18 String variable;
19 String var_file;
20 char model[20];
21 String time;
22 char stat_prior[20];
23 Domain domain;
24 StatPrior prior;
25 CityHash hash;
26
27 public:
28 MosRaw();
29 MosRaw( const char *param );
30 int init();
31 int setParam( const char *str );
32 int setPath( const char *path );
33 int setFile();
34 int setInput( const char *str );
35 int setModel( const char *str );
36 int setNameConv( const char *name );
37 int setHour( const char *str );
38 int setForeTime( const char *fore );
39 int setFilename();
40 int setFilename( Date &date );
41 int setFilename( const char *str );
42 int setFilename( Date &date, const char *param );
43 inline int setStatPrior( const char *str ){
44 StrLib::copy( stat_prior, 20, str ); return 1; };
45 int setVariable( const char *str );
46 int getDate( Date &date );
47 int setDomain( Domain &rdomain );
48 int setVarFile( const char *file );
49 inline int getDomain( Domain &rdomain ){ rdomain = domain; return 1; };
50 int createHash();
51 int setPrior( Domain &domain );
52 int getInfo( MosData &mosdata, Datum &datum );
53 int compute( Raw &data );
54 int print();
55
56 static int updateSpec( VarSpec &vs, ForeTime &f );
57 };
58}
59#endif
This class sets up a hash table for city database information.
Definition CityHash.h:9
This class stores date and time information.
Definition Date.h:8
This class stores raw point data.
Definition Datum.h:7
This class stores and manipulates domain data.
Definition Domain.h:19
This class creates filenames.
Definition Filename.h:11
This class defines forecast time parameters.
Definition ForeTime.h:9
This class stores MOS data.
Definition MosData.h:9
This class puts MOS data into a Data class for further processing.
Definition MosRaw.h:16
int setModel(const char *str)
Definition MosRaw.cc:97
int setInput(const char *str)
Definition MosRaw.cc:89
int setNameConv(const char *name)
Definition MosRaw.cc:106
int setForeTime(const char *fore)
Definition MosRaw.cc:176
int setVariable(const char *str)
Definition MosRaw.cc:354
int compute(Raw &data)
Definition MosRaw.cc:245
int getDate(Date &date)
Definition MosRaw.cc:140
This class replicates Data.
Definition Raw.h:7
This class defines station priority values.
Definition StatPrior.h:5
static int copy(char *s1, int len1, const char s2)
Definition StrLib.cc:506
This is a variable length string class.
Definition String.h:5
This class specifies variable information.
Definition VarSpec.h:13
All WXP classes fall under the WXP namespace.
Definition Angle.h:4