Skip to content

Commit 2a692a7

Browse files
committed
Convert BigInt spatial coordinates to Number
1 parent 42d3f20 commit 2a692a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/utils/data.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,13 @@ export const getVariableLevelInfo = async (
264264
['X', 'Y']
265265
.map((axis) => arrays[cfAxes[name][axis]])
266266
// TODO: handle chunked spatial coordinates
267-
.map((arr, i) => arr.get_chunk([0], { headers: headers[name] }))
267+
.map((arr, i) =>
268+
arr
269+
.get_chunk([0], { headers: headers[name] })
270+
.then((c) =>
271+
ndarray(Float32Array.from(c.data, Number), arr.chunk_shape)
272+
)
273+
)
268274
)
269275

270276
const axes = ['X', 'Y'].reduce((accum, key, i) => {

0 commit comments

Comments
 (0)