Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
HTML
<style type="text/css">
 .paramname {
color: #602020;
	white-space: nowrap;
}
 a.el {
font-weight: bold;
}
 .paramtype {
white-space: nowrap;
}
 .paramkey {
text-align: right;
}
 .memItemLeft {
border-top: 1px solid #C4CFE5;
}
 .memItemRight {
border-top: 1px solid #C4CFE5;
}
 span.comment {
color: #800000
}
 .mdescLeft {
padding: 0px 8px 4px 8px;
	color: #555;
}
 .mdescRight {
padding: 0px 8px 4px 8px;
	color: #555;
}
 span.stringliteral {
color: #002080
}
 .memname {
white-space: nowrap;
        font-weight: bold;
        margin-left: 6px;
}
 .memdoc {
border-bottom: 1px solid #A8B8D9;      
        border-left: 1px solid #A8B8D9;      
        border-right: 1px solid #A8B8D9; 
        padding: 2px 5px;
        background-color: #FBFCFD;
        border-top-width: 0;
        /* opera specific markup */
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
        /* firefox specific markup */
        -moz-border-radius-bottomleft: 8px;
        -moz-border-radius-bottomright: 8px;
        -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
        background-image: -moz-linear-gradient(center top, #FFFFFF 0%, #FFFFFF 60%, #F7F8FB 95%, #EEF1F7);
        /* webkit specific markup */
        -webkit-border-bottom-left-radius: 8px;
        -webkit-border-bottom-right-radius: 8px;
        -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
        background-image: -webkit-gradient(linear,center top,center bottom,from(#FFFFFF), color-stop(0.6,#FFFFFF), color-stop(0.60,#FFFFFF), color-stop(0.95,#F7F8FB), to(#EEF1F7));
}
 .memname {
white-space: nowrap;
        font-weight: bold;
        margin-left: 6px;
}
 .memitem {
padding: 0;
	margin-bottom: 10px;
}
 .memproto {
border-top: 1px solid #A8B8D9;
        border-left: 1px solid #A8B8D9;
        border-right: 1px solid #A8B8D9;
        padding: 6px 0px 6px 0px;
        color: #253555;
        font-weight: bold;
        text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
        /* opera specific markup */
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
        border-top-right-radius: 8px;
        border-top-left-radius: 8px;
        /* firefox specific markup */
        -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
        -moz-border-radius-topright: 8px;
        -moz-border-radius-topleft: 8px;
        /* webkit specific markup */
        -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
        -webkit-border-top-right-radius: 8px;
        -webkit-border-top-left-radius: 8px;
        background-image:url('nav_f.png');
        background-repeat:repeat-x;
        background-color: #E2E8F2;
}
 .params {
border-spacing: 6px 2px;
}
 span.keywordtype {
color: #604020
}
 span.keywordflow {
color: #e08000
}
 a.code {
color: #4665A2;
}
 pre.fragment {
border: 1px solid #C4CFE5;
	background-color: #FBFCFD;
	padding: 4px 6px;
	margin: 4px 8px 4px 2px;
	overflow: auto;
	word-wrap: break-word;
	font-size:  9pt;
	line-height: 125%;
}
 .fragment {
font-family: monospace, fixed;
	font-size: 105%;
}
 address.footer {
text-align: right;
	padding-right: 12px;
}
 hr.footer {
height: 1px;
}
 div.contents {
margin-top: 10px;
	margin-left: 10px;
	margin-right: 10px;
}
 div.headertitle {
padding: 5px 5px 5px 10px;
}
 div.header {
background-image:url('nav_h.png');
        background-repeat:repeat-x;
	background-color: #F9FAFC;
	margin:  0px;
	border-bottom: 1px solid #C4CFE5;
}
 img.footer {
border: 0px;
	vertical-align: middle;
}
 .exception {
border-spacing: 6px 2px;
}
 span.preprocessor {
color: #806020
}
 div.summary {
float: right;
	font-size: 8pt;
	padding-right: 5px;
	width: 50%;
	text-align: right;
}
 div.navpath {
width: 100%;
	line-height: 140%;
}

</style>
<div class="contents"> 
 <style type="text/css">
<!--
.style1 {color: #FF0000}
-->

 </style> 
 <h2>GRIB section 1, the product definition section</h2> KSEC1 must be initialised when encoding; it is filled in by GRIBEX when decoding. 
 <p>An INTEGER array. </p> 
 <p>When section 1 contains data for ECMWF local use, KSEC1 must be dimensioned accordingly, see <a href="/publications/manuals/libraries/gribex/localGRIBUsage.html">ECMWF local GRIB usage definitions</a>. <a name="Table 2"></a> </p> 
 <table border="3"> 
  <caption>
   <strong> Contents of KSEC1 </strong>
  </caption>
  <tbody> 
   <tr> 
    <th>Element </th> 
    <th>Contents </th> 
    <th style="vertical-align: middle;">GRIB API keys<br /> </th> 
   </tr> 
   <tr> 
    <td>1 </td> 
    <td> Version number of code table 2 (see <a href="http://www.ecmwf.int/publications/manuals/d/gribapi/mars/att=local_table/">ECMWF local code table 2</a>). </td> 
    <th style="vertical-align: top;"> <p align="left">paramId </p> <p align="left"><br /> </p> </th> 
   </tr> 
   <tr> 
    <td>2 </td> 
    <td>Identification of centre (see <a href="http://www.ecmwf.int/publications/manuals/d/gribapi/fm92/grib1/show/ctables/">WMO code table 0</a>), 98 for ECMWF. </td> 
    <th style="vertical-align: top;">
     <div align="left">
      centre
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td>3 </td> 
    <td> Generating process identification number, allocated by the originating centre. (255 is used at ECMWF as an indicator for dummy surface pressure fields). See <a href="http://www.ecmwf.int/products/data/technical/model_id/index.html">ECMWF model identifiers</a>.</td> 
    <th style="vertical-align: top;">
     <div align="left">
      generatingProcessIdentifier
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td>4 </td> 
    <td> Grid definition. NNN catalogue number of grid used by the originating centre (See Volume B of WMO publication No.9). 255 for a non-catalogued grid, in which case the grid description follows in KSEC2. </td> 
    <th style="vertical-align: top;">
     <div align="left">
      <a href="http://www.ecmwf.int/publications/manuals/d/gribapi/keys/grids/">gridType</a>
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 5 </td> 
    <td> Flag showing whether sections 2 and 3 are present (see <a href="http://www.ecmwf.int/publications/manuals/d/gribapi/fm92/grib1/show/ctables/">WMO code table 1</a>):<br /> <pre>  0, Sections 2 and 3 are omitted.<br />&nbsp;64, Section 2 is omitted, Section 3 is included.<br />128, Section 2 is included, Section 3 is omitted.<br />192, Sections 2 and 3 are included.</pre> </td> 
    <th style="vertical-align: top;"> <p align="left"><a href="http://www.ecmwf.int/publications/manuals/d/gribapi/keys/grids/">gridType</a></p> <p align="left">bitmapPresent<br /> </p> </th> 
   </tr> 
   <tr> 
    <td> 6 </td> 
    <td> Parameter indicator (see <a href="http://www.ecmwf.int/publications/manuals/d/gribapi/fm92/grib1/show/ctables/">WMO code table 2</a>). </td> 
    <th style="vertical-align: top;"> <p align="left">shortName</p> <p align="left">paramId<br /> </p> </th> 
   </tr> 
   <tr> 
    <td> 7 </td> 
    <td> Type of level indicator (see <a href="http://www.ecmwf.int/publications/manuals/d/gribapi/fm92/grib1/show/ctables/">WMO code table 3</a>), or satellite identifier. Satellite usage is as defined by INPE/CPTEC and used by ECMWF pending final definition by WMO. </td> 
    <th style="vertical-align: top;">
     <div align="left">
      typeOfLevel
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 8 </td> 
    <td> Height, pressure, etc of level (see <a href="http://www.ecmwf.int/publications/manuals/d/gribapi/fm92/grib1/show/ctables/">WMO code table 3</a>). Single level or top of layer, or satellite spectral band. Satellite usage is as defined by INPE/CPTEC and used by ECMWF pending final definition by WMO. </td> 
    <th style="vertical-align: top;">
     <div align="left">
      level
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 9 </td> 
    <td> Height, pressure, etc of level (see <a href="http://www.ecmwf.int/publications/manuals/d/gribapi/fm92/grib1/show/ctables/">WMO code table 3</a>). Bottom of layer if element 7 indicates a layer. </td> 
    <th style="vertical-align: top;"> <p align="left">typeOfLevel<br /> </p> </th> 
   </tr> 
   <tr> 
    <td> 10-14 </td> 
    <td> Reference time of data. Date and time of start of averaging or accumulation. </td> 
    <th style="vertical-align: top;">
     <div align="left">
      dataDate
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 10 </td> 
    <td> Year of century (YY). </td> 
    <th rowspan="3" style="vertical-align: top;">
     <div align="left">
      <br /> 
      <br /> dataDate
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 11 </td> 
    <td> Month (MM). </td> 
   </tr> 
   <tr> 
    <td> 12 </td> 
    <td> Day (DD). </td> 
   </tr> 
   <tr> 
    <td> 13 </td> 
    <td> Hour (HH). </td> 
    <th rowspan="2" style="vertical-align: top;">
     <div align="left">
      dataTime
      <br /> 
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 14 </td> 
    <td> Minute (MM). </td> 
   </tr> 
   <tr> 
    <td> 15 </td> 
    <td> Time unit indicator (see <a href="http://www.ecmwf.int/publications/manuals/d/gribapi/fm92/grib1/show/ctables/">WMO code table 4</a>). </td> 
    <th rowspan="6" style="vertical-align: top;">
     <div align="left">
      stepType = 
      <span class="style1">instant | avg | accum | max | min | diff | rms | <br /> sd | cov | ratio</span>
      <br /> 
     </div> 
     <div align="left"> 
      <p>stepUnits = <span class="style1">s (seconds) | m (minutes) | h (hours) | 3h | 6h | 12h | D (day) | M (month) | Y (year) | 10Y | 30Y | C (century) </span></p> 
      <p>default value for stepUnits is &quot;h&quot; </p> 
      <p>startStep, endStep</p> 
      <p>stepRange (= &quot;endStep&quot; | &quot;startStep-endStep&quot; ) </p> 
      <p>step</p> 
     </div> </th> 
   </tr> 
   <tr> 
    <td> 16 </td> 
    <td> P1 - Time period (number of time units) 0 for analyses or initialised analyses. </td> 
   </tr> 
   <tr> 
    <td> 17 </td> 
    <td> P2 - Time period (number of time units). Or time interval between successive analyses, initialised analyses or forecasts undergoing averaging or accumulation. Otherwise set to zero. </td> 
   </tr> 
   <tr> 
    <td> 18 </td> 
    <td> Time range indicator (see <a href="http://www.ecmwf.int/publications/manuals/d/gribapi/fm92/grib1/show/ctables/">WMO code table 5</a>). </td> 
   </tr> 
   <tr> 
    <td> 19 </td> 
    <td> Number of products included in an average, when the time range indicates an average or accumulation. Otherwise set to zero. </td> 
   </tr> 
   <tr> 
    <td> 20 </td> 
    <td> Number of products missing from an average, when the time range indicates an average or accumulation. Otherwise set to zero. </td> 
   </tr> 
   <tr> 
    <td> 21 </td> 
    <td> Century of reference time of data (eg 20 for 1997). </td> 
    <th style="vertical-align: top;">
     <div align="left">
      date/1000-1
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 22 </td> 
    <td> Sub-centre identifier. </td> 
    <th style="vertical-align: top;">
     <div align="left">
      subCentre
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 23 </td> 
    <td> Decimal scale factor. </td> 
    <th style="vertical-align: top;">
     <div align="left"> 
      <p>decimalScaleFactor</p> 
      <p>decimalPrecision<br /> </p> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 24 </td> 
    <td> Flag field to indicate local use in Section 1:<br /> <pre>0       No local use in section 1.<br />1       Local use in section 1.</pre> </td> 
    <th style="vertical-align: top;">
     <div align="left">
      setLocalDefinition
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 25-36 </td> 
    <td> Reserved for WMO reserved fields. Set to 0. </td> 
    <th style="vertical-align: top;">
     <div align="left">
      <br /> 
     </div></th> 
   </tr> 
   <tr> 
    <td> 37 </td> 
    <td> ECMWF local GRIB use definition identifier. This number determines the contents of elements 38-nn. See <a href="localGRIBUsage.html">ECMWF local GRIB usage definitions</a>. Local definition numbers 192 to 255 inclusive will not be used for ECMWF local extensions. They are free for use by Member States. </td> 
    <th style="vertical-align: top;"> <p align="left">class</p> <p align="left">type</p> <p align="left">stream</p> <p align="left">expver</p> <p align="left">...<br /> </p> </th> 
   </tr> 
  </tbody> 
 </table> 
 <pre>Note:<br />  For year 2000, KSEC1(21) = 20 and KSEC1(10) = 100<br />  For year 2001, KSEC1(21) = 21 and KSEC1(10) = 1<br /></pre> 
</div>