Versions Compared

Key

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

...

Warning

Please be aware that in versions before Metview 5.5.3 the resulting fields of gradient() appear in the wrong order.  The correct order should look like this:

[gradx_f1, grady_f1, gradx_f2, grady_f2, ....]

but instead of it the following order is produced:

[gradx_f1, gradx_f2,..., grady_f1, grady_f2, ....]

At the moment, Metview 5.5.3 is available at ECMWF as metview/new.



Anchor
grib_get
grib_get
list grib_get (fieldset, list)
list grib_get (fieldset, list, string)

...

    • R is the radius of the Earth
    • φi is the latitude of the i-th grid cell
    • Δφi is the size of the grid cells in latitude
    • Δλi is the size of the i-th grid cell in longitude.

The function then supposes that Δφi is constant and the weighted average over the area is computed as:

...

This formula is only used for regular latitude-longitude and Gaussian grids. For all other grid types integrate() simply returns the mathematical average of the values (just like the average() function does).


Warning

Please note that for Gaussian grids the formula can only be only regarded as an approximation since  Δφi is not constant!

If the input fieldset contains only one field, a number is returned. If there is more than one field, a list of numbers is returned. Missing values in the input fieldset are bypassed in this calculation. For each field for which there are no valid values, nil is returned.

...