esm-tools / pymorize

A Python based Tool to CMORize NetCDF Data
MIT License
0 stars 1 forks source link

Time blocking of various in --> out file numbers #9

Open pgierz opened 3 months ago

pgierz commented 3 months ago

From @chrisdane:

Another feature request: that the user can give the number of years saved in one cmorized file, if e.g. annual, 10-year, 100-year, etc. files are wanted (per variable)

pgierz commented 4 days ago

This looks like it is handled (sort of) in pyormize.files.save_dataset, where the function _frequency_from_approx_interval takes a number (in days) and spits out something else. This function looks weird for a few reasons:

So, in my view, the behaviour should look like this:

rules:
    - name: ...
      inputs: ...
      output_frequency: "10YE"

Where the string "10YE" is just any known resampling string