-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
312aa93
commit e8af847
Showing
12 changed files
with
223 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// ASCII2NC configuration file. | ||
// | ||
// For additional information, please see the MET User's Guide. | ||
// | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
// | ||
// The parameters listed below are used to summarize the ASCII data read in | ||
// | ||
|
||
// | ||
// Time periods for the summarization | ||
// obs_var (string array) is added and works like grib_code (int array) | ||
// when the obs name is given instead of grib_code | ||
// | ||
|
||
time_summary = { | ||
flag = TRUE; | ||
raw_data = FALSE; | ||
beg = "00"; | ||
end = "23"; | ||
step = 3600; | ||
width = { beg = -3599; end = 1; } | ||
grib_code = [ ]; | ||
obs_var = [ "rain" ]; | ||
type = [ "sum" ]; | ||
vld_freq = 15*60; | ||
vld_thresh = 1.0; | ||
} | ||
|
||
// | ||
// Mapping of input little_r report types to output message types | ||
// | ||
message_type_map = [ | ||
{ key = "FM-12 SYNOP"; val = "ADPSFC"; }, | ||
{ key = "FM-13 SHIP"; val = "SFCSHP"; }, | ||
{ key = "FM-15 METAR"; val = "ADPSFC"; }, | ||
{ key = "FM-18 BUOY"; val = "SFCSHP"; }, | ||
{ key = "FM-281 QSCAT"; val = "ASCATW"; }, | ||
{ key = "FM-32 PILOT"; val = "ADPUPA"; }, | ||
{ key = "FM-35 TEMP"; val = "ADPUPA"; }, | ||
{ key = "FM-88 SATOB"; val = "SATWND"; }, | ||
{ key = "FM-97 ACARS"; val = "AIRCFT"; } | ||
]; | ||
|
||
// | ||
// Indicate a version number for the contents of this configuration file. | ||
// The value should generally not be modified. | ||
// | ||
version = "V11.0.0"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* | ||
// ** Copyright UCAR (c) 1992 - 2022 | ||
// ** University Corporation for Atmospheric Research (UCAR) | ||
// ** National Center for Atmospheric Research (NCAR) | ||
// ** Research Applications Lab (RAL) | ||
// ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA | ||
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* | ||
|
||
|
||
//////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
using namespace std; | ||
|
||
#include <iostream> | ||
|
||
#include "summary_calc_sum.h" | ||
|
||
//////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
// | ||
// Code for class SummaryCalcSum | ||
// | ||
|
||
|
||
//////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
SummaryCalcSum::SummaryCalcSum() : | ||
SummaryCalc() | ||
{ | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////// | ||
|
||
SummaryCalcSum::~SummaryCalcSum() | ||
{ | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////// | ||
// Protected/Private Methods | ||
//////////////////////////////////////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* | ||
// ** Copyright UCAR (c) 1992 - 2022 | ||
// ** University Corporation for Atmospheric Research (UCAR) | ||
// ** National Center for Atmospheric Research (NCAR) | ||
// ** Research Applications Lab (RAL) | ||
// ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA | ||
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* | ||
|
||
|
||
//////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
#ifndef __SUMMARYCALCSUM_H__ | ||
#define __SUMMARYCALCSUM_H__ | ||
|
||
|
||
//////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
#include <iostream> | ||
|
||
#include "summary_calc.h" | ||
|
||
//////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
class SummaryCalcSum : public SummaryCalc | ||
{ | ||
|
||
public: | ||
|
||
SummaryCalcSum(); | ||
virtual ~SummaryCalcSum(); | ||
|
||
virtual string getType() const | ||
{ | ||
return "SUM"; | ||
} | ||
|
||
virtual double calcSummary(const NumArray &num_array) const | ||
{ | ||
return num_array.sum(); | ||
} | ||
|
||
}; | ||
|
||
|
||
//////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
#endif /* __SUMMARYCALCSUM_H__ */ | ||
|
||
|
||
//////////////////////////////////////////////////////////////////////// | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters