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
ncclimoThe input files are the step’s
input_filenames, one per month in chronological order from January ofstart_year, symlinked into its work directory.ncclimoassigns 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
ncclimoin 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
ncclimowould take it to cover