Integrate


Syntax:

Field
a:
GRID integral
GRID :a: .GRID REGRID
:a
unit_conversion mul

Examples:

  • P integrate
  • Troubleshooting:

    Inverse operator of partial derivative.

    This one is tricky with the unit conversion. The integral is computed by taking the sum between two values of the input stream, normalized by the grid distance between them. However, the the grid distance might not be the actual distance. For example the difference in X=2.5 and X=5 is 2.5 degrees, but when taking a integral we usually want it in meters. Or the difference is Jan and Feb is 30 days, but we usually want it in seconds. Pressure is usually in mb instead of Pa, ect..