mirror of https://github.com/ecmwf/eccodes.git
Merge pull request #194 from ecmwf/feature/wave_spectra_key_aliases
ECC-1762: add GRIB1 key name aliases to wave spectra template with ex…
This commit is contained in:
commit
936329762a
|
@ -3,16 +3,20 @@
|
||||||
## Direction part
|
## Direction part
|
||||||
unsigned[2] waveDirectionNumber : dump;
|
unsigned[2] waveDirectionNumber : dump;
|
||||||
alias mars.direction = waveDirectionNumber;
|
alias mars.direction = waveDirectionNumber;
|
||||||
|
alias directionNumber = waveDirectionNumber;
|
||||||
|
|
||||||
unsigned[2] numberOfWaveDirections = 1 : dump;
|
unsigned[2] numberOfWaveDirections = 1 : dump;
|
||||||
alias totalNumberOfWaveDirections = numberOfWaveDirections;
|
alias totalNumberOfWaveDirections = numberOfWaveDirections;
|
||||||
|
alias numberOfDirections = totalNumberOfWaveDirections;
|
||||||
|
|
||||||
## Frequency part
|
## Frequency part
|
||||||
unsigned[2] waveFrequencyNumber : dump;
|
unsigned[2] waveFrequencyNumber : dump;
|
||||||
alias mars.frequency = waveFrequencyNumber;
|
alias mars.frequency = waveFrequencyNumber;
|
||||||
|
alias frequencyNumber = waveFrequencyNumber;
|
||||||
|
|
||||||
unsigned[2] numberOfWaveFrequencies = 1 : dump;
|
unsigned[2] numberOfWaveFrequencies = 1 : dump;
|
||||||
alias totalNumberOfWaveFrequencies = numberOfWaveFrequencies;
|
alias totalNumberOfWaveFrequencies = numberOfWaveFrequencies;
|
||||||
|
alias numberOfFrequencies = totalNumberOfWaveFrequencies;
|
||||||
|
|
||||||
constant waveLevType="sfc";
|
constant waveLevType="sfc";
|
||||||
alias mars.levtype = waveLevType;
|
alias mars.levtype = waveLevType;
|
||||||
|
|
|
@ -3,11 +3,15 @@
|
||||||
## Direction part
|
## Direction part
|
||||||
signed[1] scaleFactorOfWaveDirections : dump;
|
signed[1] scaleFactorOfWaveDirections : dump;
|
||||||
alias integerScalingFactorAppliedToDirections = scaleFactorOfWaveDirections;
|
alias integerScalingFactorAppliedToDirections = scaleFactorOfWaveDirections;
|
||||||
|
alias directionScalingFactor = integerScalingFactorAppliedToDirections;
|
||||||
|
|
||||||
unsigned[4] scaledValuesOfWaveDirections[numberOfWaveDirections] : dump;
|
unsigned[4] scaledValuesOfWaveDirections[numberOfWaveDirections] : dump;
|
||||||
|
alias scaledDirections = scaledValuesOfWaveDirections ;
|
||||||
|
|
||||||
## Frequency part
|
## Frequency part
|
||||||
signed[1] scaleFactorOfWaveFrequencies : dump;
|
signed[1] scaleFactorOfWaveFrequencies : dump;
|
||||||
alias integerScalingFactorAppliedToFrequencies = scaleFactorOfWaveFrequencies;
|
alias integerScalingFactorAppliedToFrequencies = scaleFactorOfWaveFrequencies;
|
||||||
|
alias frequencyScalingFactor = integerScalingFactorAppliedToFrequencies;
|
||||||
|
|
||||||
unsigned[4] scaledValuesOfWaveFrequencies[numberOfWaveFrequencies] : dump;
|
unsigned[4] scaledValuesOfWaveFrequencies[numberOfWaveFrequencies] : dump;
|
||||||
|
alias scaledFrequencies = scaledValuesOfWaveFrequencies;
|
||||||
|
|
Loading…
Reference in New Issue