-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMeteorologicalData.h
More file actions
56 lines (43 loc) · 1.97 KB
/
Copy pathMeteorologicalData.h
File metadata and controls
56 lines (43 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once
#include "Common/WindFileReader.h"
#include "Common/WindFieldAndPlumeHeight.h"
#include "Common/Common.h"
#ifndef METEROLOGY_H
#define METEROLOGY_H
/** <b>CMeteorologicalData</b> is the class which holds all the meterological data
which is needed in the program. */
class CMeteorologicalData
{
public:
CMeteorologicalData(void);
~CMeteorologicalData(void);
/** Set the wind field for a scanner */
int SetWindField(const CString &serialNumber, const CWindFieldAndPlumeHeight &windField);
/** Tries to read in a wind-field from a file. If this is successfull
then all wind-data returned will be first searched for in the wind-field
file and secondly from the user given or default values.
@return 0 on success */
int ReadWindFieldFromFile(const CString &fileName);
/** Get the wind field for a scanner.
The wind-field will first of all be taken from a read-in wind-field file
if no valid data can be found in the wind-field file then the
user provided or default wind-field will be returned. */
int GetWindField(const CString &serialNumber, const CDateTime &dt, CWindFieldAndPlumeHeight &windField);
/** The default wind field for the calculations */
CWindFieldAndPlumeHeight defaultWindField;
private:
/** The wind-field file reader. If any wind-field has been read in from a
file, then the data can be found here. */
FileHandler::CWindFileReader *m_wfReader;
/** The windfield at each of the scanningInstruments
the windfield at scanning Instrument 'm_scanner[i]' is given
by 'm_windFieldAtScanner[i]' */
CWindFieldAndPlumeHeight m_windFieldAtScanner[MAX_NUMBER_OF_SCANNING_INSTRUMENTS];
/** The scanningInstruments for which we know the windfield.
the windfield at scanning Instrument 'm_scanner[i]' is given
by 'm_windFieldAtScanner[i]' */
CString m_scanner[MAX_NUMBER_OF_SCANNING_INSTRUMENTS];
/** How many scanners that we have defined the wind field for */
long m_scannerNum;
};
#endif