mirror of https://github.com/ecmwf/eccodes.git
Scripts: Fix check for type of fixed surface
This commit is contained in:
parent
0c69cc9658
commit
b10f441d79
|
@ -131,8 +131,10 @@ while (<>) {
|
|||
die "Error: paramID \"$paramId\" is not an integer (input row=$lcount)!\n" if (!is_integer($paramId));
|
||||
die "Error: shortName \"$shortName\" has an invalid character (input row=$lcount)!\n" if ($shortName =~ /[ '"]/);
|
||||
die "Error: name \"$name\" should have uppercase 1st letter or digit (input row=$lcount)!\n" if ($name !~ /^[A-Z0-9]/);
|
||||
die "Error: typeOfFirstFixedSurface \"$type1\" is not an integer (input row=$lcount)!\tPick a value from Code Table 4.5\n" if (!is_integer($type1));
|
||||
die "Error: typeOfSecondFixedSurface \"$type2\" is not an integer (input row=$lcount)!\tPick a value from Code Table 4.5\n" if (!is_integer($type2));
|
||||
die "Error: typeOfFirstFixedSurface \"$type1\" is not an integer (input row=$lcount)!\tPick a value from Code Table 4.5\n"
|
||||
if ($type1 ne "" && !is_integer($type1));
|
||||
die "Error: typeOfSecondFixedSurface \"$type2\" is not an integer (input row=$lcount)!\tPick a value from Code Table 4.5\n"
|
||||
if ($type2 ne "" && !is_integer($type2));
|
||||
|
||||
$units = "~" if ($units eq "");
|
||||
$cfVarName = $shortName;
|
||||
|
|
Loading…
Reference in New Issue