Commit 12647416 authored by POLCHER Jan's avatar POLCHER Jan 🚴🏾
Browse files

Use the ERROR function !

parent 23a1eb15
......@@ -32,7 +32,7 @@ def getbox(ncdf, corners) :
np.max(corners[0][:]) > np.max(lonrange) or \
np.min(corners[1][:]) < np.min(latrange) or \
np.max(corners[1][:]) > np.max(latrange) :
print("The atmospheric domain does not fit inside the area covered by HydroFile. Please check the file.")
ERROR("The atmospheric domain does not fit inside the area covered by HydroFile. Please check the file.")
sys.exit()
#
# Add a few points to tbe box to make sure to cover everything
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment