polaris.tasks.ocean.realistic_global.dynamic_adjustment.viz.tracer_changes
- polaris.tasks.ocean.realistic_global.dynamic_adjustment.viz.tracer_changes(component: Any, config: Any, init_filename: str, final_filename: str, mesh_filename: str, bin_count: int = 201) Dict[str, TracerChange][source]
The change in temperature and salinity from an initial state to the last record of a stage’s output, cell by cell and layer by layer, weighted by the initial volume of each cell.
Each model’s tracers are compared in that model’s own convention. Only active layers count: those with a positive initial thickness and finite, unfilled values at both ends.
- Parameters:
component (polaris.tasks.ocean.Ocean) – The ocean component, which opens the files with MPAS-Ocean names.
config (polaris.config.PolarisConfigParser) – The config, which says which model wrote the files.
init_filename (str) – The initial state.
final_filename (str) – The output of the last stage; its last record is the end state.
mesh_filename (str) – The horizontal mesh, whose cell areas weight the histograms.
bin_count (int, optional) – The number of histogram bins.
- Returns:
dict – A
TracerChangefortemperatureand forsalinity.