We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fc88eb commit d1f9644Copy full SHA for d1f9644
1 file changed
src/components/zarr/GetArray.ts
@@ -81,7 +81,7 @@ export async function GetArray(varOveride?: string) {
81
} else {
82
const raw = await fetcher.fetchChunk({ variable:targetVariable, rank, shape, chunkShape, x, y, z, xDimIndex, yDimIndex, zDimIndex, idx4D });
83
84
- const rawData = fillValue ? raw.data.map((v: number) => v === fillValue ? NaN : v) : raw.data; // Don't map if no fillvalue
+ const rawData = Number.isFinite(fillValue) ? raw.data.map((v: number) => v === fillValue ? NaN : v) : raw.data; // Don't map if no fillvalue
85
86
let [chunkF16, newScalingFactor] = ToFloat16(rawData, scalingFactor);
87
let thisShape = raw.shape;
0 commit comments