You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

How do I find where the maximum value of a field occurs

Step-by-step guide

You can do this by using maxvalue() to compute the maximum value, and then find() to discover where it occurs. For example:

  1. g = read("my_data.grib")
    m = maxvalue(g[1])      # maxvalue works on all fields given to it; we probably only want one
    print(m, find(g[1],m))  # prints a list of lat/lon pairs where the value occurs


There is no content with the specified labels


  • No labels