Skip to content

Commit 3fc8655

Browse files
committed
fill Nan
1 parent 1bd2024 commit 3fc8655

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/access_mopper/configurations.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,10 @@ def cmorise(self, file_paths, compound_name, cmor_dataset_json, mip_table):
317317
x = np.arange(i_axis.size, dtype="float")
318318
y = np.arange(j_axis.size, dtype="float")
319319

320-
data = var.values
320+
# Fill Nan in data
321+
var_fixed = var.fillna(1e20)
322+
323+
data = var_fixed.values
321324
lat = self.supergrid.lat
322325
lat_bnds = self.supergrid.lat_bnds
323326

0 commit comments

Comments
 (0)