Datasets:
The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: TypeError
Message: Couldn't cast array of type
struct<city: string, timestamps: list<item: timestamp[s]>, bands: list<item: string>, tile_size: list<item: int64>, grid_shape: list<item: int64>, full_shape: list<item: int64>, transforms: struct<2013-06-19T17:10:19Z: list<item: double>, 2013-07-05T17:10:46Z: list<item: double>, 2013-07-12T17:16:33Z: list<item: double>, 2013-07-28T17:16:33Z: list<item: double>, 2013-08-06T17:10:47Z: list<item: double>, 2013-08-29T17:16:36Z: list<item: double>, 2013-09-23T17:10:17Z: list<item: double>, 2013-09-23T17:10:41Z: list<item: double>, 2013-09-30T17:16:26Z: list<item: double>, 2013-10-25T17:10:08Z: list<item: double>, 2013-10-25T17:10:32Z: list<item: double>, 2013-11-01T17:16:18Z: list<item: double>, 2013-11-17T17:16:14Z: list<item: double>, 2013-11-26T17:09:59Z: list<item: double>, 2013-12-12T17:09:57Z: list<item: double>, 2014-01-04T17:15:55Z: list<item: double>, 2014-01-13T17:09:34Z: list<item: double>, 2014-01-13T17:09:58Z: list<item: double>, 2014-01-20T17:15:42Z: list<item: double>, 2014-01-29T17:09:52Z: list<item: double>, 2014-02-14T17:09:14Z: list<item: double>, 2014-02-14T17:09:38Z: list<item: double>, 2014-03-09T17:15:07Z: list<item: double>, 2014-03-18T17:08:50Z: list<item: double>, 2014-03-18T17:09:14Z: list<item: double>, 2014-04-03T17:08:34Z: list<item: double>, 2014-05-05T17:08:01Z: list<item: double>, 2014-05-05T17:08:25Z: list<item: double>, 2014-06-06T17:08:02Z: list<item: double>, 2014-06-29T17:14:18Z: list<item: double>, 2014-07-08T17:08:13Z: list<item: double>, 2
...
7:13:39Z: list<item: double>, 2024-07-02T17:13:47Z: list<item: double>, 2024-07-11T17:08:11Z: list<item: double>, 2024-07-18T17:14:01Z: list<item: double>, 2024-08-12T17:08:22Z: list<item: double>, 2024-08-19T17:14:15Z: list<item: double>, 2024-08-20T17:08:32Z: list<item: double>, 2024-09-13T17:08:37Z: list<item: double>, 2024-09-20T17:14:21Z: list<item: double>, 2024-09-28T17:14:22Z: list<item: double>, 2024-09-29T17:08:41Z: list<item: double>, 2024-10-06T17:14:29Z: list<item: double>, 2024-10-14T17:14:36Z: list<item: double>, 2024-10-15T17:08:49Z: list<item: double>, 2024-10-22T17:14:43Z: list<item: double>, 2024-10-23T17:08:51Z: list<item: double>, 2024-11-15T17:14:33Z: list<item: double>, 2024-11-23T17:14:49Z: list<item: double>, 2024-12-01T17:14:45Z: list<item: double>, 2024-12-18T17:08:56Z: list<item: double>, 2025-01-11T17:08:52Z: list<item: double>, 2025-01-18T17:14:37Z: list<item: double>, 2025-01-19T17:08:59Z: list<item: double>, 2025-02-03T17:14:38Z: list<item: double>, 2025-02-20T17:08:57Z: list<item: double>, 2025-02-27T17:14:36Z: list<item: double>, 2025-02-28T17:08:37Z: list<item: double>, 2025-03-07T17:14:25Z: list<item: double>, 2025-03-16T17:08:32Z: list<item: double>, 2025-03-24T17:08:39Z: list<item: double>, 2025-03-31T17:14:23Z: list<item: double>, 2025-04-08T17:14:10Z: list<item: double>, 2025-04-09T17:08:39Z: list<item: double>, 2025-04-16T17:14:25Z: list<item: double>, 2025-05-11T17:07:59Z: list<item: double>, 2025-06-28T17:08:29Z: list<item: double>>>
to
{}
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
return get_rows(
^^^^^^^^^
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
for key, pa_table in self._iter_arrow():
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 299, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2255, in cast_table_to_schema
cast_array_to_feature(
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1804, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2101, in cast_array_to_feature
raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
TypeError: Couldn't cast array of type
struct<city: string, timestamps: list<item: timestamp[s]>, bands: list<item: string>, tile_size: list<item: int64>, grid_shape: list<item: int64>, full_shape: list<item: int64>, transforms: struct<2013-06-19T17:10:19Z: list<item: double>, 2013-07-05T17:10:46Z: list<item: double>, 2013-07-12T17:16:33Z: list<item: double>, 2013-07-28T17:16:33Z: list<item: double>, 2013-08-06T17:10:47Z: list<item: double>, 2013-08-29T17:16:36Z: list<item: double>, 2013-09-23T17:10:17Z: list<item: double>, 2013-09-23T17:10:41Z: list<item: double>, 2013-09-30T17:16:26Z: list<item: double>, 2013-10-25T17:10:08Z: list<item: double>, 2013-10-25T17:10:32Z: list<item: double>, 2013-11-01T17:16:18Z: list<item: double>, 2013-11-17T17:16:14Z: list<item: double>, 2013-11-26T17:09:59Z: list<item: double>, 2013-12-12T17:09:57Z: list<item: double>, 2014-01-04T17:15:55Z: list<item: double>, 2014-01-13T17:09:34Z: list<item: double>, 2014-01-13T17:09:58Z: list<item: double>, 2014-01-20T17:15:42Z: list<item: double>, 2014-01-29T17:09:52Z: list<item: double>, 2014-02-14T17:09:14Z: list<item: double>, 2014-02-14T17:09:38Z: list<item: double>, 2014-03-09T17:15:07Z: list<item: double>, 2014-03-18T17:08:50Z: list<item: double>, 2014-03-18T17:09:14Z: list<item: double>, 2014-04-03T17:08:34Z: list<item: double>, 2014-05-05T17:08:01Z: list<item: double>, 2014-05-05T17:08:25Z: list<item: double>, 2014-06-06T17:08:02Z: list<item: double>, 2014-06-29T17:14:18Z: list<item: double>, 2014-07-08T17:08:13Z: list<item: double>, 2
...
7:13:39Z: list<item: double>, 2024-07-02T17:13:47Z: list<item: double>, 2024-07-11T17:08:11Z: list<item: double>, 2024-07-18T17:14:01Z: list<item: double>, 2024-08-12T17:08:22Z: list<item: double>, 2024-08-19T17:14:15Z: list<item: double>, 2024-08-20T17:08:32Z: list<item: double>, 2024-09-13T17:08:37Z: list<item: double>, 2024-09-20T17:14:21Z: list<item: double>, 2024-09-28T17:14:22Z: list<item: double>, 2024-09-29T17:08:41Z: list<item: double>, 2024-10-06T17:14:29Z: list<item: double>, 2024-10-14T17:14:36Z: list<item: double>, 2024-10-15T17:08:49Z: list<item: double>, 2024-10-22T17:14:43Z: list<item: double>, 2024-10-23T17:08:51Z: list<item: double>, 2024-11-15T17:14:33Z: list<item: double>, 2024-11-23T17:14:49Z: list<item: double>, 2024-12-01T17:14:45Z: list<item: double>, 2024-12-18T17:08:56Z: list<item: double>, 2025-01-11T17:08:52Z: list<item: double>, 2025-01-18T17:14:37Z: list<item: double>, 2025-01-19T17:08:59Z: list<item: double>, 2025-02-03T17:14:38Z: list<item: double>, 2025-02-20T17:08:57Z: list<item: double>, 2025-02-27T17:14:36Z: list<item: double>, 2025-02-28T17:08:37Z: list<item: double>, 2025-03-07T17:14:25Z: list<item: double>, 2025-03-16T17:08:32Z: list<item: double>, 2025-03-24T17:08:39Z: list<item: double>, 2025-03-31T17:14:23Z: list<item: double>, 2025-04-08T17:14:10Z: list<item: double>, 2025-04-09T17:08:39Z: list<item: double>, 2025-04-16T17:14:25Z: list<item: double>, 2025-05-11T17:07:59Z: list<item: double>, 2025-06-28T17:08:29Z: list<item: double>>>
to
{}Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
HeatCast
Per-city Landsat-derived land-surface-temperature time-series cubes for 124 U.S. cities, stored as Zarr v3 with sharding. Repacked from the original tiled-GeoTIFF release of JesseGuerreroML/US-UrbanLST so the whole dataset is 7,436 files instead of 14.5M, while staying fully cloud-readable.
Layout
isaaccorley/HeatCast/
├── <City_ST>.zarr/ # one Zarr v3 store per city (124 total)
│ ├── zarr.json
│ ├── LST/ # 3-D array (T, Y, X) int16
│ ├── albedo/
│ ├── blue/ green/ red/
│ ├── ndvi/ ndwi/ ndbi/
│ └── ...
Each city store carries:
| attr | description |
|---|---|
city |
city name |
timestamps |
ISO-8601 list, length T (one per Landsat acquisition) |
bands |
list of band names present in the store |
tile_size |
[h, w] of one source tile |
grid_shape |
[rows, cols] of the per-city tile grid |
full_shape |
[H, W] of the assembled raster |
transforms |
{timestamp: affine} for the sample band |
Per-band arrays use chunk = one source tile (1 × tile_h × tile_w), packed into shards covering a 4 × 4 tile region across the full time axis. Compression is Blosc(Zstd-9, byte-shuffle). Missing tiles encode as the per-band fill value (0 for ints, NaN for floats — same as the upstream GeoTIFFs).
Quick start — stream from the Hub
No clone, no caching, pure HTTPS range-reads:
pip install "zarr>=3" obstore pandas matplotlib seaborn
import os
from datetime import timedelta
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import seaborn as sns
import obstore
import zarr
from zarr.storage import ObjectStore
sns.set_theme(context="notebook", style="whitegrid", palette="deep")
REPO = "isaaccorley/HeatCast"
CITY = "Hollywood_FL"
BASE = f"https://huggingface.co/datasets/{REPO}/resolve/main"
# Use an HF token to bypass anonymous IP rate limits on shared networks.
headers = {}
token = os.environ.get("HF_TOKEN")
if token:
headers["Authorization"] = f"Bearer {token}"
http = obstore.store.HTTPStore.from_url(
f"{BASE}/{CITY}.zarr",
client_options={"default_headers": headers} if headers else None,
retry_config={
"max_retries": 2,
"backoff": {"init_backoff": timedelta(seconds=2),
"max_backoff": timedelta(seconds=10), "base": 2},
"retry_timeout": timedelta(seconds=30),
},
)
grp = zarr.open_group(ObjectStore(http, read_only=True), mode="r")
timestamps = list(grp.attrs["timestamps"])
print(grp.attrs["city"], "T=", len(timestamps), "bands=", grp.attrs["bands"])
Tip — read whole cubes, not per-timestamp
Per-pixel and per-timestamp slicing each issues several range-reads. HF rate-limits at 5,000 resolve/ requests per 5 minutes for free accounts, so for any analysis touching most timestamps just pull the whole array in one sweep:
lst = grp["LST"]
raw = lst[:] # one sweep across all shards
mask = (raw == lst.fill_value) | (raw <= 0) # filter both fill and OOS padding
cube = np.where(mask, np.nan, raw.astype(np.float32))
# Drop whole scenes whose 5th-percentile LST is implausibly low. A handful of
# upstream scenes were stored with the wrong scaling factor (e.g. Hollywood_FL
# 2022-02-09 has scene-wide values of 1–41 vs neighbouring dates near 70–125).
LST_FLOOR = 50
frame_p5 = np.nanpercentile(cube.reshape(cube.shape[0], -1), 5, axis=1)
cube[frame_p5 < LST_FLOOR] = np.nan
print(cube.shape, "valid_pct=", 100 * (~np.isnan(cube)).mean())
Data-quality caveat. A small number of source scenes carry an anomalous per-scene scaling factor — their entire grid is off by roughly 10× compared to neighbouring dates. The repack is byte-exact with the upstream GeoTIFFs, so the artifact is preserved here. The
LST_FLOORfilter above is the simplest defensible mask; tune the threshold per city / per unit if you need something stricter.
Example 1 — center-pixel LST time series
dt = pd.to_datetime(timestamps, utc=True)
py, px = cube.shape[1] // 2, cube.shape[2] // 2
ts = pd.Series(cube[:, py, px], index=dt).dropna()
fig, ax = plt.subplots(figsize=(11, 4.2))
sns.lineplot(x=ts.index, y=ts.values, ax=ax, marker="o", markersize=5,
linewidth=1.2, color=sns.color_palette("rocket", 6)[2])
ax.set(title=f"{CITY} — LST at pixel ({py}, {px})", xlabel="date", ylabel="LST")
ax.xaxis.set_major_locator(mdates.YearLocator())
ax.xaxis.set_major_formatter(mdates.DateFormatter("%Y"))
sns.despine(ax=ax); fig.autofmt_xdate(); fig.tight_layout()
Example 2 — best-coverage scene as a heat map
valid_t = (~np.isnan(cube)).reshape(cube.shape[0], -1).sum(axis=1).argmax()
frame = cube[valid_t]
vmin, vmax = np.nanpercentile(frame, [2, 98])
fig, ax = plt.subplots(figsize=(8.5, 6.5))
im = ax.imshow(frame, cmap="rocket_r", vmin=vmin, vmax=vmax, interpolation="nearest")
fig.colorbar(im, ax=ax, shrink=0.85, pad=0.02).set_label("LST", rotation=270, labelpad=15)
ax.set(title=f"{CITY} — LST on {dt[valid_t].date()}", xlabel="x (px)", ylabel="y (px)")
fig.tight_layout()
Example 3 — city-mean LST trajectory with seasonal hue
means = np.nanmean(cube.reshape(cube.shape[0], -1), axis=1)
ok = ~np.isnan(means)
df = pd.DataFrame({"date": dt[ok], "LST": means[ok]})
df["month"] = df["date"].dt.month
fig, ax = plt.subplots(figsize=(11, 4.2))
sns.scatterplot(data=df, x="date", y="LST", hue="month", palette="rocket",
s=45, edgecolor="white", linewidth=0.5, legend=False, ax=ax)
trend = df.set_index("date")["LST"].resample("3MS").mean().dropna()
ax.plot(trend.index, trend.values, color="#444", lw=1.2, alpha=0.7,
label="3-month rolling mean")
ax.legend(loc="upper left", frameon=True)
ax.set(title=f"{CITY} — city-mean LST (colored by month)",
xlabel="date", ylabel="mean LST")
ax.xaxis.set_major_locator(mdates.YearLocator())
ax.xaxis.set_major_formatter(mdates.DateFormatter("%Y"))
sns.despine(ax=ax); fig.autofmt_xdate(); fig.tight_layout()
File-count comparison
| layout | files | total size |
|---|---|---|
| upstream tiled GeoTIFFs (inside 7z + inner zip) | 14,490,624 | 269 GB |
| HeatCast Zarr v3 | 7,436 | 170 GB |
Provenance
- Source: JesseGuerreroML/US-UrbanLST — Landsat-derived LST + reflectance/index tiles for 124 U.S. cities.
- Repack pipeline: 7z → zip → per-city tile inventory → Zarr v3 with shard-aligned writes. Round-trip checked bit-exact against source GeoTIFFs (
mean-abs-diff = 0per band on validation samples). - Compression: Blosc-Zstd-9 with byte shuffle.
License
MIT. Cite the upstream dataset if you publish results derived from it.
- Downloads last month
- 24