From 83160b6d49d934dee7e6c5da37f879a4a83a3a16 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Mon, 16 Jun 2025 14:26:53 -0400 Subject: [PATCH 1/2] Remove dummy data --- src/zarr/index.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/zarr/index.ts b/src/zarr/index.ts index a4c4492..93acbf6 100644 --- a/src/zarr/index.ts +++ b/src/zarr/index.ts @@ -32,8 +32,6 @@ export default class ZarrReader { private _scale!: { min: number; max: number }; private _dtype!: string; private _tileSize: number = 256; - // @TODO: hard coding for now - private _t: number = 0; private _zooms!: { min: number; max: number }; get scale() { @@ -118,13 +116,7 @@ export default class ZarrReader { }); if (arr.is("number")) { - const { data } = await arr.getChunk([this._t, y, x]); - // @TODO : remove once the data has actual timestamps - if (timestamp % 2 == 1) { - const tempArray = new Float32Array(this.tileSize * this.tileSize); - tempArray.fill(this.scale.min); - return tempArray; - } + const { data } = await arr.getChunk([timestamp, y, x]); return data; } else { return undefined; From 3056e08d9990cf154d7137ef7ed1b2a85a9e00f6 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Mon, 16 Jun 2025 14:33:55 -0400 Subject: [PATCH 2/2] Point the right data --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index fc7bcdd..1f0b4d0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -31,7 +31,7 @@ const MAP_STYLE = const BASE_URL = import.meta.env.VITE_ZARR_BASE_URL ?? window.location.origin; const ZARR_STORE_NAME = - "20020601090000-JPL-L4_GHRSST-SSTfnd-MUR-GLOB-v02.0-fv04.1_multiscales.zarr"; + "200206-JPL-L4_GHRSST-SSTfnd-MUR-GLOB-v02.0-fv04.1_multiscales.zarr"; const VAR_NAME = "analysed_sst";