2020-01-28 14:32:34 +00:00
|
|
|
# (C) Copyright 2005- ECMWF.
|
2013-03-25 12:04:10 +00:00
|
|
|
|
|
|
|
# TEMPLATE 3.100, Triangular grid based on an icosahedron (see Attachment I.2-GRIB-Att.)
|
2023-11-22 10:51:00 +00:00
|
|
|
constant isGridded = true;
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2024-01-16 12:40:17 +00:00
|
|
|
# Exponent of 2 for the number of intervals on main triangle sides
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[1] n2 : dump ;
|
|
|
|
|
2024-01-16 12:40:17 +00:00
|
|
|
# Exponent of 3 for the number of intervals on main triangle sides
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[1] n3 : dump ;
|
|
|
|
|
2024-01-16 12:40:17 +00:00
|
|
|
# Number of intervals on main triangle sides of the icosahedron
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[2] Ni : dump ;
|
|
|
|
|
2024-01-16 12:40:17 +00:00
|
|
|
# Number of diamonds
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[1] nd : dump ;
|
|
|
|
alias numberOfDiamonds=nd;
|
|
|
|
|
2023-08-03 14:15:26 +00:00
|
|
|
# Latitude of the pole point of the icosahedron on the sphere
|
2013-03-25 12:04:10 +00:00
|
|
|
signed[4] latitudeOfThePolePoint : dump ;
|
2014-06-18 16:14:01 +00:00
|
|
|
meta geography.latitudeOfThePolePointInDegrees scale(latitudeOfThePolePoint,one,grib2divider,truncateDegrees) : dump;
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2023-08-03 14:15:26 +00:00
|
|
|
# Longitude of the pole point of the icosahedron on the sphere
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[4] longitudeOfThePolePoint : dump ;
|
2014-06-18 16:14:01 +00:00
|
|
|
meta geography.longitudeOfThePolePointInDegrees g2lon(longitudeOfThePolePoint);
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2023-08-03 14:15:26 +00:00
|
|
|
# Longitude of the centre line of the first diamond of the icosahedron on the sphere
|
2020-02-19 14:06:34 +00:00
|
|
|
unsigned[4] longitudeOfFirstDiamondCentreLine : dump ;
|
|
|
|
meta geography.longitudeOfFirstDiamondCentreLineInDegrees g2lon(longitudeOfFirstDiamondCentreLine);
|
2013-03-25 12:04:10 +00:00
|
|
|
|
|
|
|
codetable[1] gridPointPosition ('3.8.table',masterDir,localDir);
|
|
|
|
|
|
|
|
flags[1] numberingOrderOfDiamonds 'grib2/tables/[tablesVersion]/3.9.table';
|
|
|
|
|
|
|
|
flags[1] scanningModeForOneDiamond 'grib2/tables/[tablesVersion]/3.10.table';
|
|
|
|
|
2024-01-16 12:40:17 +00:00
|
|
|
unsigned[4] totalNumberOfGridPoints : dump ;
|
|
|
|
alias nt = totalNumberOfGridPoints;
|
2013-03-25 12:04:10 +00:00
|
|
|
|