Skip to content

Enhance broken NEMO data error messaging #967

@mo-gill

Description

@mo-gill

As an extension to this issue: #860

It would be good to have a more helpful error message for when pre 1900 NEMO data is used (requiring the reset_time_coords.py to fix it):

 File "(redacted)/CDDS/mip_convert/mip_convert/load/iris_load_util.py", line 240, in load_cube
    merged_cubes = load_cubes(all_input_data, run_bounds, loadable, ancil_variables)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "(redacted)/CDDS/mip_convert/mip_convert/load/iris_load_util.py", line 211, in load_cubes
    raise RuntimeError(error_msg.format(constraint_constructor.info, '" and "'.join(run_bounds)))
RuntimeError: No cubes found using constraints "variable_name=thetao" within "1850-01-01T00:00:00" and "1850-02-01T00:00:00"
Critical Errors found in all variables, therefore MIP convert has failed.
*** Finished conversions ***

This issue is to enhance that error message (possibly add a list of the files) and suggest that running the script on the NEMO data might fix the issue.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions