polaris.tasks.ocean.analysis.sim_files.expand_template
- polaris.tasks.ocean.analysis.sim_files.expand_template(template, start_year, end_year, simulation_path=None)[source]
Expand a file-name template over a range of years
$Yis replaced by the four-digit year and$Mby the two-digit month. A template with no$Mgives one file per year and a template with neither gives a single file, which is the case for the analysis output Omega writes to one file for a whole run.- Parameters:
- Returns:
sim_files (list of SimFile) – The expanded files, in chronological order