Attention
This project is still in an early phase of development.
The python API is not yet stable, and some aspects of the schema for the blueprint and workplan will likely evolve. Therefore whilst you are welcome to try out using the package, we cannot yet guarantee backwards compatibility. We expect to reach a more stable version in 2026.
cstar.roms.ROMSSimulation.post_run#
- ROMSSimulation.post_run() None#
Perform post-processing steps after the ROMS simulation run.
This method processes the output files generated by ROMS, including joining NetCDF output files that were produced separately by each processor.
- Raises:
RuntimeError –
If post_run is called before run. - If the ROMS execution is not yet completed.
Notes
This method searches for NetCDF files with a timestamped pattern (*.??????????????.*.nc) and merges them into unified files.
Partitioned files are moved to a PARTITIONED subdirectory within the output directory after merging.
Uses the ncjoin command-line tool for file merging.
Examples
>>> simulation.run() >>> simulation.post_run() Joining netCDF files ocean_his.*.nc... Joining netCDF files ocean_rst.*.nc...