Versions Compared

Key

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

...

Now we want to go further and compute the precipitation for each and every 3-hour period. We can do this with more complex field indexing.

So we want field 2 minus field 1, field 3 minus field 2, etc. We can do this in a single line of code because we can handle multiple fields in a single operation as shown:

Gliffy Diagram
nameprecip_fieldset_subtraction

To extract fields 1 to 4, for example, we can use the following syntax:

...