Versions Compared

Key

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

...

As an exercise to put all of this together, we will write a new macro to compute the precipitation rate in mm per hour at a particular location for each time period. WeThis could be a little complicated, so we'll do it step by step.

Compute the 'period' precipitation from precip.grib

...

We will obtain the date for each field of the original precipitation fieldset and add it to the list. We need to loop through the fields (- we should already have n defined as the number of fields from the previous exercise):

Code Block
languagepy
dates = nil
for i = 1 to n do
   print(i) # we will put proper code here in the next step!
end for

...