dtcenter / METplus

Python scripting infrastructure for MET tools.
https://metplus.readthedocs.io
Apache License 2.0
97 stars 37 forks source link

Enhancement: Prevent error if some input files are missing #2460

Closed georgemccabe closed 7 months ago

georgemccabe commented 8 months ago

In the NOAA/METplus Telecon on 1/8/2024, we discussed adding a config option to allow runs to continue without error if some of the required input files are not found. This would prevent an error being reported when one of the runs did not succeed due to a data outage.

Describe the Enhancement

Add a configuration option to report a warning instead of an error when input files are not found. Shannon noted that she has written logic in her scripts that call METplus to check input files and only run if 80% of the input is available. The new config option could be a number between 0-1 that can be used to report warnings until a threshold is met, in which case errors will be throw. Alternatively, the error could be reported at the end.

Time Estimate

Estimate the amount of work required here. Issues should represent approximately 1 to 3 days of work.

Sub-Issues

Consider breaking the enhancement down into sub-issues.

Relevant Deadlines

METplus 6.0.0

Funding Source

Define the source of funding and account keys here or state NONE.

Define the Metadata

Assignee

Labels

Projects and Milestone

Define Related Issue(s)

Consider the impact to the other METplus components.

Enhancement Checklist

See the METplus Workflow for details.

georgemccabe commented 7 months ago

As discussed in NOAA Telecon on 2024/01/22, consider updating the logic to find files so that find_obs_offset will not report a WARNING for each offset that is not found. This message could be changed to a DEBUG message or removed altogether.

georgemccabe commented 7 months ago

This may be related to #1656