Commit 3539bd91 authored by Javier Vegas-Regidor's avatar Javier Vegas-Regidor
Browse files

Revert "Do not save basin if all values are 0"

This reverts commit 1a964f71.
parent 9f95cd95
...@@ -254,8 +254,7 @@ class Siasiesiv(Diagnostic): ...@@ -254,8 +254,7 @@ class Siasiesiv(Diagnostic):
else: else:
var_res.units = "m^2" var_res.units = "m^2"
for i, basin in enumerate(self.masks): for i, basin in enumerate(self.masks):
if not np.all(res[i, ...] == 0): var_region[i, ...] = netCDF4.stringtoarr(str(basin), 50)
var_region[i, ...] = netCDF4.stringtoarr(str(basin), 50) var_res[..., i] = res[i, ...]
var_res[..., i] = res[i, ...]
handler_temp.close() handler_temp.close()
self.generated[var].set_local_file(temp, diagnostic=self) self.generated[var].set_local_file(temp, diagnostic=self)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment