Skip to content

Commit 63a9ca1

Browse files
Edited error and warning messages (make_bcs_ease.py)
1 parent f3d98b0 commit 63a9ca1

File tree

1 file changed

+17
-11
lines changed
  • GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs

1 file changed

+17
-11
lines changed

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_ease.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,33 @@
2222
def make_bcs_ease(config):
2323
bin_dir = os.getcwd()
2424
if '/bin' not in bin_dir:
25-
print("please run this program in installed bin directory")
26-
return
25+
print(" ")
26+
print("******************************************************************")
27+
print("ERROR: Must run this program in installed bin directory. ")
28+
print("******************************************************************")
29+
return
2730

2831
grid_type = config['grid_type']
2932
if 'EASEv' not in grid_type :
30-
print('This is not a EASE grid')
33+
print(" ")
34+
print("******************************************************************")
35+
print("ERROR: " + GRIDNAME + " is not an EASE grid. ")
36+
print("******************************************************************")
3137
return
3238

3339
resolution = config['resolution']
3440

3541
# if resolution is M01 in EASEv1 or EASEv2, do not execute
3642
# Instead, exist and print an on-screen message to the user
3743
if resolution == "M01":
38-
print(" ")
39-
print("**********************************************")
40-
print("The EASE M01 resolution (~1km) run is not submitted.")
41-
print("Any other resolutions (if chosen) are submitted.")
42-
print("If you need M01 output, please get in touch with Land Group (GMAO) for assistance.")
43-
print("**********************************************")
44-
print(" ")
45-
return
44+
print(" ")
45+
print("******************************************************************")
46+
print("WARNING: Job for " + GRIDNAME + " not submitted! ")
47+
print(" EASEv[x]_M01 (~1 km) resolution requires custom process. ")
48+
print(" Contact GMAO Land Group for assistance. ")
49+
print("******************************************************************")
50+
print(" ")
51+
return
4652

4753
GRIDNAME = grid_type+'_'+ resolution
4854
now = datetime.now()

0 commit comments

Comments
 (0)