Dataset Viewer
Auto-converted to Parquet Duplicate
filename
stringlengths
15
15
split
stringclasses
1 value
cube_index
int64
0
62.5k
return_p95_bin
int32
0
109
upper_footprint_fraction
float32
0
1
mean_returns_per_footprint
float32
0
1.65k
0000/000001.npz
train
0
80
0.888021
85.816841
0000/000002.npz
train
1
43
0.869358
151.163635
0000/000003.npz
train
2
35
0.083333
2.231337
0000/000004.npz
train
3
1
0
6.042535
0000/000005.npz
train
4
64
0.997396
96.037758
0000/000006.npz
train
5
41
0.797309
195.892365
0000/000007.npz
train
6
30
0.317708
25.921007
0000/000008.npz
train
7
36
0.91059
107.027779
0000/000009.npz
train
8
46
0.893663
46.96788
0000/000010.npz
train
9
0
0
2.323785
0000/000011.npz
train
10
58
1
440.000427
0000/000012.npz
train
11
57
0.965278
66.930557
0000/000013.npz
train
12
75
0.993056
89.125
0000/000014.npz
train
13
50
0.657118
30.715279
0000/000015.npz
train
14
58
0.639323
64.526909
0000/000016.npz
train
15
1
0
5.422309
0000/000017.npz
train
16
36
0.752604
71.006943
0000/000018.npz
train
17
72
1
40.139324
0000/000019.npz
train
18
73
1
982.149719
0000/000020.npz
train
19
41
0.681424
27.723959
0000/000021.npz
train
20
40
0.802517
61.260418
0000/000022.npz
train
21
81
1
284.773865
0000/000023.npz
train
22
62
0.969618
287.34549
0000/000024.npz
train
23
43
0.723958
32.73698
0000/000025.npz
train
24
1
0
0.487847
0000/000026.npz
train
25
62
0.94401
76.103302
0000/000027.npz
train
26
24
0.90625
64.564667
0000/000028.npz
train
27
51
0.944444
87.691841
0000/000029.npz
train
28
35
0.676215
69.819878
0000/000030.npz
train
29
42
0.745226
295.069
0000/000031.npz
train
30
1
0
1.325955
0000/000032.npz
train
31
0
0
16.988716
0000/000033.npz
train
32
72
0.821181
341.870239
0000/000034.npz
train
33
41
0.913194
122.180122
0000/000035.npz
train
34
72
0.701389
69.556854
0000/000036.npz
train
35
80
0.999566
67.401474
0000/000037.npz
train
36
52
0.940538
78.407555
0000/000038.npz
train
37
58
0.846788
712.349854
0000/000039.npz
train
38
46
0.698351
49.962673
0000/000040.npz
train
39
62
0.933594
63.670574
0000/000041.npz
train
40
37
0.732205
34.423611
0000/000042.npz
train
41
101
0.986545
1,126.199707
0000/000043.npz
train
42
39
0.769097
119.401909
0000/000044.npz
train
43
36
0.914931
747.838562
0000/000045.npz
train
44
33
0.575087
46.025173
0000/000046.npz
train
45
78
0.999132
178.633682
0000/000047.npz
train
46
50
0.999566
121.980469
0000/000048.npz
train
47
70
1
81.834198
0000/000049.npz
train
48
86
1
412.995667
0000/000050.npz
train
49
63
0.980903
316.157562
0000/000051.npz
train
50
40
0.868924
179.947052
0000/000052.npz
train
51
11
0.597656
58.934464
0000/000053.npz
train
52
1
0
2.932292
0000/000054.npz
train
53
72
0.983507
183.448792
0000/000055.npz
train
54
62
0.796441
26.401909
0000/000056.npz
train
55
66
0.990885
68.627602
0000/000057.npz
train
56
79
0.938368
525.325073
0000/000058.npz
train
57
75
0.996962
58.474392
0000/000059.npz
train
58
52
0.860243
33.975693
0000/000060.npz
train
59
0
0
1.927083
0000/000061.npz
train
60
52
1
422.921448
0000/000062.npz
train
61
44
0.881944
128.703552
0000/000063.npz
train
62
74
0.914931
734.220459
0000/000064.npz
train
63
56
0.817708
46.53038
0000/000065.npz
train
64
13
0.707031
63.760418
0000/000066.npz
train
65
60
1
81.284721
0000/000067.npz
train
66
45
0.921441
180.339844
0000/000068.npz
train
67
85
0.999132
39.383682
0000/000069.npz
train
68
29
0.879774
40.426651
0000/000070.npz
train
69
69
1
195.377167
0000/000071.npz
train
70
70
1
73.241318
0000/000072.npz
train
71
64
0.948351
26.447048
0000/000073.npz
train
72
23
0.653646
57.129341
0000/000074.npz
train
73
91
0.99349
46.14019
0000/000075.npz
train
74
41
0.741753
36.718315
0000/000076.npz
train
75
83
1
276.365021
0000/000077.npz
train
76
30
0.970052
120.060333
0000/000078.npz
train
77
61
0.978733
60.956161
0000/000079.npz
train
78
33
0.867188
53.295139
0000/000080.npz
train
79
58
0.27908
11.653212
0000/000081.npz
train
80
43
0.977431
90.661461
0000/000082.npz
train
81
73
1
79.192276
0000/000083.npz
train
82
24
0.802951
24.945313
0000/000084.npz
train
83
17
0.937934
71.734375
0000/000085.npz
train
84
59
0.996962
38.710068
0000/000086.npz
train
85
1
0
32.947048
0000/000087.npz
train
86
78
0.986545
122.129341
0000/000088.npz
train
87
64
0.263021
22.217014
0000/000089.npz
train
88
43
0.795139
543.859802
0000/000090.npz
train
89
44
0.986111
29.17144
0000/000091.npz
train
90
59
1
82.705292
0000/000092.npz
train
91
52
0.789497
617.013428
0000/000093.npz
train
92
64
1
83.67057
0000/000094.npz
train
93
43
0.739583
82.400177
0000/000095.npz
train
94
81
1
166.760849
0000/000096.npz
train
95
51
0.772135
48.54644
0000/000097.npz
train
96
27
0.832465
47.109375
0000/000098.npz
train
97
58
0.851997
314.661469
0000/000099.npz
train
98
73
1
74.71962
0000/000100.npz
train
99
41
0.816406
111.331596
End of preview. Expand in Data Studio

HHDC HyperHeight LiDAR Cubes in Lance

Find forest tiles with similar photon-return distributions, then retrieve their original LiDAR cubes for denoising and super-resolution. The HyperHeight dataset derives 3D photon-count waveforms from the National Ecological Observatory Network’s airborne discrete-return LiDAR. Each canonical cube holds 128 vertical bins across 48 × 48 footprints. Original HHDC dataset · HHDC-Creator pipeline

Data and splits

Source split Lance path Cubes
train data/train.lance 62,535
validation data/validation.lance 13,400
test data/test.lance 13,401

The native tables preserve every original filename, the source row order, and all 294,912 float32 values per cube. Lance stores each cube as a compressed flat list of float32 values. Reshape in NumPy C order to [128, 48, 48] for the original height, y, and x axes. Column metadata records the tensor shape, axis order, and dtype. The split-relative cube_index is its row position in the native table.

The Hugging Face Dataset Viewer uses Parquet projections of all three splits. The projections contain filenames and return statistics. search/cubes.lance adds a 64-dimensional vector per tile, and source_files.lance gives pinned URLs, original hashes, and row ranges for the source Parquet shards. Browse the dataset · Release metadata

Search for similar cubes

The HHDC morphology PCA-64 model encodes the actual LiDAR cube. It combines four square-root-normalized distributions covering photon returns by height, footprint occupancy by height, highest-return bins per occupied footprint, and photon density per footprint. The model pools y and x positions to compare these distributions across tiles. It standardizes the 128 input features using the original training split, projects to 64 dimensions with non-whitened PCA fitted with scikit-learn 1.9.1, and L2-normalizes the vector. The float32 weights and encoder are versioned together as 4662fde67b87fc59fbc71455778a1bc503702b2c9faa15aa1c885688171ae7dd. Lance uses cosine distance. The code prints 1 − distance, with higher scores indicating closer matches. Model parameters · Model metadata

The example takes a genuine held-out test cube, computes its vector, and returns five neighbors from train. return_p95_bin is the first vertical bin containing 95% of the cumulative photon count, measured from the cube’s lower edge. As a morphology sanity check across 24 evenly spaced held-out test cubes, the five nearest training neighbors had a mean absolute p95 error of 1.45 bins. A deterministic random sample of training cubes averaged 28.74 bins.

python -m pip install 'pylance==14.0.3' numpy huggingface_hub
import lance
import numpy as np
from huggingface_hub import hf_hub_download


def morphology(cubes):
    """Return 128 morphology features and three physical summary statistics per cube."""
    array = np.asarray(cubes, dtype=np.float32).reshape(-1, 128, 48 * 48)
    count = len(array)
    profiles = array.sum(axis=2, dtype=np.float64)
    present = array > 0
    footprints = present.any(axis=1)
    top = 127 - present[:, ::-1, :].argmax(axis=1)
    density = array.sum(axis=1, dtype=np.float64)

    def distribution(matrix):
        total = matrix.sum(axis=1, keepdims=True)
        normalized = np.divide(matrix, total, out=np.zeros(matrix.shape, dtype=np.float64), where=total > 0)
        return np.sqrt(normalized)

    def histogram(values, valid):
        block = np.arange(count, dtype=np.int64)[:, None] * 16
        return np.bincount((values + block)[valid], minlength=count * 16).reshape(count, 16)

    return_profile = profiles.reshape(count, 64, 2).sum(axis=2)
    footprint_profile = present.reshape(count, 32, 4, -1).any(axis=2).sum(axis=2)
    top_histogram = histogram(top // 8, footprints)
    density_band = np.minimum(np.floor(np.log2(1 + density)).astype(np.int64), 15)
    density_histogram = histogram(density_band, np.ones_like(footprints))
    descriptor = np.concatenate([distribution(part) for part in
                                 (return_profile, footprint_profile, top_histogram, density_histogram)], axis=1)
    cumulative = profiles.cumsum(axis=1)
    total = cumulative[:, -1]
    p95_bin = (cumulative >= total[:, None] * 0.95).argmax(axis=1)
    upper_fraction = (footprints & (top >= 4)).mean(axis=1)
    mean_returns = density.mean(axis=1)
    return descriptor.astype(np.float32), np.column_stack((p95_bin, upper_fraction, mean_returns)).astype(np.float32)


def embed(descriptor, model):
    """Apply the saved training-only scaler and PCA and normalize for cosine search."""
    features = (descriptor - model['mean']) / model['scale']
    projected = (features - model['pca_mean']) @ model['components'].T
    norm = np.linalg.norm(projected, axis=-1, keepdims=True)
    return np.divide(projected, norm, out=np.zeros_like(projected), where=norm > 0).astype(np.float32)


repo = "lance-format/hhdc-lance"
root = f"hf://datasets/{repo}"
held_out = lance.dataset(root + "/data/test.lance")
sample = held_out.take([0], columns=["filename", "cube"])
cube = sample["cube"].combine_chunks().flatten().to_numpy().reshape(128, 48, 48)
print("Held-out test tile:", sample["filename"][0].as_py())
descriptor, _ = morphology(cube)
model_path = hf_hub_download(repo, "model/morphology-pca64.npz", repo_type="dataset")
with np.load(model_path, allow_pickle=False) as model:
    query = embed(descriptor, model)[0]

search = lance.dataset(root + "/search/cubes.lance")
hits = search.to_table(
    columns=["filename", "split", "cube_index", "return_p95_bin", "_distance"],
    filter="split = 'train'",
    prefilter=True,
    nearest={"column": "embedding", "q": query, "k": 5, "metric": "cosine"},
).to_pylist()
for row in hits:
    score = 1.0 - row["_distance"]
    print(f"{score:.4f}  {row['split']}/{row['filename']}  row={row['cube_index']}  p95 bin={row['return_p95_bin']}")

Read original NPZ archives

The source repository also contains one legacy NPZ file per canonical cube. legacy/cubes.lance exposes every original archive as a Blob v2 reference. The archive retains the source dtype and its extra coordinates, bin edges, footprint counts, and metadata. Pin the external base separately so the archive bytes resolve against the audited source revision. The example reads the exact legacy archive for the search query above.

import io

import lance
import numpy as np

source = "hf://datasets/anfera236/HHDC"
pin = "d0c7dc6a218f0e2c2afdfcb05afdb31b25d11263"
legacy = lance.dataset(
    "hf://datasets/lance-format/hhdc-lance/legacy/cubes.lance",
    base_store_params={source: {"hf_revision": pin}},
)
row, = legacy.to_table(
    columns=["source_path"], filter="split = 'test' AND cube_index = 0",
    with_row_id=True, limit=1,
).to_pylist()
with legacy.take_blobs("npz", ids=[row["_rowid"]])[0] as blob:
    with np.load(io.BytesIO(blob.read()), allow_pickle=False) as archive:
        original_cube = archive["cube"]
print(row["source_path"], original_cube.shape, original_cube.dtype)

Source, license, and attribution

Andres Ramirez-Jaime released the HHDC dataset under CC BY 4.0. This conversion uses source commit d0c7dc6a218f0e2c2afdfcb05afdb31b25d11263. The changes are the lossless Lance representation, source asset references, and a morphology search with Parquet previews. The original card and the publisher’s larger replication sample are included for reference. Cite HHDC and its original NEON data product, retaining survey site and month identifiers wherever available in source provenance. Pinned HHDC source · Original dataset card · Publisher’s replication cube · CC BY 4.0

  • National Ecological Observatory Network (NEON). Discrete return LiDAR point cloud (DP1.30003.001). NEON data product · NEON usage and citation policy
  • Ramirez-Jaime, A., Pena-Pena, K., Arce, G. R., Harding, D., Stephen, M., and MacKinnon, J. (2024). HyperHeight LiDAR Compressive Sampling and Machine Learning Reconstruction of Forested Landscapes. IEEE Transactions on Geoscience and Remote Sensing. Article
  • Ramirez-Jaime, A., Porras-Diaz, N., Arce, G. R., and Stephen, M. (2025). Super-Resolved 3-D Satellite Lidar Imaging of Earth via Generative Diffusion Models. IEEE Transactions on Geoscience and Remote Sensing. Article
Downloads last month
19