Versions Compared

Key

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

...

 (info) Do you need more CMA re-forecast examples before you continue below?

A web API example requesting data for several hindcastDates (iterating over several hindcastYears, hindcastMonths and hindcastDays)

  • So far so good!
  • Now, letLet's see how we can change the script above to iterate over several hindcastYears, hindcastMonths and hindcastDays efficiently
  • Please note that the objective of this example is only to demonstrate how to make a MARS request efficient by iterating properly. 
  • It can be used as a starting point however you need to adapt it to your needseg:
    • to set the keywords values (eg hindcastYear)  according to your needs. (warning) Don't forget to check the availability! (warning)
    • to make it more "pythonic" (wink)
    • etc

(smile) By (grey lightbulb) By setting the variable "target" accordingly you can have each hindcastDate to be written on a separate file .

...