File: present_weather_Trend3.def

package info (click to toggle)
eccodes 2.45.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 154,404 kB
  • sloc: cpp: 162,953; ansic: 26,308; sh: 21,742; f90: 6,854; perl: 6,361; python: 5,172; java: 2,226; javascript: 1,427; yacc: 854; fortran: 543; lex: 359; makefile: 283; xml: 183; awk: 66
file content (45 lines) | stat: -rw-r--r-- 1,546 bytes parent folder | download | duplicates (12)
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
alias presentWeather1PresentTrend3=zero;
alias presentWeather2PresentTrend3=zero;
alias presentWeather3PresentTrend3=zero;
if (g is "NSW") {
		rename(g,nswTrend3);
		group g : dump; non_alpha na;

} else {

		if (is_in_list(g,"metar/present_weather.list")) {
				rename(g,presentWeather1Trend3);
				group g : dump; non_alpha na;
				alias presentWeather1PresentTrend3=one;
				if (is_in_list(g,"metar/present_weather.list")) {
						rename(g,presentWeather2Trend3);
						group g : dump; non_alpha na;
						alias presentWeather2PresentTrend3=one;
				}
				if (is_in_list(g,"metar/present_weather.list")) {
						rename(g,presentWeather3Trend3);
						group g : dump; non_alpha na;
						alias presentWeather3PresentTrend3=one;
				}
		}
		if (substr(g,0,1) is "-" || substr(g,0,1) is "+" || substr(g,0,2) is "FZ" || g is "//" ) {
				rename(g,wrongPresentWeatherTrend3);
				group g : dump; non_alpha na;
		}
		if (! presentWeather1PresentTrend3 && is_in_list(g,"metar/present_weather.list")) {
				rename(g,presentWeather1Trend3);
				group g : dump; non_alpha na;
				alias presentWeather1PresentTrend3=one;
		}
		if (!presentWeather2PresentTrend3 && is_in_list(g,"metar/present_weather.list")) {
						rename(g,presentWeather2Trend3);
						group g : dump; non_alpha na;
						alias presentWeather2PresentTrend3=one;
		}
		if (!presentWeather3PresentTrend3 && is_in_list(g,"metar/present_weather.list")) {
						rename(g,presentWeather3TrendTrend31);
						group g : dump; non_alpha na;
						alias presentWeather3PresentTrend3=one;
		}
}