Versions Compared

Key

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

...

Excerpt
hiddentrue

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

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:


Code Block
languagepy
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



Content by Label
showLabelsfalse
max5
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-articlemetview-faqs" and label = "computation" and type = "page" and space = "UDOC"
labelskb-how-to-article

...