ARPA-SIMC / arkimaps

generazione mappe meteorologiche da modelli previsionali
GNU General Public License v2.0
0 stars 1 forks source link

Allow unit in model steps (refs #154) #155

Closed spanezz closed 11 months ago

spanezz commented 1 year ago

This changes the type of Instant.step from an int to a ModelStep class, which can be extended to support measurement units. At the moment the only unit supported is hour.

It's a backwards-compatible changes, besides a change in the format of products.json, which should enable to introduce part-hour steps and hopefully also other kinds of step in the future.