tsmithv11 commited on
Commit
c6a87d9
·
verified ·
1 Parent(s): 528e55c

Stage HHDC manifests, morphology encoder, preview, legacy references and dataset card

Browse files
Files changed (34) hide show
  1. .gitattributes +3 -0
  2. README.md +159 -0
  3. data/test.lance/_transactions/0-00c11381-3b32-479d-846d-4cd6d43d5fdb.txn +0 -0
  4. data/test.lance/_versions/18446744073709551614.manifest +0 -0
  5. data/test.lance/_versions/latest_version_hint.json +1 -0
  6. data/train.lance/_transactions/0-0b6864f6-7bcb-49a2-9551-bf143e6d3bb5.txn +0 -0
  7. data/train.lance/_versions/18446744073709551614.manifest +0 -0
  8. data/train.lance/_versions/latest_version_hint.json +1 -0
  9. data/validation.lance/_transactions/0-58b853d8-677b-4712-bbfb-a6311c13634a.txn +0 -0
  10. data/validation.lance/_versions/18446744073709551614.manifest +0 -0
  11. data/validation.lance/_versions/latest_version_hint.json +1 -0
  12. legacy/cubes.lance/_transactions/0-e0731d71-c97b-4b71-b6d6-cb4836c443fd.txn +0 -0
  13. legacy/cubes.lance/_versions/18446744073709551614.manifest +0 -0
  14. legacy/cubes.lance/_versions/latest_version_hint.json +1 -0
  15. legacy/cubes.lance/data/01110100000100010001110079a5da4fccb5939435c3e6751d.lance +3 -0
  16. model/encoder.py +49 -0
  17. model/info.json +18 -0
  18. model/morphology-pca64.npz +3 -0
  19. preview/test.parquet +3 -0
  20. preview/train.parquet +3 -0
  21. preview/validation.parquet +3 -0
  22. release.json +45 -0
  23. search/cubes.lance/_transactions/0-ddffec99-96c7-4588-9f92-5328aeacc56d.txn +0 -0
  24. search/cubes.lance/_versions/18446744073709551614.manifest +0 -0
  25. search/cubes.lance/_versions/latest_version_hint.json +1 -0
  26. search/cubes.lance/data/10001101011100000110110067e4e548889176fa1a8b31aa4c.lance +3 -0
  27. source/HHDC-README.md +188 -0
  28. source/SampleCube/gt2.npz +3 -0
  29. source/images/AllPercentiles.png +3 -0
  30. source/images/Explanation.png +3 -0
  31. source_files.lance/_transactions/0-945f4ca0-0a4c-4c47-b904-2575a6f69b91.txn +0 -0
  32. source_files.lance/_versions/18446744073709551614.manifest +0 -0
  33. source_files.lance/_versions/latest_version_hint.json +1 -0
  34. source_files.lance/data/101111011011110111110110c1e3754849b0fbb1e2fff86d32.lance +3 -0
.gitattributes CHANGED
@@ -114,3 +114,6 @@ data/test.lance/data/000011101001000111100000ffad1445e195fc4439e2848cc6.lance fi
114
  data/test.lance/data/000110101011011000011001f6131048cfac778f3905fd8f6b.lance filter=lfs diff=lfs merge=lfs -text
115
  data/test.lance/data/1001001011011111100010008d9ef6422ca80e20341e9338c1.lance filter=lfs diff=lfs merge=lfs -text
116
  data/test.lance/data/1000010100000010111010003a05dc45a4992ea7fd6a534692.lance filter=lfs diff=lfs merge=lfs -text
 
 
 
 
114
  data/test.lance/data/000110101011011000011001f6131048cfac778f3905fd8f6b.lance filter=lfs diff=lfs merge=lfs -text
115
  data/test.lance/data/1001001011011111100010008d9ef6422ca80e20341e9338c1.lance filter=lfs diff=lfs merge=lfs -text
116
  data/test.lance/data/1000010100000010111010003a05dc45a4992ea7fd6a534692.lance filter=lfs diff=lfs merge=lfs -text
117
+ legacy/cubes.lance/data/01110100000100010001110079a5da4fccb5939435c3e6751d.lance filter=lfs diff=lfs merge=lfs -text
118
+ search/cubes.lance/data/10001101011100000110110067e4e548889176fa1a8b31aa4c.lance filter=lfs diff=lfs merge=lfs -text
119
+ source_files.lance/data/101111011011110111110110c1e3754849b0fbb1e2fff86d32.lance filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: HHDC HyperHeight LiDAR Cubes in Lance
3
+ license: cc-by-4.0
4
+ task_categories:
5
+ - image-to-image
6
+ language:
7
+ - en
8
+ tags:
9
+ - lance
10
+ - lidar
11
+ - geospatial
12
+ - remote-sensing
13
+ - neon
14
+ - canopy
15
+ - information-retrieval
16
+ size_categories:
17
+ - 10K<n<100K
18
+ configs:
19
+ - config_name: cubes
20
+ default: true
21
+ data_files:
22
+ - split: train
23
+ path: preview/train.parquet
24
+ - split: validation
25
+ path: preview/validation.parquet
26
+ - split: test
27
+ path: preview/test.parquet
28
+ ---
29
+
30
+ # HHDC HyperHeight LiDAR Cubes in Lance
31
+
32
+ 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](https://huggingface.co/datasets/anfera236/HHDC) · [HHDC-Creator pipeline](https://github.com/Anfera/HHDC-Creator)
33
+
34
+ ## Data and splits
35
+
36
+ | Source split | Lance path | Cubes |
37
+ |---|---|---:|
38
+ | `train` | `data/train.lance` | 62,535 |
39
+ | `validation` | `data/validation.lance` | 13,400 |
40
+ | `test` | `data/test.lance` | 13,401 |
41
+
42
+ 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.
43
+
44
+ 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](https://huggingface.co/datasets/lance-format/hhdc-lance/viewer/cubes/train) · [Release metadata](release.json)
45
+
46
+ ## Search for similar cubes
47
+
48
+ 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/morphology-pca64.npz) · [Model metadata](model/info.json)
49
+
50
+ 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.
51
+
52
+ ```bash
53
+ python -m pip install 'pylance==14.0.3' numpy huggingface_hub
54
+ ```
55
+
56
+ ```python
57
+ import lance
58
+ import numpy as np
59
+ from huggingface_hub import hf_hub_download
60
+
61
+
62
+ def morphology(cubes):
63
+ """Return 128 morphology features and three physical summary statistics per cube."""
64
+ array = np.asarray(cubes, dtype=np.float32).reshape(-1, 128, 48 * 48)
65
+ count = len(array)
66
+ profiles = array.sum(axis=2, dtype=np.float64)
67
+ present = array > 0
68
+ footprints = present.any(axis=1)
69
+ top = 127 - present[:, ::-1, :].argmax(axis=1)
70
+ density = array.sum(axis=1, dtype=np.float64)
71
+
72
+ def distribution(matrix):
73
+ total = matrix.sum(axis=1, keepdims=True)
74
+ normalized = np.divide(matrix, total, out=np.zeros(matrix.shape, dtype=np.float64), where=total > 0)
75
+ return np.sqrt(normalized)
76
+
77
+ def histogram(values, valid):
78
+ block = np.arange(count, dtype=np.int64)[:, None] * 16
79
+ return np.bincount((values + block)[valid], minlength=count * 16).reshape(count, 16)
80
+
81
+ return_profile = profiles.reshape(count, 64, 2).sum(axis=2)
82
+ footprint_profile = present.reshape(count, 32, 4, -1).any(axis=2).sum(axis=2)
83
+ top_histogram = histogram(top // 8, footprints)
84
+ density_band = np.minimum(np.floor(np.log2(1 + density)).astype(np.int64), 15)
85
+ density_histogram = histogram(density_band, np.ones_like(footprints))
86
+ descriptor = np.concatenate([distribution(part) for part in
87
+ (return_profile, footprint_profile, top_histogram, density_histogram)], axis=1)
88
+ cumulative = profiles.cumsum(axis=1)
89
+ total = cumulative[:, -1]
90
+ p95_bin = (cumulative >= total[:, None] * 0.95).argmax(axis=1)
91
+ upper_fraction = (footprints & (top >= 4)).mean(axis=1)
92
+ mean_returns = density.mean(axis=1)
93
+ return descriptor.astype(np.float32), np.column_stack((p95_bin, upper_fraction, mean_returns)).astype(np.float32)
94
+
95
+
96
+ def embed(descriptor, model):
97
+ """Apply the saved training-only scaler and PCA and normalize for cosine search."""
98
+ features = (descriptor - model['mean']) / model['scale']
99
+ projected = (features - model['pca_mean']) @ model['components'].T
100
+ norm = np.linalg.norm(projected, axis=-1, keepdims=True)
101
+ return np.divide(projected, norm, out=np.zeros_like(projected), where=norm > 0).astype(np.float32)
102
+
103
+
104
+ repo = "lance-format/hhdc-lance"
105
+ root = f"hf://datasets/{repo}"
106
+ held_out = lance.dataset(root + "/data/test.lance")
107
+ sample = held_out.take([0], columns=["filename", "cube"])
108
+ cube = sample["cube"].combine_chunks().flatten().to_numpy().reshape(128, 48, 48)
109
+ print("Held-out test tile:", sample["filename"][0].as_py())
110
+ descriptor, _ = morphology(cube)
111
+ model_path = hf_hub_download(repo, "model/morphology-pca64.npz", repo_type="dataset")
112
+ with np.load(model_path, allow_pickle=False) as model:
113
+ query = embed(descriptor, model)[0]
114
+
115
+ search = lance.dataset(root + "/search/cubes.lance")
116
+ hits = search.to_table(
117
+ columns=["filename", "split", "cube_index", "return_p95_bin", "_distance"],
118
+ filter="split = 'train'",
119
+ prefilter=True,
120
+ nearest={"column": "embedding", "q": query, "k": 5, "metric": "cosine"},
121
+ ).to_pylist()
122
+ for row in hits:
123
+ score = 1.0 - row["_distance"]
124
+ print(f"{score:.4f} {row['split']}/{row['filename']} row={row['cube_index']} p95 bin={row['return_p95_bin']}")
125
+ ```
126
+
127
+ ## Read original NPZ archives
128
+
129
+ 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.
130
+
131
+ ```python
132
+ import io
133
+
134
+ import lance
135
+ import numpy as np
136
+
137
+ source = "hf://datasets/anfera236/HHDC"
138
+ pin = "d0c7dc6a218f0e2c2afdfcb05afdb31b25d11263"
139
+ legacy = lance.dataset(
140
+ "hf://datasets/lance-format/hhdc-lance/legacy/cubes.lance",
141
+ base_store_params={source: {"hf_revision": pin}},
142
+ )
143
+ row, = legacy.to_table(
144
+ columns=["source_path"], filter="split = 'test' AND cube_index = 0",
145
+ with_row_id=True, limit=1,
146
+ ).to_pylist()
147
+ with legacy.take_blobs("npz", ids=[row["_rowid"]])[0] as blob:
148
+ with np.load(io.BytesIO(blob.read()), allow_pickle=False) as archive:
149
+ original_cube = archive["cube"]
150
+ print(row["source_path"], original_cube.shape, original_cube.dtype)
151
+ ```
152
+
153
+ ## Source, license, and attribution
154
+
155
+ 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](https://huggingface.co/datasets/anfera236/HHDC/tree/d0c7dc6a218f0e2c2afdfcb05afdb31b25d11263) · [Original dataset card](source/HHDC-README.md) · [Publisher’s replication cube](source/SampleCube/gt2.npz) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
156
+
157
+ - National Ecological Observatory Network (NEON). *Discrete return LiDAR point cloud* (DP1.30003.001). [NEON data product](https://data.neonscience.org/data-products/DP1.30003.001) · [NEON usage and citation policy](https://www.neonscience.org/usage-policies)
158
+ - 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](https://doi.org/10.1109/TGRS.2024.3356389)
159
+ - 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](https://doi.org/10.1109/TGRS.2025.3543670)
data/test.lance/_transactions/0-00c11381-3b32-479d-846d-4cd6d43d5fdb.txn ADDED
Binary file (1.44 kB). View file
 
data/test.lance/_versions/18446744073709551614.manifest ADDED
Binary file (2.98 kB). View file
 
data/test.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
data/train.lance/_transactions/0-0b6864f6-7bcb-49a2-9551-bf143e6d3bb5.txn ADDED
Binary file (3.94 kB). View file
 
data/train.lance/_versions/18446744073709551614.manifest ADDED
Binary file (8.03 kB). View file
 
data/train.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
data/validation.lance/_transactions/0-58b853d8-677b-4712-bbfb-a6311c13634a.txn ADDED
Binary file (1.44 kB). View file
 
data/validation.lance/_versions/18446744073709551614.manifest ADDED
Binary file (2.98 kB). View file
 
data/validation.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
legacy/cubes.lance/_transactions/0-e0731d71-c97b-4b71-b6d6-cb4836c443fd.txn ADDED
Binary file (720 Bytes). View file
 
legacy/cubes.lance/_versions/18446744073709551614.manifest ADDED
Binary file (1.52 kB). View file
 
legacy/cubes.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
legacy/cubes.lance/data/01110100000100010001110079a5da4fccb5939435c3e6751d.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a2c71776050bf71b309c217af80b2f4c827b6209f7ede15b3be1abbbc8a6b7a
3
+ size 13117446
model/encoder.py ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """An auditable morphology encoder for HHDC photon-return cubes."""
2
+
3
+ import numpy as np
4
+
5
+
6
+ SHAPE = (128, 48, 48)
7
+ DIMENSIONS = 64
8
+
9
+
10
+ def morphology(cubes):
11
+ """Return 128 morphology features and three physical summary statistics per cube."""
12
+ array = np.asarray(cubes, dtype=np.float32).reshape(-1, 128, 48 * 48)
13
+ count = len(array)
14
+ profiles = array.sum(axis=2, dtype=np.float64)
15
+ present = array > 0
16
+ footprints = present.any(axis=1)
17
+ top = 127 - present[:, ::-1, :].argmax(axis=1)
18
+ density = array.sum(axis=1, dtype=np.float64)
19
+
20
+ def distribution(matrix):
21
+ total = matrix.sum(axis=1, keepdims=True)
22
+ normalized = np.divide(matrix, total, out=np.zeros(matrix.shape, dtype=np.float64), where=total > 0)
23
+ return np.sqrt(normalized)
24
+
25
+ def histogram(values, valid):
26
+ block = np.arange(count, dtype=np.int64)[:, None] * 16
27
+ return np.bincount((values + block)[valid], minlength=count * 16).reshape(count, 16)
28
+
29
+ return_profile = profiles.reshape(count, 64, 2).sum(axis=2)
30
+ footprint_profile = present.reshape(count, 32, 4, -1).any(axis=2).sum(axis=2)
31
+ top_histogram = histogram(top // 8, footprints)
32
+ density_band = np.minimum(np.floor(np.log2(1 + density)).astype(np.int64), 15)
33
+ density_histogram = histogram(density_band, np.ones_like(footprints))
34
+ descriptor = np.concatenate([distribution(part) for part in
35
+ (return_profile, footprint_profile, top_histogram, density_histogram)], axis=1)
36
+ cumulative = profiles.cumsum(axis=1)
37
+ total = cumulative[:, -1]
38
+ p95_bin = (cumulative >= total[:, None] * 0.95).argmax(axis=1)
39
+ upper_fraction = (footprints & (top >= 4)).mean(axis=1)
40
+ mean_returns = density.mean(axis=1)
41
+ return descriptor.astype(np.float32), np.column_stack((p95_bin, upper_fraction, mean_returns)).astype(np.float32)
42
+
43
+
44
+ def embed(descriptor, model):
45
+ """Apply the saved training-only scaler and PCA and normalize for cosine search."""
46
+ features = (descriptor - model['mean']) / model['scale']
47
+ projected = (features - model['pca_mean']) @ model['components'].T
48
+ norm = np.linalg.norm(projected, axis=-1, keepdims=True)
49
+ return np.divide(projected, norm, out=np.zeros_like(projected), where=norm > 0).astype(np.float32)
model/info.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cosine_similarity": "1.0 - _distance",
3
+ "dimensions": 64,
4
+ "encoder_sha256": "b98ae6e164b36ef1e8bb8902f6c1b708a015676600846ddbfdd72a2f03342906",
5
+ "fit": {
6
+ "explained_variance_ratio": 0.9971382769817919,
7
+ "kernel": "scikit-learn",
8
+ "pca_solver": "covariance_eigh",
9
+ "rows": 62535,
10
+ "sklearn_version": "1.9.1",
11
+ "split": "train",
12
+ "standard_deviation_floor": 0.02
13
+ },
14
+ "input_dimensions": 128,
15
+ "name": "HHDC morphology PCA-64",
16
+ "revision": "4662fde67b87fc59fbc71455778a1bc503702b2c9faa15aa1c885688171ae7dd",
17
+ "weights_sha256": "d3e4cd8f52f4befb8ddf43c76ecc70cae55944cf761ce033d109de3393351f00"
18
+ }
model/morphology-pca64.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3e4cd8f52f4befb8ddf43c76ecc70cae55944cf761ce033d109de3393351f00
3
+ size 35308
preview/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3579629c799df9504ff2d808d5e0e68ac459d7fdbabe3b725cbe994cecdd794b
3
+ size 170854
preview/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0412d558e673e86ac0ff21b1d2a253f8c0e6534a8a34e1ef846a95ca1c7ac0a
3
+ size 775141
preview/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76b4eb9ab98afcc161afbf46948a46bea288525d1f5aa0413fa1e4e25088d073
3
+ size 171286
release.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "legacy_bytes": 4110113767,
3
+ "legacy_npz": 89336,
4
+ "model": {
5
+ "cosine_similarity": "1.0 - _distance",
6
+ "dimensions": 64,
7
+ "encoder_sha256": "b98ae6e164b36ef1e8bb8902f6c1b708a015676600846ddbfdd72a2f03342906",
8
+ "fit": {
9
+ "explained_variance_ratio": 0.9971382769817919,
10
+ "kernel": "scikit-learn",
11
+ "pca_solver": "covariance_eigh",
12
+ "rows": 62535,
13
+ "sklearn_version": "1.9.1",
14
+ "split": "train",
15
+ "standard_deviation_floor": 0.02
16
+ },
17
+ "input_dimensions": 128,
18
+ "name": "HHDC morphology PCA-64",
19
+ "revision": "4662fde67b87fc59fbc71455778a1bc503702b2c9faa15aa1c885688171ae7dd",
20
+ "weights_sha256": "d3e4cd8f52f4befb8ddf43c76ecc70cae55944cf761ce033d109de3393351f00"
21
+ },
22
+ "native": {
23
+ "test": [
24
+ 9,
25
+ 943957595
26
+ ],
27
+ "train": [
28
+ 38,
29
+ 4424021927
30
+ ],
31
+ "validation": [
32
+ 9,
33
+ 949434842
34
+ ]
35
+ },
36
+ "source_bytes": 8758614043,
37
+ "source_files": 89561,
38
+ "source_repo": "anfera236/HHDC",
39
+ "source_revision": "d0c7dc6a218f0e2c2afdfcb05afdb31b25d11263",
40
+ "splits": {
41
+ "test": 13401,
42
+ "train": 62535,
43
+ "validation": 13400
44
+ }
45
+ }
search/cubes.lance/_transactions/0-ddffec99-96c7-4588-9f92-5328aeacc56d.txn ADDED
Binary file (446 Bytes). View file
 
search/cubes.lance/_versions/18446744073709551614.manifest ADDED
Binary file (970 Bytes). View file
 
search/cubes.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
search/cubes.lance/data/10001101011100000110110067e4e548889176fa1a8b31aa4c.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ccbde4def10a9c4af1da3ce568636acd6839acb087bdcec756b0b0ff48a67dd
3
+ size 24683616
source/HHDC-README.md ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ pretty_name: Hyperheight Data Cube Denoising and Super-Resolution
4
+ task_categories:
5
+ - image-to-image
6
+ annotations_creators:
7
+ - author-generated
8
+ language:
9
+ - en
10
+ source_datasets:
11
+ - NEON AOP discrete return LiDAR (DP1.30003.001)
12
+ tags:
13
+ - lidar
14
+ - remote-sensing
15
+ - neon
16
+ - canopy
17
+ - compressive-sensing
18
+ size_categories:
19
+ - 10K<n<100K
20
+ configs:
21
+ - config_name: default
22
+ data_files:
23
+ - split: train
24
+ path: data/train-*
25
+ - split: validation
26
+ path: data/validation-*
27
+ - split: test
28
+ path: data/test-*
29
+ dataset_info:
30
+ features:
31
+ - name: cube
32
+ dtype:
33
+ array3_d:
34
+ shape:
35
+ - 128
36
+ - 48
37
+ - 48
38
+ dtype: float32
39
+ - name: filename
40
+ dtype: string
41
+ splits:
42
+ - name: train
43
+ num_bytes: 75339604065
44
+ num_examples: 62535
45
+ - name: validation
46
+ num_bytes: 16143770600
47
+ num_examples: 13400
48
+ - name: test
49
+ num_bytes: 16144975359
50
+ num_examples: 13401
51
+ download_size: 4642822201
52
+ dataset_size: 107628350024
53
+ ---
54
+
55
+ ## Hyperheight Data Cube Denoising and Super-Resolution
56
+
57
+ ![Explanation](images/Explanation.png)
58
+
59
+ ## Dataset Summary
60
+ - Generation code and pipeline: https://github.com/Anfera/HHDC-Creator (HHDC-Creator repo).
61
+ - 3-D photon-count waveforms (Hyperheight data cubes) built from NEON discrete-return LiDAR using the HHDC pipeline (`hhdc/cube_generator.py`).
62
+ - Each cube stores a high-resolution canopy volume (default: 0.5 m vertical bins over 64 m height, footprints every 2 m) across a 96 m × 96 m tile. In the HHDC-Creator pipeline, the exact settings are recorded per-sample in metadata, but this HF dataset only exposes the processed cubes and filenames.
63
+ - Inputs for learning are simulated observations from the physics-based forward imaging model (`hhdc/forward_model.py`) that emulates the Concurrent Artificially-intelligent Spectrometry and Adaptive Lidar System (CASALS), applying Gaussian beam aggregation, distance-based photon loss, and mixed Poisson + Gaussian noise to downsample/perturb the cube.
64
+ - Targets are the clean, high-resolution cubes. The pairing supports denoising and spatial super-resolution with recommended settings of 10 m diameter footprints sampled on a 3 m × 6 m grid (along/across swath); users can adjust these parameters as needed.
65
+
66
+ ## Supported Tasks
67
+ - Denoising of LiDAR photon-count hyperheight data cubes.
68
+ - Super-resolution / resolution enhancement of lidar volumes.
69
+ - Robust reconstruction under realistic sensor noise simulated by the forward model.
70
+
71
+ ## Dataset Structure
72
+
73
+ ### Storage and splits
74
+
75
+ - **Format on the Hub:** Apache Arrow / Parquet, managed by 🤗 Datasets.
76
+ - **Access:** via `load_dataset("anfera236/HHDC", split=...)`.
77
+ - **Splits:** `train`, `validation`, `test` (see `dataset_info` for exact sizes).
78
+
79
+ ### Per-sample fields
80
+
81
+ Each sample in this Hugging Face dataset contains:
82
+
83
+ - **`cube`** — `float32`, shape `[128, 48, 48]`
84
+ High-resolution Hyperheight data cube (channel-first: `[bins, H, W]`), derived from NEON discrete-return LiDAR using the HHDC-Creator pipeline.
85
+ - **`filename`** — `string`
86
+ Identifier for the source tile / sample (matches the tile-level naming used in HHDC-Creator).
87
+
88
+ Additional fields produced by the HHDC-Creator pipeline (e.g. `x_centers`, `y_centers`, `bin_edges`, `footprint_counts`, `metadata`) are **not stored** in this HF dataset. They can be regenerated from NEON AOP LiDAR using the code in the HHDC-Creator repository.
89
+
90
+ ### Typical shapes and forward model
91
+
92
+ With the default cube configuration (e.g. `cube_config_sample.json`, `cube_length = 96 m`, `footprint_separation = 2 m`):
93
+
94
+ - **Clean high-res cube (`cube`):** `[128, 48, 48]`
95
+ - 64 m vertical extent / 0.5 m bins → 128 height bins
96
+ - 96 m × 96 m tile / 2 m grid → 48 × 48 footprints
97
+
98
+ Low-resolution, noisy measurements are **generated on the fly** using the physics-based forward model (`LidarForwardImagingModel` in HHDC-Creator). For example, with `output_res_m=(3.0, 6.0)`:
99
+
100
+ - **Noisy cube (model output, not stored in the dataset):** `[128, 32, 16]`
101
+
102
+ Users are expected to:
103
+ 1. Load `cube` from this dataset as the clean target.
104
+ 2. Apply the forward model to obtain noisy / low-res inputs for denoising and super-resolution experiments.
105
+
106
+ If you want to replicate our **exact** results, you can use the reference cube provided at `SampleCube/gt2.npz`.
107
+
108
+ ## Usage
109
+ ```python
110
+ from datasets import load_dataset
111
+ import torch
112
+
113
+ from hhdc.forward_model import LidarForwardImagingModel # or your actual import path (check scripts folder in this repo)
114
+
115
+ # Load dataset
116
+ ds = load_dataset("anfera236/HHDC", split="train")
117
+ ds.set_format(type="torch", columns=["cube"])
118
+
119
+ # Instantiate the LiDAR forward model (use your actual parameters)
120
+ forward_model = LidarForwardImagingModel(
121
+ output_res_m=(3.0, 6.0),
122
+ footprint_diameter_m=10.0,
123
+ b=0.1, # set to zero for no background photons
124
+ eta=0.5, # set to zero for no Gaussian noise
125
+ ref_altitude=500.0,
126
+ ref_photon_count=20.0,
127
+ )
128
+
129
+ sample = ds[0]
130
+
131
+ # High-res “clean�� HHDC: [bins, H, W]
132
+ clean = sample["cube"]
133
+
134
+ # Low-res noisy measurement generated by the forward model: [bins, H_low, W_low]
135
+ noisy = forward_model(clean)
136
+
137
+ # Example: train a denoising/super-res model (my_model: noisy -> clean)
138
+ pred = my_model(noisy.unsqueeze(0)) # [1, bins, H, W] ideally
139
+ loss = loss_fn(pred, clean.unsqueeze(0)) # shapes must match
140
+ loss.backward()
141
+ ```
142
+
143
+ ## Evaluation
144
+ ![AllPercentiles](images/AllPercentiles.png)
145
+
146
+ - Recommended metrics: PSNR and SSIM on the canopy height model (CHM), digital terrain model (DTM), and 50th percentile height maps (all derivable via `hhdc.canopy_plots.create_chm` in the HHDC-Creator repo).
147
+
148
+ ## Limitations and Risks
149
+ - Forward model parameters (beam diameter, noise levels, output resolution, altitude) control task difficulty; we recommend documenting the values you use per experiment (e.g., in your own metadata/config). In the original HHDC-Creator pipeline these are stored per-sample in metadata, but this HF dataset does not include that field.
150
+ - Outputs are simulated; real sensor artifacts (boresight errors, occlusions, calibration drift) are not modeled.
151
+ - NEON LiDAR is collected over North America; models may not generalize to other biomes or sensor geometries without adaptation.
152
+
153
+ ## Licensing
154
+ - Derived from NEON AOP discrete-return LiDAR (DP1.30003.001). Follow the NEON Data Usage and Citation Policy and cite the original survey months/sites used.
155
+ - Include the citation for the Hyperheight paper when publishing results that use this dataset.
156
+
157
+ ## Citation
158
+ ```
159
+ @article{ramirez2024hyperheight,
160
+ title={Hyperheight lidar compressive sampling and machine learning reconstruction of forested landscapes},
161
+ author={Ramirez-Jaime, Andres and Pena-Pena, Karelia and Arce, Gonzalo R and Harding, David and Stephen, Mark and MacKinnon, James},
162
+ journal={IEEE Transactions on Geoscience and Remote Sensing},
163
+ volume={62},
164
+ pages={1--16},
165
+ year={2024},
166
+ publisher={IEEE}
167
+ }
168
+
169
+ @article{ramirez2025super,
170
+ title={Super-Resolved 3D Satellite Lidar Imaging of Earth Via Generative Diffusion Models},
171
+ author={Ramirez-Jaime, Andres and Porras-Diaz, Nestor and Arce, Gonzalo R and Stephen, Mark},
172
+ journal={IEEE Transactions on Geoscience and Remote Sensing},
173
+ year={2025},
174
+ publisher={IEEE}
175
+ }
176
+
177
+ @inproceedings{ramirez2025denoising,
178
+ title={Denoising and Super-Resolution of Satellite Lidars Using Diffusion Generative Models},
179
+ author={Ramirez-Jaime, Andres and Porras-Diaz, Nestor and Arce, Gonzalo R and Stephen, Mark},
180
+ booktitle={2025 IEEE Statistical Signal Processing Workshop (SSP)},
181
+ pages={1--5},
182
+ year={2025},
183
+ organization={IEEE}
184
+ }
185
+ ```
186
+
187
+ ## Maintainers
188
+ - Andres Ramirez-Jaime — aramjai@udel.edu
source/SampleCube/gt2.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:951feda16f3a63f965bee81fc5636cb4ab88ceb76f924bbe14f41d4139907c05
3
+ size 2929237
source/images/AllPercentiles.png ADDED

Git LFS Details

  • SHA256: d26a78f53d51b22ca9f736d1c012b5428e3fceb18f5a375e3f994ca985befafb
  • Pointer size: 131 Bytes
  • Size of remote file: 891 kB
source/images/Explanation.png ADDED

Git LFS Details

  • SHA256: d541fde453c094825a2d72ee8c3cfbd7b776c103e64ec4530a97974d41a039ba
  • Pointer size: 132 Bytes
  • Size of remote file: 1.84 MB
source_files.lance/_transactions/0-945f4ca0-0a4c-4c47-b904-2575a6f69b91.txn ADDED
Binary file (418 Bytes). View file
 
source_files.lance/_versions/18446744073709551614.manifest ADDED
Binary file (914 Bytes). View file
 
source_files.lance/_versions/latest_version_hint.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":1}
source_files.lance/data/101111011011110111110110c1e3754849b0fbb1e2fff86d32.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21fa45c44d8ef8748515d87ca8ecb2354d87365e1309f0ba88034fdd4b031248
3
+ size 9172336