Versions Compared

Key

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

...

fieldset fieldset[vector]

Extract a selection of elements 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]

...

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 )

...