Skip to content

Commit d36eb99

Browse files
committed
update dealing with missing values
1 parent 4179c26 commit d36eb99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/access_mopper/configurations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ def cmorise(self, file_paths, compound_name, cmor_dataset_json, mip_table):
424424
data = np.transpose(data, (2, 3, 1, 0))
425425

426426
# Define CMOR variable
427-
cmorVar = cmor.variable(cmor_name, variable_units, cmor_axes, positive=positive)
427+
missing = 1.e20
428+
cmorVar = cmor.variable(cmor_name, variable_units, cmor_axes, positive=positive, missing_value=missing)
428429

429430
# Write data to CMOR
430431
cmor.write(cmorVar, data, ntimes_passed=len(time_numeric))

0 commit comments

Comments
 (0)