polaris.tasks.ocean.analysis.sim_files.SimulationFiles
- class polaris.tasks.ocean.analysis.sim_files.SimulationFiles(config, log=<built-in function print>)[source]
The files of the simulation being analyzed
The simulation’s own Omega configuration is the analysis’ description of where its output lives: the mesh, the vertical coordinate and every output stream are read from it, so that none of them have to be restated in a Polaris config file. An Omega run always writes one, so its absence is an error rather than a case to fall back from.
- Variables:
config (polaris.config.PolarisConfigParser) – The config options for the analysis
omega_config (OmegaConfig) – The simulation’s Omega configuration
simulation_path (str) – The directory that relative file names are resolved against
simulation_path_source (str) – Where
simulation_pathcame from, for reportingsimulation_name (str) – A short name for the simulation, used in plot titles and file names
- __init__(config, log=<built-in function print>)[source]
Resolve the simulation’s paths from its Omega configuration
- Parameters:
config (polaris.config.PolarisConfigParser) – The config options for the analysis
log (callable, optional) – Where to report each resolved path and its source. The default,
print, is what a step wants duringsetup(), where it has no logger yet; at run time a step passesself.logger.info.
Methods
__init__(config[, log])Resolve the simulation's paths from its Omega configuration
global_stats_files(start_year, end_year)Get the global statistics output files covering a range of years
Get the output stream the global statistics are read from
Get the horizontal mesh file
moc_files(start_year, end_year)Get the meridional overturning circulation output files covering a range of years
monthly_mean_files(start_year, end_year)Get the monthly-mean output files covering a range of years
Get the vertical-coordinate file