@@ -51,15 +51,19 @@ def remap(self):
51
51
ogrid = config ['input' ]['shared' ]['ogrid' ]
52
52
omodel = config ['input' ]['shared' ]['omodel' ]
53
53
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 ]
56
58
57
59
agrid = config ['output' ]['shared' ]['agrid' ]
58
60
ogrid = config ['output' ]['shared' ]['ogrid' ]
59
61
omodel = config ['output' ]['shared' ]['omodel' ]
60
62
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 ]
63
67
64
68
types = '.bin'
65
69
type_str = sp .check_output (['file' ,'-b' , os .path .realpath (restarts_in [0 ])])
0 commit comments