Commit 2cf36ad
feat: NLDAS-3 icechunk example (#577)
* docs: design spec for NLDAS icechunk example (#569)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: pin icechunk-js virtual chunk container config in NLDAS spec (#569)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: fix withRangeCoalescing usage in NLDAS spec (#569)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(nldas-icechunk): scaffold example package shell
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(nldas-icechunk): add virtual-chunk smoke spike
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(nldas-icechunk): hard-code grid metadata and store opener
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(nldas-icechunk): fetch tile data as r32float texture
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(nldas-icechunk): GPU colormap render pipeline
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(nldas-icechunk): render Tair via ZarrLayer over icechunk store
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(nldas-icechunk): add README
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(nldas-icechunk): add top-left intro panel
Adds a ControlPanel (intro-only, no controls) describing the example,
matching the other examples' info box. Re-adds Chakra deps for Text.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(nldas-icechunk): constrain map to the NLDAS-3 data extent
Set maxBounds to lon [-169, -52], lat [7, 72] so the map can't pan or
zoom out beyond where data exists.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix map bounds
* chore(nldas-icechunk): drop one-off smoke spike script
The grid constants are baked into metadata.ts; the spike was scaffolding.
Removes scripts/smoke.ts, its README section, the tsx devDep, and the
scripts tsconfig include.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* refactor(nldas-icechunk): address review feedback
- Drop the CPU nodata-replacement loop: the source uses a finite -9999
sentinel (no NaN), already discarded on the GPU by FilterNoDataVal.
- Remove redundant mipLevels: 1 (luma's default is already 1).
- Rename Tair -> descriptive surface-temperature naming in identifiers and
docstrings; keep the literal "/Tair" store path (the array's real name).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(nldas-icechunk): add colormap picker and rescale slider
Adds runtime controls to the intro panel (reusing the shared Field,
NativeSelect, ColormapPreview, and RangeSlider), matching the other
examples. A new colormap-choices list drives the picker; rescale min/max
become state with updateTriggers so cached tiles re-render on change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(nldas-icechunk): label rescale range in °C (with K in parens)
Slider still operates in Kelvin (the shader's unit); only the label
converts, e.g. "10°C (283 K) – 40°C (313 K)".
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(nldas-icechunk): use exact 0.01° grid transform
The store's lat/lon coords are float32; deriving the affine by subtracting
them injected precision noise (dLon ~0.00999451), drifting the east edge to
-52.064 (~7 km). Use the exact intended grid: origin (-169, 7), step 0.01°.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* source is http/1.1, not http/2
* fix(nldas-icechunk): skip v2 /repo probe (declare v1 format)
NLDAS-3 is a v1 icechunk repo. Without an explicit formatVersion,
Repository.open auto-detects by fetching the v2 "/repo" marker, which
404s (then falls back to v1). Passing formatVersion: "v1" skips that
probe. Verified: /repo requests drop 1 -> 0 per open (2 -> 0 with
StrictMode's dev double-mount) while the array still opens.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* concise
* refactor(nldas-icechunk): read fill value from the array's missing_value attr
Instead of hard-coding NODATA_VALUE = -9999, openSurfaceTemp now reads
(and validates) the array's `missing_value` attribute and returns it
alongside the array. The render pipeline gets the fill sentinel from the
store rather than a constant.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Update info box
* narrower rescale range
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a56f239 commit 2cf36ad
15 files changed
Lines changed: 944 additions & 0 deletions
File tree
- dev-docs/specs
- examples/nldas-icechunk
- src
- nldas
Lines changed: 200 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments