Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


ExampleDescription
grib_cloneHow to create a new GRIB message by cloning an existing message.
grib_copy_messageHow to copy a GRIB message in memory
grib_ensemble_index
index
Index a GRIB file, select a specific parameter and compute ensemble mean.
grib_get_keys
how
How to get values using keys from GRIB messages
grib_indexHow to create and use an index to access GRIB messages from a file. Demo also loading and writing an index from a file.
grib_iterator_bitmapHow to use an iterator on lat/lon/values and query the bitmap for missing values (rather than compare each value with the missingValue key)
grib_iterator
how
How to use an iterator on lat/lon/values for GRIB messages
grib_keys_iterator
Example on how
How to use keys_iterator
functions and the codes_keys_iterator structure
to get all the available keys in a GRIB message.
grib_multi_writeHow
to encode GRIB2 messages containing multiple fields
to create a multi-field GRIB message in memory and write it to a file. Multi-field messages can be created only in GRIB edition 2.
grib_multiHow to decode
GRIB messages containing multiple fields
GRIB2 multi-field messages. Try to turn multi support on and off
multi support
to see the difference
. Default is OFF
.
For all the tools defalut is multi support ON.
grib_nearest
how to get nearest point(s)
How to use codes_grib_find_nearest and codes_get_element
grib_precision
how
How to control decimal precision when packing fields.
grib_print_data
prints
Prints all the data contained in a GRIB file
grib_read_from_fileGet message lengths using two different interfaces.
grib_samplesHow to create a new GRIB message from a sample.
grib_set_bitmap
how
How to set a bitmap in a GRIB message to encode missing values in the data
grib_set_data
set
Set the data contained in a GRIB file. In this example no missing values are present. If there are missing values, refer to: grib_set_bitmap
grib_set_
pv
keys
how
How to set
pv (vertical coordinate parameters)
key values in GRIB messages
grib_set_
keys
missing
how
How to set a key as missing
grib_set_pvHow to set pv values in a GRIB
messages
message