Skip to content

Commit

Permalink
modifying paramtype
Browse files Browse the repository at this point in the history
  • Loading branch information
sebvi committed Jun 19, 2024
1 parent f8bd88e commit 55551d4
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 16 deletions.
4 changes: 2 additions & 2 deletions definitions/grib2/section.4.def
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ else {
if (paramId >= 140000 && paramId < 141000 &&
productDefinitionTemplateNumber != 99 && productDefinitionTemplateNumber != 100 &&
productDefinitionTemplateNumber != 101 && productDefinitionTemplateNumber != 102) {
constant paramType="wave";
constant paramTypeWave="wave";
unalias mars.paramtype;
alias mars.paramtype = paramType;
alias mars.paramtype = paramTypeWave;
}

meta md5Section4 md5(offsetSection4,section4Length);
5 changes: 3 additions & 2 deletions definitions/grib2/template.4.aerosol.def
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# (C) Copyright 2005- ECMWF.

constant paramType = "chemical" ;
alias mars.paramtype = paramType ;
constant paramTypeChemical = "chemical" ;
unalias mars.paramtype;
alias mars.paramtype = paramTypeChemical ;

# Aerosol type - now replaced by constituent type
# Note: Code tables 4.230 and 4.233 are identical
Expand Down
4 changes: 2 additions & 2 deletions definitions/grib2/template.4.chemical.def
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# (C) Copyright 2005- ECMWF.

constant paramType="chemical";
constant paramTypeChemical="chemical";
unalias mars.paramtype;
alias mars.paramtype = paramType;
alias mars.paramtype = paramTypeChemical;

# Atmospheric chemical or physical constituent type
codetable[2] constituentType ('4.230.table',masterDir,localDir) : dump;
Expand Down
5 changes: 3 additions & 2 deletions definitions/grib2/template.4.generalised_tile.def
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ alias tile.nTileAtt=nTileAtt;

alias mars.tile=typeOfTile;
alias mars.tileAttribute=tileAttribute;
constant paramType = "tile";
alias mars.paramtype=paramType;
constant paramTypeTile = "tile";
unalias mars.paramtype;
alias mars.paramtype=paramTypeTile;
5 changes: 3 additions & 2 deletions definitions/grib2/template.4.optical.def
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# (C) Copyright 2005- ECMWF.

constant paramType = "optical" ;
alias mars.paramtype = paramType ;
constant paramTypeOptical = "optical" ;
unalias mars.paramtype;
alias mars.paramtype = paramTypeOptical ;

codetable[1] typeOfWavelengthInterval ('4.91.table',masterDir,localDir) : dump;
alias typeOfIntervalForFirstAndSecondWavelength=typeOfWavelengthInterval;
Expand Down
5 changes: 3 additions & 2 deletions definitions/grib2/template.4.parameter.def
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# (C) Copyright 2005- ECMWF.

constant paramType = "base";
alias mars.paramtype = paramType;
constant paramTypeBase = "base";
unalias mars.paramtype;
alias mars.paramtype = paramTypeBase;

# Parameter category
codetable[1] parameterCategory ('4.1.[discipline:l].table',masterDir,localDir) : dump;
Expand Down
4 changes: 2 additions & 2 deletions definitions/grib2/template.4.wave_spectra_formula.def
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ listOfWaveFrequencySequenceParameters list(numberOfWaveFrequencySequenceParamete
signed[4] scaledValueOfWaveFrequencySequenceParameter : dump;
}

constant paramType="wave_spectra";
constant paramTypeWaveSpectra="wave_spectra";
unalias mars.paramtype;
alias mars.paramtype = paramType;
alias mars.paramtype = paramTypeWaveSpectra;
4 changes: 2 additions & 2 deletions definitions/grib2/template.4.wave_spectra_list.def
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ alias frequencyScalingFactor = integerScalingFactorAppliedToFrequencies;
unsigned[4] scaledValuesOfWaveFrequencies[numberOfWaveFrequencies] : dump;
alias scaledFrequencies = scaledValuesOfWaveFrequencies;

constant paramType="wave_spectra";
constant paramTypeWaveSpectraList="wave_spectra";
unalias mars.paramtype;
alias mars.paramtype = paramType;
alias mars.paramtype = paramTypeWaveSpectraList;

0 comments on commit 55551d4

Please sign in to comment.