mirror of https://github.com/ecmwf/eccodes.git
Scripts: WMO tables. Fix non-ascii inputs etc
This commit is contained in:
parent
4c750b47a9
commit
f2ea2ab356
|
@ -32,8 +32,15 @@ while (<>) {
|
||||||
#No Title_en SubTitle_en CodeFlag Value MeaningParameterDescription_en Note_en UnitComments_en Status
|
#No Title_en SubTitle_en CodeFlag Value MeaningParameterDescription_en Note_en UnitComments_en Status
|
||||||
#my ($rowid, $title, $subtitle, $codeFlag, $value, $meaning, $note, $unit, $status) = split(/\t/);
|
#my ($rowid, $title, $subtitle, $codeFlag, $value, $meaning, $note, $unit, $status) = split(/\t/);
|
||||||
|
|
||||||
|
s/Hovmöller/Hovmoller/;
|
||||||
|
s/Carrée/Carree/;
|
||||||
|
s/μm/um/;
|
||||||
|
s/°C/degree C/;
|
||||||
|
s/f\(n\) = C2 × f\(n-1\)/f(n) = C2 * f(n-1)/;
|
||||||
|
s/\(see separate doc or pdf file\)/see separate doc or pdf file/;
|
||||||
|
|
||||||
my ($title, $subtitle, $codeFlag, $value, $meaning, $note, $unit, $status) = split(/\t/);
|
my ($title, $subtitle, $codeFlag, $value, $meaning, $note, $unit, $status) = split(/\t/);
|
||||||
|
|
||||||
if ($title =~ /Code table ([0-9.]+)/) {
|
if ($title =~ /Code table ([0-9.]+)/) {
|
||||||
$codetable = $1;
|
$codetable = $1;
|
||||||
if ($subtitle =~ /Product [Dd]iscipline (\d+).*parameter category (\d+)/) {
|
if ($subtitle =~ /Product [Dd]iscipline (\d+).*parameter category (\d+)/) {
|
||||||
|
|
Loading…
Reference in New Issue