Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable EASE M01 option in Boundary Conditions Package #914

Merged
merged 5 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,35 @@
def make_bcs_ease(config):
bin_dir = os.getcwd()
if '/bin' not in bin_dir:
print("please run this program in installed bin directory")
return
print(" ")
print("******************************************************************")
print("ERROR: Must run this program in installed bin directory. ")
print("******************************************************************")
return

grid_type = config['grid_type']
resolution = config['resolution']
GRIDNAME = grid_type+'_'+ resolution

if 'EASEv' not in grid_type :
print('This is not a EASE grid')
print(" ")
print("******************************************************************")
print("ERROR: " + GRIDNAME + " is not an EASE grid. ")
print("******************************************************************")
return

resolution = config['resolution']
# if resolution is M01 in EASEv1 or EASEv2, do not execute
# Instead, exist and print an on-screen message to the user
if resolution == "M01":
print(" ")
print("******************************************************************")
print("WARNING: Job for " + GRIDNAME + " not submitted! ")
print(" EASEv[x]_M01 (~1 km) resolution requires custom process. ")
print(" Contact GMAO Land Group for assistance. ")
print("******************************************************************")
print(" ")
return

GRIDNAME = grid_type+'_'+ resolution
now = datetime.now()
tmp_dir = now.strftime("%Y%m%d%H%M%S")
tmp_dir = f"{resolution}_{tmp_dir}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def ask_questions(default_grid="Cubed-Sphere"):
"name": "EASEv1",
"message": "Select EASEv1 grid resolution: \n ",
"choices": [ \
#"M01 -- 1km $34668x14688$", \
"M01 -- 1km $34668x14688$", \
"M03 -- 3km $11556x4896$", \
"M09 -- 9km $3852x1632$", \
"M25 -- 25km $1383x586$", \
Expand All @@ -292,7 +292,7 @@ def ask_questions(default_grid="Cubed-Sphere"):
"name": "EASEv2",
"message": "Select EASEv2 grid resolution: \n ",
"choices": [ \
#"M01 -- 1km $34704x14616$", \
"M01 -- 1km $34704x14616$", \
"M03 -- 3km $11568x4872$", \
"M09 -- 9km $3856x1624$", \
"M25 -- 25km $1388x584$", \
Expand Down