|
22 | 22 | def make_bcs_ease(config): |
23 | 23 | bin_dir = os.getcwd() |
24 | 24 | 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 |
27 | 30 |
|
28 | 31 | grid_type = config['grid_type'] |
29 | 32 | 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("******************************************************************") |
31 | 37 | return |
32 | 38 |
|
33 | 39 | resolution = config['resolution'] |
34 | 40 |
|
35 | 41 | # if resolution is M01 in EASEv1 or EASEv2, do not execute |
36 | 42 | # Instead, exist and print an on-screen message to the user |
37 | 43 | 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 |
46 | 52 |
|
47 | 53 | GRIDNAME = grid_type+'_'+ resolution |
48 | 54 | now = datetime.now() |
|
0 commit comments