We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0ade8d commit 93fc344Copy full SHA for 93fc344
iris_grib/_save_rules.py
@@ -1490,12 +1490,6 @@ def data_section(cube, grib):
1490
gribapi.grib_set(grib, "bitmapPresent", 1)
1491
gribapi.grib_set_double(grib, "missingValue", fill_value)
1492
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)
1499
gribapi.grib_set_double_array(grib, "values", data.flatten())
1500
1501
# todo: check packing accuracy?
0 commit comments