@@ -96,8 +96,10 @@ def remap(self):
96
96
os .makedirs (OutData_dir )
97
97
98
98
99
- saltwater = ''
100
- seaice = ''
99
+ saltwater_internal = ''
100
+ saltwater_import = ''
101
+ seaicethermo_internal = ''
102
+ seaicethermo_import = ''
101
103
landice = ''
102
104
lake = ''
103
105
route = ''
@@ -108,12 +110,14 @@ def remap(self):
108
110
if os .path .exists (dest ) : shutil .remove (dest )
109
111
print ('\n Copy ' + rst + ' to ' + dest )
110
112
shutil .copy (rst ,dest )
111
- if 'saltwater' in f : saltwater = f
112
- if 'seaice' in f : seaice = f
113
- if 'landice' in f : landice = f
114
- if 'lake' in f : lake = f
115
- if 'roue' in f : route = f
116
- if 'openwater' in f : openwater = f
113
+ if 'saltwater_internal' in f : saltwater_internal = f
114
+ if 'saltwater_import' in f : saltwater_import = f
115
+ if 'seaicethermo_internal' in f : seaicethermo_internal = f
116
+ if 'seaicethermo_import' in f : seaicethermo_import = f
117
+ if 'landice' in f : landice = f
118
+ if 'lake' in f : lake = f
119
+ if 'roue' in f : route = f
120
+ if 'openwater' in f : openwater = f
117
121
118
122
in_til = InData_dir + '/' + os .path .basename (in_tile_file )
119
123
out_til = OutData_dir + '/' + os .path .basename (out_tile_file )
@@ -131,8 +135,8 @@ def remap(self):
131
135
if os .path .exists (log_name ):
132
136
os .remove (log_name )
133
137
134
- if (saltwater ):
135
- cmd = exe + out_til + ' ' + in_til + ' InData/' + saltwater + ' 0 ' + str (zoom )
138
+ if (saltwater_internal ):
139
+ cmd = exe + out_til + ' ' + in_til + ' InData/' + saltwater_internal + ' 0 ' + str (zoom )
136
140
self .run_and_log (cmd , log_name )
137
141
138
142
# split Saltwater
@@ -144,12 +148,21 @@ def remap(self):
144
148
seaice = ''
145
149
self .run_and_log (cmd , log_name )
146
150
151
+ if (saltwater_import ):
152
+ cmd = exe + out_til + ' ' + in_til + ' InData/' + saltwater_import + ' 0 ' + str (zoom )
153
+ self .run_and_log (cmd , log_name )
154
+
147
155
if (openwater ):
148
156
cmd = exe + out_til + ' ' + in_til + ' InData/' + openwater + ' 0 ' + str (zoom )
149
157
self .run_and_log (cmd , log_name )
150
158
151
- if (seaice ):
152
- cmd = exe + out_til + ' ' + in_til + ' InData/' + seaice + ' 0 ' + str (zoom )
159
+ if (seaicethermo_internal ):
160
+ cmd = exe + out_til + ' ' + in_til + ' InData/' + seaicethermo_internal + ' 0 ' + str (zoom )
161
+ print ('\n ' + cmd )
162
+ self .run_and_log (cmd , log_name )
163
+
164
+ if (seaicethermo_import ):
165
+ cmd = exe + out_til + ' ' + in_til + ' InData/' + seaicethermo_import + ' 0 ' + str (zoom )
153
166
print ('\n ' + cmd )
154
167
self .run_and_log (cmd , log_name )
155
168
@@ -197,7 +210,9 @@ def find_rst(self):
197
210
"landice_internal_rst" ,
198
211
"openwater_internal_rst" ,
199
212
"saltwater_internal_rst" ,
200
- "seaicethermo_internal_rst" ]
213
+ "saltwater_import_rst" ,
214
+ "seaicethermo_internal_rst" ,
215
+ "seaicethermo_import_rst" ]
201
216
202
217
rst_dir = self .config ['input' ]['shared' ]['rst_dir' ]
203
218
yyyymmddhh_ = str (self .config ['input' ]['shared' ]['yyyymmddhh' ])
0 commit comments