BoldingBruggeman / getm-rewrite

Rewrite of the General Estuarine Transport Model (GETM) in Python (mostly) and Fortran (performance-critical sections)
https://pygetm.readthedocs.io/
Other
7 stars 3 forks source link

Allow saving monthly average #25

Open glessin opened 1 year ago

glessin commented 1 year ago

Saving intervals are defined with datetime.timedelta, which does not allow monthly option. Saving monthly averages is quite routine task (to save space at least). There might be a workaround, or something to suggest together with issue #18?

jornbr commented 1 year ago

That one at least has a solution:

you can use interval_units=pygetm.TimeUnit.MONTHS, interval=1

Or any other value for interval, as appropriate. A little more info here