...
f = grib_set(f, ["date", 20150601, # integer
"time", 0600, # integer
"stepType", "avg", # string
"startStep", 0 , # integer
"endStep", 31, # integer "unitOfTimeRange", "D", # string
"longitudeOfLastGridPointInDegrees", 100.5]) 100.5 # double
fieldset Anchor grib_set_long grib_set_long grib_set_long
( fieldset, list )
fieldset grib_set_double
( fieldset, list )
fieldset grib_set_string
( fieldset, list )
...
- Takes the grid values in the first fieldset and uses them as index in the second fieldset. E.g. a grid value of n in the first fieldset, retrieves the corresponding grid point value of the (n-1)th field of the second fieldset (indexing is 0 based). The output fieldset is built from these values and has as many fields as the second first fieldset.
- Takes the grid values in the first fieldset and uses them as index in the list - real numbers are truncated, not rounded. E.g. a grid value of n in the first fieldset, retrieves the (n-1)th list element (indexing is 0 based). The output fieldset is built from these values and has as many fields as the first fieldset.
...