Skip to content

Commit abc7906

Browse files
wietzesuijkerd-v-b
andauthored
Update src/eopf_geozarr/conversion/geozarr.py
Co-authored-by: Davis Bennett <[email protected]>
1 parent 0708e6d commit abc7906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/eopf_geozarr/conversion/geozarr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,8 +941,8 @@ def create_overview_dataset_all_vars(
941941

942942
# Create coordinate arrays preserving parent dtype
943943
left, bottom, right, top = native_bounds
944-
x_coords = np.linspace(left, right, width, endpoint=False).astype(parent_x_dtype)
945-
y_coords = np.linspace(top, bottom, height, endpoint=False).astype(parent_y_dtype)
944+
x_coords = np.linspace(left, right, width, endpoint=False, dtype=parent_x_dtype)
945+
y_coords = np.linspace(top, bottom, height, endpoint=False, dtype=parent_y_dtype)
946946

947947
# Check if we're dealing with geographic coordinates (EPSG:4326)
948948
if native_crs and native_crs.to_epsg() == 4326:

0 commit comments

Comments
 (0)