File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -302,10 +302,10 @@ def remap_ecco_to_mali(self):
302302 temp = ds_out ['oceanTemperature' ]
303303 sal = ds_out ['oceanSalinity' ]
304304
305- mask = o3dm < 1.0
306- ds_out ['orig3dOceanMask' ] = o3dm .where (~ mask , 0 ).astype ('int32' )
307- ds_out ['oceanTemperature' ] = temp .where (~ mask , 1e36 ).astype ('float64' )
308- ds_out ['oceanSalinity' ] = sal .where (~ mask , 1e36 ).astype ('float64' )
305+ mask = o3dm > 0.9999 #Account for rounding error. Good cells are not exactly 1
306+ ds_out ['orig3dOceanMask' ] = o3dm .where (mask , 0 ).astype ('int32' )
307+ ds_out ['oceanTemperature' ] = temp .where (mask , 1e36 ).astype ('float64' )
308+ ds_out ['oceanSalinity' ] = sal .where (mask , 1e36 ).astype ('float64' )
309309
310310 # Save final output file if not adding mesh variables
311311 if self .options .includeMeshVars :
You can’t perform that action at this time.
0 commit comments