diff --git a/iris_grib/_save_rules.py b/iris_grib/_save_rules.py index cb331cf29..0f0e4df35 100644 --- a/iris_grib/_save_rules.py +++ b/iris_grib/_save_rules.py @@ -1490,12 +1490,6 @@ def data_section(cube, grib): gribapi.grib_set(grib, "bitmapPresent", 1) gribapi.grib_set_double(grib, "missingValue", fill_value) - # A segmentation fault is raised by `gribapi.grib_set_double_array` if it - # tries to cast large data to float64. As a temporary fix we cast the data - # upfront - # TODO: remove the `astype` command once eccodes (gribapi) has been fixed. - if data.dtype != np.float64: - data = data.astype(np.float64) gribapi.grib_set_double_array(grib, "values", data.flatten()) # todo: check packing accuracy?