Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added grid_cell_area and integral

...

This function sets the number of GRIB packing bits to the value given (eg 8, 10, 16), and returns the previously used internal value. This function is particularly useful when dealing with 10-bit satellite images as these require GRIB packing to be set to 10 bits.


Anchor
grid_cell_area
grid_cell_area
fieldset grid_cell_area ( fieldset )

Computes the area of each grid cell in a fieldset with the grid points supposed to be at the centre of the grid cells. The grid cell area is returned in m2 units. This function only works for regular latitude-longitude grids and various types of Gaussian grids.


Anchor
indexes
indexes
fieldset indexes ( fieldset, vector )

...

GRIB: 1,3,5,5
      2,4,5,5
      1,0,3,1


Anchor
integral
integral
number or list integral (fieldset)

Computes the surface integral of each field in a fieldset. The result is either a number (for one input field) or a list of numbers (for multiple input fields). The computations are based on the cell area (in m2 units) returned by the grid_cell_area() function.


Anchor
integrate
integrate
number or list integrate ( fieldset )
number or list integrate ( fieldset,list )
number or list integrate ( fieldset,fieldset )

...