@@ -51,15 +51,19 @@ def remap(self):
5151 ogrid = config ['input' ]['shared' ]['ogrid' ]
5252 omodel = config ['input' ]['shared' ]['omodel' ]
5353 stretch = config ['input' ]['shared' ]['stretch' ]
54- in_geomdir = get_geomdir (in_bc_base , in_bc_version , agrid = agrid , ogrid = ogrid , omodel = omodel , stretch = stretch )
55- in_tile_file = glob .glob (in_geomdir + '/*-Pfafstetter.til' )[0 ]
54+ in_tile_file = config ['input' ]['surface' ]['catch_tilefile' ]
55+ if not in_tile_file :
56+ in_geomdir = get_geomdir (in_bc_base , in_bc_version , agrid = agrid , ogrid = ogrid , omodel = omodel , stretch = stretch )
57+ in_tile_file = glob .glob (in_geomdir + '/*-Pfafstetter.til' )[0 ]
5658
5759 agrid = config ['output' ]['shared' ]['agrid' ]
5860 ogrid = config ['output' ]['shared' ]['ogrid' ]
5961 omodel = config ['output' ]['shared' ]['omodel' ]
6062 stretch = config ['output' ]['shared' ]['stretch' ]
61- out_geomdir = get_geomdir (out_bc_base , out_bc_version , agrid = agrid , ogrid = ogrid , omodel = omodel , stretch = stretch )
62- out_tile_file = glob .glob (out_geomdir + '/*-Pfafstetter.til' )[0 ]
63+ out_tile_file = config ['output' ]['surface' ]['catch_tilefile' ]
64+ if not out_tile_file :
65+ out_geomdir = get_geomdir (out_bc_base , out_bc_version , agrid = agrid , ogrid = ogrid , omodel = omodel , stretch = stretch )
66+ out_tile_file = glob .glob (out_geomdir + '/*-Pfafstetter.til' )[0 ]
6367
6468 types = '.bin'
6569 type_str = sp .check_output (['file' ,'-b' , os .path .realpath (restarts_in [0 ])])
0 commit comments