Skip to content
Snippets Groups Projects
Commit 1f48d6fe authored by Bing Gong's avatar Bing Gong
Browse files

fix bug in plot_ambs_forecast.py

parent 1683e6ff
No related branches found
No related tags found
No related merge requests found
Pipeline #78289 passed
...@@ -123,7 +123,7 @@ def main(args): ...@@ -123,7 +123,7 @@ def main(args):
filename = args.filename filename = args.filename
fhh = args.forecast_hour fhh = args.forecast_hour
if os.path.isfile(filename): if not os.path.isfile(filename):
raise FileNotFoundError("Could not find the indictaed netCDF-file '{0}'".format(filename)) raise FileNotFoundError("Could not find the indictaed netCDF-file '{0}'".format(filename))
with xr.open_dataset(filename) as dfile: with xr.open_dataset(filename) as dfile:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment