epoc

Recovering from failures in modify_netcdf_metadata task

Important: This script was written to fix the specific diagnostics being written by the EPOC workflows, and it is not applicable to other configurations. Any changes to the model setup, resolution, diagnostic output etc could require rewriting this code.

Sometimes the modify_netcdf_metadata task will fail with a timeout or out-of-memory error. You need to check what state the task left the files in, and possibly take some action. Do not just re-trigger.

What does it do?

It fixes the metadata for netCDF files written by XIOS. The code is contained in the suite under app/modify_netcdf_metadata/bin.

Loops over files, using filename pattern matching to categorise (modify_netcdf.py)

What to do when it fails?

Try to work out what was happening when the code stopped, by looking at the code and job.out file. In particular look out for backup files.