From 5f23741ddfc4396666dcd276e03bce9b68072d75 Mon Sep 17 00:00:00 2001 From: Rolf Reichle <54944691+gmao-rreichle@users.noreply.github.com> Date: Thu, 15 Jun 2023 21:12:39 -0400 Subject: [PATCH] edited comments and clean exit message (remap_catchANDcn.py) --- pre/remap_restart/remap_catchANDcn.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pre/remap_restart/remap_catchANDcn.py b/pre/remap_restart/remap_catchANDcn.py index 62b25fe..b91115b 100755 --- a/pre/remap_restart/remap_catchANDcn.py +++ b/pre/remap_restart/remap_catchANDcn.py @@ -55,9 +55,11 @@ def remap(self): surflay = config['output']['surface']['surflay'] in_tilefile = config['input']['surface']['catch_tilefile'] + # determine NPE based on *approximate* number of input and output tiles + if not in_tilefile : if not in_bcsdir: - exit("You need to provide either input tile file or the input bcs directory") + exit("Must provide either input tile file or input bcs directory") in_tilefile = glob.glob(in_bcsdir+ '/*.til')[0] out_tilefile = config['output']['surface']['catch_tilefile'] @@ -77,11 +79,11 @@ def remap(self): out_tilenum = int(next(f)) max_tilenum = max(in_tilenum, out_tilenum) NPE = 0 - if (max_tilenum <= 112573): #M36 + if (max_tilenum <= 112573) : # no more than EASEv2_M36 NPE = 40 - elif (max_tilenum <= 1684725) : #M09 + elif (max_tilenum <= 1684725) : # no more than EASEv2_M09 NPE = 80 - elif (max_tilenum <= 2496756) : #C720 + elif (max_tilenum <= 2496756) : # no more than C720 NPE = 120 else: NPE = 160