polaris.tasks.ocean.analysis.ncclimo.run_ncclimo

polaris.tasks.ocean.analysis.ncclimo.run_ncclimo(step, variables, seasons)[source]

Compute the monthly climatologies and some seasons of a step’s monthly means with ncclimo

The input files are the step’s input_filenames, one per month in chronological order from January of start_year, symlinked into its work directory. ncclimo assigns each file to a month by its position in that list. The climatologies are written to the same directory.

Parameters:
  • step (polaris.tasks.ocean.analysis.analysis_step.AnalysisStep) – The step computing the climatology. It runs ncclimo in parallel if it declared more than one core.

  • variables (list of str) – The variables to compute the climatology of, as the files name them

  • seasons (list of str) – The seasons to compute beside the twelve monthly climatologies, e.g. ['ANN', 'DJF']

Raises:

ValueError – If a file’s time bounds are not the month ncclimo would take it to cover