forked from ecmwf/ecPoint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCheck_Set_InParam.mv
50 lines (40 loc) · 1.48 KB
/
Check_Set_InParam.mv
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
# Metview Macro
# **************************** LICENSE START ***********************************
#
# Copyright 2020 ECMWF. This software is distributed under the terms
# of the Apache License version 2.0. In applying this license, ECMWF does not
# waive the privileges and immunities granted to it by virtue of its status as
# an Intergovernmental Organization or submit itself to any jurisdiction.
#
# ***************************** LICENSE END ************************************
############################
# #
# Check_Set_InParam.mv #
# #
############################
# ------------------------------------------------ #
# Checking the correctness of the input parameters #
# ------------------------------------------------ #
# to complete
# -------------------------------------------- #
# Set some variables from the input parameters #
# -------------------------------------------- #
# General Parameters
vector_set_default_type(PrecFloat)
numEM = EnsMemF - EnsMemS + 1
AccSTR = left_pad_number(Acc,NumDigAcc)
SubAreaSTR = left_pad_number(NumSA,NumDigSA)
# Parameters related to the variable to post-processed
if Var2PP = "Rainfall" then
Predictand=[228.128,"sfc",0]
Min_Predictand_Value=0.04
PP_Param=[82.128,"sfc",0]
else
print("Not other parameters included yet.")
end if
PP_Code = PP_Param[1]
PP_levtype = PP_Param[2]
PP_level = PP_Param[3]
# Percentiles to compute
Perc = parse(Perc, ",")
NumPerc = count(Perc)