Scripts: WMO tables. Fix non-ascii inputs etc

This commit is contained in:
Shahram Najm 2021-02-18 18:05:01 +00:00
parent 4c750b47a9
commit f2ea2ab356
1 changed files with 8 additions and 1 deletions

View File

@ -32,6 +32,13 @@ while (<>) {
#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/);
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/);
if ($title =~ /Code table ([0-9.]+)/) {