6#include <WXP/CloudLayer.h>
14 static const int comment_len = 100;
60 char comment[comment_len];
65 inline int setId(
const char *str ){
67 inline const char *getId(){
return id; };
69 inline int setArea(
const char *str ){
71 inline const char *getArea(){
return area; };
73 inline int setName(
const char *str ){
75 inline const char *getName(){
return name; };
77 inline int setWmo(
const char *str ){ wmo = atol( str );
return 1; };
78 inline int getWmo(){
return wmo; };
80 inline int setLoc(
float rlat,
float rlon ){
81 lat = rlat; lon = rlon;
return 1; };
83 inline float getLat(){
return lat; }
84 inline float getLon(){
return lon; }
86 inline int setElev(
float el ){ elev = el;
return 1; }
87 inline float getElev(){
return elev; }
89 inline int setDate(
Date rdate ){ date = rdate;
return 1; }
90 int getDate(
Date &rdate );
91 inline Date getDate(){
return date; }
96 inline int setType(
int rtype ){ type = rtype;
return 1; }
97 inline int getType(){
return type; }
99 inline int setT(
float rt ){ t = rt;
return 1; }
100 inline float getT(){
return t; }
102 inline int setTd(
float rtd ){ td = rtd;
return 1; }
103 inline float getTd(){
return td; }
105 inline int setDir(
float rdir ){ dir = rdir;
return 1; }
106 inline float getDir(){
return dir; }
108 inline int setSpd(
float rspd ){ spd = rspd;
return 1; }
109 inline float getSpd(){
return spd; }
111 inline int setGust(
float rgust ){ gust = rgust;
return 1; }
112 inline float getGust(){
return gust; }
114 inline int setAlt(
float ralt ){ alt = ralt;
return 1; }
115 inline float getAlt(){
return alt; }
117 inline int setSlp(
float rslp ){ slp = rslp;
return 1; }
118 inline float getSlp(){
return slp; }
120 inline int setVis(
float rvis ){ vis = rvis;
return 1; }
121 inline float getVis(){
return vis; }
123 inline int setWeather(
const char *wx ){
125 inline const char *getWeather(){
return weather; }
128 inline int setNumCld(
int num ){ num_cld = num;
return 1; }
129 inline int getNumCld(){
return num_cld; }
131 int setCldHeight(
int ind,
float height );
132 float getCldHeight(
int ind );
133 float getCldHeight();
134 int setCldCover(
int ind,
char cover );
135 char getCldCover(
int ind );
138 inline int setPtendType(
int type ){ ptend_type = type;
return 1; }
139 inline int getPtendType(){
return ptend_type; }
141 inline int setPtend(
float rptend ){ ptend = rptend;
return 1; }
142 inline float getPtend(){
return ptend; }
144 inline int setPrec3(
float val ){ prec3 = val;
return 1; }
145 inline float getPrec3(){
return prec3; }
147 inline int setPrec6(
float val ){ prec6 = val;
return 1; }
148 inline float getPrec6(){
return prec6; }
150 inline int setPrec12(
float val ){ prec12 = val;
return 1; }
151 inline float getPrec12(){
return prec12; }
153 inline int setPrec24(
float val ){ prec24 = val;
return 1; }
154 inline float getPrec24(){
return prec24; }
156 inline int setPrec(
float val ){ prec = val;
return 1; }
157 inline float getPrec(){
return prec; }
159 inline int setPrecPer(
int per ){ prec_per = per;
return 1; }
160 inline int getPrecPer(){
return prec_per; }
162 inline int setCldLow(
int low ){ cld_low = low;
return 1; }
163 inline int getCldLow(){
return cld_low; }
165 int setCldType(
int ind,
char type );
166 char getCldType(
int ind );
168 inline int setMaxT(
float t ){ max_t = t;
return 1; }
169 inline float getMaxT(){
return max_t; }
171 inline int setMinT(
float t ){ min_t = t;
return 1; }
172 inline float getMinT(){
return min_t; }
174 inline int setMax6T(
float t ){ max6_t = t;
return 1; }
175 inline float getMax6T(){
return max6_t; }
177 inline int setMin6T(
float t ){ min6_t = t;
return 1; }
178 inline float getMin6T(){
return min6_t; }
180 inline int setSnowCov(
float snow ){ snow_cov = snow;
return 1; }
181 inline float getSnowCov(){
return snow_cov; }
183 inline int setSolar(
float solar ){ solar = solar;
return 1; }
184 inline float getSolar(){
return solar; }
186 inline int setSst(
float sst ){ sst = sst;
return 1; }
187 inline float getSst(){
return sst; }
189 inline int setWavPer(
float wav_per ){ wav_per = wav_per;
return 1; }
190 inline float getWavPer(){
return wav_per; }
192 inline int setWavHgt(
float wav_hgt ){ wav_hgt = wav_hgt;
return 1; }
193 inline float getWavHgt(){
return wav_hgt; }
195 int setComment(
const char *str );
196 int addComment(
const char *str );
197 int addComment(
const char *str,
int num );
198 const char *getComment();
199 int setFlag(
int val );
200 int orFlag(
int val );
210 static int printDiff(
int diff );
224 enum Locate { USA, CANADA, MEXICO, OTHER };
226 enum StatType { MANNED, AMOS, ASOS, AWOS };
243 static const int RMK = 0x1;
244 static const int TGRP = 0x2;
246 static const int SPECIAL = 1;
247 static const int CORRECT = 2;
248 static const int AUTO = 4;
250 static const int DF_TYPE = 1;
251 static const int DF_TIME = 1 << 1;
252 static const int DF_TEMP = 1 << 2;
253 static const int DF_PRES = 1 << 3;
254 static const int DF_WIND = 1 << 4;
255 static const int DF_WX = 1 << 5;
256 static const int DF_CLD = 1 << 6;
257 static const int DF_VIS = 1 << 7;
258 static const int DF_PTND = 1 << 8;
259 static const int DF_PREC = 1 << 9;
260 static const int DF_EXTT = 1 << 10;
261 static const int DF_SNOW = 1 << 11;
262 static const int DF_SOL = 1 << 12;
263 static const int DF_SEA = 1 << 13;
264 static const int DF_CTYP = 1 << 14;
265 static const int DF_COM = 1 << 15;
This class stores date and time information.
Definition Date.h:8
This class reads in surface data from a netCDF file.
Definition SfcCdfFile.h:9
This class stores surface data.
Definition SfcData.h:12
int validate()
Definition SfcData.cc:883
SfcData()
Definition SfcData.cc:29
int outString(String &str)
Definition SfcData.cc:418
int print()
Definition SfcData.cc:292
static int compare(SfcData &rep1, SfcData &rep2)
Definition SfcData.cc:546
int weatherText(String &str)
Definition SfcData.cc:121
int printLine()
Definition SfcData.cc:408
int init()
Definition SfcData.cc:36
int update(SfcData &rep, int lev)
Definition SfcData.cc:709
This class decodes METAR, SAO and SYNOP data files.
Definition SfcDecode.h:11
This class reads in surface data from a file from file.
Definition SfcFile.h:12
This class reads in surface data from a WXP formatted file from file.
Definition SfcWxpFile.h:9
This class reads in surface data from a WXP formatted file from file.
Definition SfcXmlFile.h:11
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
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct stores cloud layer data.
Definition CloudLayer.h:5