Skip to content

Commit cdce34b

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

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/access_mopper/configurations.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,14 @@ 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-
missing = 1.e20
428-
cmorVar = cmor.variable(cmor_name, variable_units, cmor_axes, positive=positive, missing_value=missing)
427+
missing = 1.0e20
428+
cmorVar = cmor.variable(
429+
cmor_name,
430+
variable_units,
431+
cmor_axes,
432+
positive=positive,
433+
missing_value=missing,
434+
)
429435

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

0 commit comments

Comments
 (0)