Skip to content

Commit 93fc344

Browse files
authored
Remove eccodes bug workaround added in #208. (#224)
1 parent e0ade8d commit 93fc344

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

iris_grib/_save_rules.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,12 +1490,6 @@ def data_section(cube, grib):
14901490
gribapi.grib_set(grib, "bitmapPresent", 1)
14911491
gribapi.grib_set_double(grib, "missingValue", fill_value)
14921492

1493-
# A segmentation fault is raised by `gribapi.grib_set_double_array` if it
1494-
# tries to cast large data to float64. As a temporary fix we cast the data
1495-
# upfront
1496-
# TODO: remove the `astype` command once eccodes (gribapi) has been fixed.
1497-
if data.dtype != np.float64:
1498-
data = data.astype(np.float64)
14991493
gribapi.grib_set_double_array(grib, "values", data.flatten())
15001494

15011495
# todo: check packing accuracy?

0 commit comments

Comments
 (0)