Skip to content

Commit 6b486f8

Browse files
fix error in last commit
1 parent 63a9ca1 commit 6b486f8

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ def make_bcs_ease(config):
2929
return
3030

3131
grid_type = config['grid_type']
32+
resolution = config['resolution']
33+
GRIDNAME = grid_type+'_'+ resolution
34+
3235
if 'EASEv' not in grid_type :
3336
print(" ")
3437
print("******************************************************************")
3538
print("ERROR: " + GRIDNAME + " is not an EASE grid. ")
3639
print("******************************************************************")
3740
return
3841

39-
resolution = config['resolution']
40-
4142
# if resolution is M01 in EASEv1 or EASEv2, do not execute
4243
# Instead, exist and print an on-screen message to the user
4344
if resolution == "M01":
@@ -50,7 +51,6 @@ def make_bcs_ease(config):
5051
print(" ")
5152
return
5253

53-
GRIDNAME = grid_type+'_'+ resolution
5454
now = datetime.now()
5555
tmp_dir = now.strftime("%Y%m%d%H%M%S")
5656
tmp_dir = f"{resolution}_{tmp_dir}"

0 commit comments

Comments
 (0)