Skip to content

Commit ea4c75a

Browse files
amilan17antoinemerleefucile
authored
219 new (#307)
* Update create_master_lists.py as requested in : - #219 >In GRIB2 Template definition files the octet number (from - to) for each entry in the GRIB section is given. Most of the GRIB processing software packages need the length or number of octets for each entry, which has to be calculated from the specification of "OctetNo". But with variables and repitition within some templates an automated calculation is sometimes not easy. (e.g. 37 + (ND-1)*4 + (NF-1)*4 -40 +(ND-1)*4 + (NF-1)*4) Therefore, this is a proposal to add a column with the length of each entry in the GRIB2_Template files. * Update create_master_lists.py remove any keys not in 'fieldnames' to avoid ValueError * xml,txt files * Update create_master_lists.py make the count to be computed when the limit is not fixed but variable * xml,txt files * run the script update_octetcount.py to update the OctetCount number for all templates. the script will be added in the issue #219 * Replace Length per octetCount and remove it from the xml * xml,txt files * remove the octetCount in the txt and from the CI/CD * update the create_master to avoid any issue while populating fields in the xml and txt * update the create_master to avoid any issue while populating fields in the xml and txt * Apply suggestions from code review * xml,txt files --------- Co-authored-by: antoineMerleEUM <antoine.merle@eumetsat.int> Co-authored-by: Enrico Fucile <efucile@wmo.int> Co-authored-by: antoinemerle <am92300@gmail.com>
1 parent 1a8b014 commit ea4c75a

File tree

182 files changed

+4460
-4456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+4460
-4456
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2-
calendar definition,24,,Type of calendar,(see Code table 1.6),,1.6,,Operational
1+
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2+
calendar definition,24,1,Type of calendar,(see Code table 1.6),,1.6,,Operational
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2-
paleontological offset,24-25,,Number of tens of thousands of years of offset,,,,,Operational
1+
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2+
paleontological offset,24-25,2,Number of tens of thousands of years of offset,,,,,Operational
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2-
calendar definition and paleontological offset,24,,Type of calendar,(see Code table 1.6),,1.6,,Operational
3-
calendar definition and paleontological offset,25-26,,Number of tens of thousands of years of offset,,,,,Operational
1+
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2+
calendar definition and paleontological offset,24,1,Type of calendar,(see Code table 1.6),,1.6,,Operational
3+
calendar definition and paleontological offset,25-26,2,Number of tens of thousands of years of offset,,,,,Operational
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
Title_en,OctetNo,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",15,Shape of the Earth,(see Code table 3.2),,3.2,,Operational
3-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",16,Scale factor of radius of spherical Earth,,,,,Operational
4-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",17-20,Scaled value of radius of spherical Earth,,,,,Operational
5-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",21,Scale factor of major axis of oblate spheroid Earth,,,,,Operational
6-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",22-25,Scaled value of major axis of oblate spheroid Earth,,,,,Operational
7-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",26,Scale factor of minor axis of oblate spheroid Earth,,,,,Operational
8-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",27-30,Scaled value of minor axis of oblate spheroid Earth,,,,,Operational
9-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",31-34,Ni - number of points along a parallel,,,,,Operational
10-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",35-38,Nj - number of points along a meridian,,,,,Operational
11-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",39-42,Basic angle of the initial production domain,(see Note 1),9,,,Operational
12-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",43-46,"Subdivisions of basic angle used to define extreme longitudes and latitudes, and direction increments",(see Note 1),9,,,Operational
13-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",47-50,La1 - latitude of first grid point,(see Note 1),9,,,Operational
14-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",51-54,Lo1 - longitude of first grid point,(see Note 1),,,,Operational
15-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",55,Resolution and component flags,(see Flag table 3.3),,,3.3,Operational
16-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",56-59,La2 - latitude of last grid point,(see Note 1),9,,,Operational
17-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",60-63,Lo2 - longitude of last grid point,(see Note 1),9,,,Operational
18-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",64-67,Di - i direction increment,(see Notes 1 and 5),"9,45",,,Operational
19-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",68-71,Dj - j direction increment,(see Notes 1 and 5),"9,45",,,Operational
20-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",72,Scanning mode,(see Flag table 3.4),,,3.4,Operational
21-
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",73-nn,List of number of points along each meridian or parallel,"(see Notes 2, 3 and 7)","4,15,124",,,Operational
1+
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",15,1,Shape of the Earth,(see Code table 3.2),,3.2,,Operational
3+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",16,1,Scale factor of radius of spherical Earth,,,,,Operational
4+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",17-20,4,Scaled value of radius of spherical Earth,,,,,Operational
5+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",21,1,Scale factor of major axis of oblate spheroid Earth,,,,,Operational
6+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",22-25,4,Scaled value of major axis of oblate spheroid Earth,,,,,Operational
7+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",26,1,Scale factor of minor axis of oblate spheroid Earth,,,,,Operational
8+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",27-30,4,Scaled value of minor axis of oblate spheroid Earth,,,,,Operational
9+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",31-34,4,Ni - number of points along a parallel,,,,,Operational
10+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",35-38,4,Nj - number of points along a meridian,,,,,Operational
11+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",39-42,4,Basic angle of the initial production domain,(see Note 1),9,,,Operational
12+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",43-46,4,"Subdivisions of basic angle used to define extreme longitudes and latitudes, and direction increments",(see Note 1),9,,,Operational
13+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",47-50,4,La1 - latitude of first grid point,(see Note 1),9,,,Operational
14+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",51-54,4,Lo1 - longitude of first grid point,(see Note 1),,,,Operational
15+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",55,1,Resolution and component flags,(see Flag table 3.3),,,3.3,Operational
16+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",56-59,4,La2 - latitude of last grid point,(see Note 1),9,,,Operational
17+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",60-63,4,Lo2 - longitude of last grid point,(see Note 1),9,,,Operational
18+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",64-67,4,Di - i direction increment,(see Notes 1 and 5),"9,45",,,Operational
19+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",68-71,4,Dj - j direction increment,(see Notes 1 and 5),"9,45",,,Operational
20+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",72,1,Scanning mode,(see Flag table 3.4),,,3.4,Operational
21+
"latitude/longitude (or equidistant cylindrical, or Plate Carrée)",73-nn,,List of number of points along each meridian or parallel,"(see Notes 2, 3 and 7)","4,15,124",,,Operational
Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2-
cross-section grid with points equally spaced on the horizontal,15,,Shape of the Earth,(see Code table 3.2),,3.2,,Experimental
3-
cross-section grid with points equally spaced on the horizontal,16,,Scale factor of radius of spherical Earth,,,,,Experimental
4-
cross-section grid with points equally spaced on the horizontal,17-20,,Scaled value of radius of spherical Earth,,,,,Experimental
5-
cross-section grid with points equally spaced on the horizontal,21,,Scale factor of major axis of oblate spheroid Earth,,,,,Experimental
6-
cross-section grid with points equally spaced on the horizontal,22-25,,Scaled value of major axis of oblate spheroid Earth,,,,,Experimental
7-
cross-section grid with points equally spaced on the horizontal,26,,Scale factor of minor axis of oblate spheroid Earth,,,,,Experimental
8-
cross-section grid with points equally spaced on the horizontal,27-30,,Scaled value of minor axis of oblate spheroid Earth,,,,,Experimental
9-
cross-section grid with points equally spaced on the horizontal,31-34,,Number of horizontal points,,,,,Experimental
10-
cross-section grid with points equally spaced on the horizontal,35-38,,Basic angle of the initial production domain,(see Note 1),9,,,Experimental
11-
cross-section grid with points equally spaced on the horizontal,39-42,,Subdivisions of basic angle used to define extreme longitudes and latitudes,(see Note 1),9,,,Experimental
12-
cross-section grid with points equally spaced on the horizontal,43-46,,La1 - latitude of first grid point,(see Note 1),9,,,Experimental
13-
cross-section grid with points equally spaced on the horizontal,47-50,,Lo1 - longitude of first grid point,(see Note 1),9,,,Experimental
14-
cross-section grid with points equally spaced on the horizontal,51,,Scanning mode,(flags - see Flag table 3.4),,,3.4,Experimental
15-
cross-section grid with points equally spaced on the horizontal,52-55,,La2 - latitude of last grid point,(see Note 1),9,,,Experimental
16-
cross-section grid with points equally spaced on the horizontal,56-59,,Lo2 - longitude of last grid point,(see Note 1),9,,,Experimental
17-
cross-section grid with points equally spaced on the horizontal,60,,Type of horizontal line,(see Code table 3.20),,3.2,,Experimental
18-
cross-section grid with points equally spaced on the horizontal,61-62,,Number of vertical points,,,,,Experimental
19-
cross-section grid with points equally spaced on the horizontal,63,,Physical meaning of vertical coordinate,(see Code table 3.15),,,,Experimental
20-
cross-section grid with points equally spaced on the horizontal,64,,Vertical dimension coordinate values definition,(see Code table 3.21),,,,Experimental
21-
cross-section grid with points equally spaced on the horizontal,65-66,,NC - number of coefficients or values used to specify vertical coordinates,,,,,Experimental
22-
cross-section grid with points equally spaced on the horizontal,67-(66+NCx4),,"Coefficients to define vertical dimension coordinate values in functional form, or the explicit coordinate values (IEEE 32-bit floating-point values)",,,,,Experimental
1+
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2+
cross-section grid with points equally spaced on the horizontal,15,1,Shape of the Earth,(see Code table 3.2),,3.2,,Experimental
3+
cross-section grid with points equally spaced on the horizontal,16,1,Scale factor of radius of spherical Earth,,,,,Experimental
4+
cross-section grid with points equally spaced on the horizontal,17-20,4,Scaled value of radius of spherical Earth,,,,,Experimental
5+
cross-section grid with points equally spaced on the horizontal,21,1,Scale factor of major axis of oblate spheroid Earth,,,,,Experimental
6+
cross-section grid with points equally spaced on the horizontal,22-25,4,Scaled value of major axis of oblate spheroid Earth,,,,,Experimental
7+
cross-section grid with points equally spaced on the horizontal,26,1,Scale factor of minor axis of oblate spheroid Earth,,,,,Experimental
8+
cross-section grid with points equally spaced on the horizontal,27-30,4,Scaled value of minor axis of oblate spheroid Earth,,,,,Experimental
9+
cross-section grid with points equally spaced on the horizontal,31-34,4,Number of horizontal points,,,,,Experimental
10+
cross-section grid with points equally spaced on the horizontal,35-38,4,Basic angle of the initial production domain,(see Note 1),9,,,Experimental
11+
cross-section grid with points equally spaced on the horizontal,39-42,4,Subdivisions of basic angle used to define extreme longitudes and latitudes,(see Note 1),9,,,Experimental
12+
cross-section grid with points equally spaced on the horizontal,43-46,4,La1 - latitude of first grid point,(see Note 1),9,,,Experimental
13+
cross-section grid with points equally spaced on the horizontal,47-50,4,Lo1 - longitude of first grid point,(see Note 1),9,,,Experimental
14+
cross-section grid with points equally spaced on the horizontal,51,1,Scanning mode,(flags - see Flag table 3.4),,,3.4,Experimental
15+
cross-section grid with points equally spaced on the horizontal,52-55,4,La2 - latitude of last grid point,(see Note 1),9,,,Experimental
16+
cross-section grid with points equally spaced on the horizontal,56-59,4,Lo2 - longitude of last grid point,(see Note 1),9,,,Experimental
17+
cross-section grid with points equally spaced on the horizontal,60,1,Type of horizontal line,(see Code table 3.20),,3.20,,Experimental
18+
19+
cross-section grid with points equally spaced on the horizontal,61-62,2,Number of vertical points,,,,,Experimental
20+
cross-section grid with points equally spaced on the horizontal,63,1,Physical meaning of vertical coordinate,(see Code table 3.15),,,,Experimental
21+
cross-section grid with points equally spaced on the horizontal,64,1,Vertical dimension coordinate values definition,(see Code table 3.21),,,,Experimental
22+
cross-section grid with points equally spaced on the horizontal,65-66,2,NC - number of coefficients or values used to specify vertical coordinates,,,,,Experimental
23+
cross-section grid with points equally spaced on the horizontal,67-(66+NCx4),,"Coefficients to define vertical dimension coordinate values in functional form, or the explicit coordinate values (IEEE 32-bit floating-point values)",,,,,Experimental
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",15,,n2 - exponent of 2 for the number of intervals on main triangle sides,,,,,Operational
3-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",16,,n3 - exponent of 3 for the number of intervals on main triangle sides,,,,,Operational
4-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",17-18,,ni - number of intervals on main triangle sides of the icosahedron,,,,,Operational
5-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",19,,nd - number of diamonds,,,,,Operational
6-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",20-23,,Latitude of the pole point of the icosahedron on the sphere,,,,,Operational
7-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",24-27,,Longitude of the pole point of the icosahedron on the sphere,,,,,Operational
8-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",28-31,,Longitude of the centre line of the first diamond of the icosahedron on the sphere,,,,,Operational
9-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",32,,Grid point position,(see Code table 3.8),,3.8,,Operational
10-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",33,,Numbering order of diamonds,(see Flag table 3.9),,,3.9,Operational
11-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",34,,Scanning mode for one diamond,(see Flag table 3.10),,,3.10,Operational
12-
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",35-38,,nt - total number of grid points,,,,,Operational
1+
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",15,1,n2 - exponent of 2 for the number of intervals on main triangle sides,,,,,Operational
3+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",16,1,n3 - exponent of 3 for the number of intervals on main triangle sides,,,,,Operational
4+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",17-18,2,ni - number of intervals on main triangle sides of the icosahedron,,,,,Operational
5+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",19,1,nd - number of diamonds,,,,,Operational
6+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",20-23,4,Latitude of the pole point of the icosahedron on the sphere,,,,,Operational
7+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",24-27,4,Longitude of the pole point of the icosahedron on the sphere,,,,,Operational
8+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",28-31,4,Longitude of the centre line of the first diamond of the icosahedron on the sphere,,,,,Operational
9+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",32,1,Grid point position,(see Code table 3.8),,3.8,,Operational
10+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",33,1,Numbering order of diamonds,(see Flag table 3.9),,,3.9,Operational
11+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",34,1,Scanning mode for one diamond,(see Flag table 3.10),,,3.10,Operational
12+
"triangular grid based on an icosahedron (see Part B, GRIB Attachment I)",35-38,4,nt - total number of grid points,,,,,Operational
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2-
general unstructured grid,15,,Shape of the Earth,(see Code table 3.2),,3.2,,Operational
3-
general unstructured grid,16-18,,Number of grid used (defined by originating centre),,,,,Operational
4-
general unstructured grid,19,,Number of grid in reference (to allow annotating for Arakawa C-grid on arbitrary grid),(see Note),86,,,Operational
5-
general unstructured grid,20-35,,Universally Unique Identifier of horizontal grid,,,,,Operational
1+
Title_en,OctetNo,OctetCount,Contents_en,Note_en,noteIDs,codeTable,flagTable,Status
2+
general unstructured grid,15,1,Shape of the Earth,(see Code table 3.2),,3.2,,Operational
3+
general unstructured grid,16-18,3,Number of grid used (defined by originating centre),,,,,Operational
4+
general unstructured grid,19,1,Number of grid in reference (to allow annotating for Arakawa C-grid on arbitrary grid),(see Note),86,,,Operational
5+
general unstructured grid,20-35,16,Universally Unique Identifier of horizontal grid,,,,,Operational

0 commit comments

Comments
 (0)