max

max(fs)
max(fs, other_fs)
max(fs, value)
max(fs, gpt)

Computes the point-wise maximum of fs.

Parameters
  • fs (Fieldset) – input fieldset

  • other_fs (Fieldset) – another input fieldset

  • value (number) – input numerical value

  • gpt (Geopoints) – input geopoints data

Return type

Fieldset or Geopoints

The actual behaviour of max() depends on the arguments:

  • if fs is the only argument max() returns a Fieldset with a single field containing the maximum value of fs at each grid point or spectral coefficient. A missing value anywhere in fs will result in a missing value in the corresponding place in the output.

  • if other_fs is specified max() returns a Fieldset containing the maximum of fs and other_fs at each grid point or spectral coefficient. A missing value anywhere in fs or other_fs will result in a missing value in the corresponding place in the output.

  • if value is specified max() returns a Fieldset containing the maximum of fs and value at each grid point or spectral coefficient. A missing value anywhere in fs will result in a missing value in the corresponding place in the output.

  • if gpt is specified max() returns a Geopoints containing the maximum of fs and gpt at each location in gpt. A missing value anywhere in fs or gpt will result in a Geopoints missing value in the corresponding place in the output.

max(nc, nc_other)
max(nc, value)

Returns the NetCDF of the maximum value of nc and nc_other or value.

Parameters
  • nc (NetCDF) – input nectdf

  • nc_other (NetCDF) – another input nectdf

  • value (number) – value

Return type

NetCDF