Versions Compared

Key

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

...

Extract a selection of fields from a fieldset. The vector supplied as the argument provides the set of indices to be used. For example:
# copies fields 2, 1, 3 of x into y
x = |2, 1, 3|
y = x[i]

 

fieldset abs ( fieldset )

Returns the fieldset of the absolute value of the input fieldset at each grid point or spectral coefficient. Missing values are retained, unaltered by the calculation.

...

For each field in the input fieldset, this function creates a field where each grid point has the value of the sine of its latitude. For example, the following macro adds the coriolis parameter to each grid point of a field :

# Computes absolute vorticity from vorticity
omega = 2 * pi / 86400
coriolis = 2 * omega * sinlat(vort)
absvort = vort + coriolis

 

fieldset sort ( fieldset )
fieldset sort ( fieldset,string )
fieldset sort ( fieldset,list )
fieldset sort ( fieldset,string,string )
fieldset sort ( fieldset,list,string )
fieldset sort ( fieldset,list,list )

...