tsmithv11 commited on
Commit
cfe4144
·
1 Parent(s): 2734ac5

Publish HHDC as lossless Lance LiDAR cubes (#1)

Browse files

- Stage native HHDC cubes through partition 4 of 56 (46896e0a05c64603a36aa85e4414ec1b7c1971e8)
- Stage native HHDC cubes through partition 8 of 56 (d70562977541081c4aa211368c3dee24106bae5c)
- Stage native HHDC cubes through partition 12 of 56 (838dfb62db882494b268382e0afd97c43d4cf2ea)
- Stage native HHDC cubes through partition 16 of 56 (22a20a8f3eeed3d07037615f82a4127954d6dc7d)
- Stage native HHDC cubes through partition 20 of 56 (b4ec4fc92e7fa078d78eaff9547c0f93899e35a8)
- Stage native HHDC cubes through partition 24 of 56 (32fb3b005422fc5e9e8609c19836ba0f029a2a7d)
- Stage native HHDC cubes through partition 28 of 56 (4631dde0f318b715a47176579038829e07dfeea3)
- Stage native HHDC cubes through partition 32 of 56 (b6b8b34c61e1aafd2640397307bdcf24ceac8c2e)
- Stage native HHDC cubes through partition 36 of 56 (4ea1640b724e797b0ef522dd2429110a92d8279e)
- Stage native HHDC cubes through partition 40 of 56 (aaaf79ff1dfed4b0e32bc03ccdcdd07726fa4da8)
- Stage native HHDC cubes through partition 44 of 56 (6c2368088c33aff0cc53aca7dc2aa17b803da7d9)
- Stage native HHDC cubes through partition 48 of 56 (44d6f3fd1030abeba6c667e0bbffe2363886d41b)
- Stage native HHDC cubes through partition 52 of 56 (6d30c3a03e904b1751bcfad244de7a29d9c37bae)
- Stage native HHDC cubes through partition 56 of 56 (528e55c7ccd10698caca85112d15b893f7a3eebd)
- Stage HHDC manifests, morphology encoder, preview, legacy references and dataset card (c6a87d99b260243bfa5cef75aa6370e4c809edce)

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +59 -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/test.lance/data/00001011100101100111010080c8bf4be58daaf32a4fa19a01.lance +3 -0
  7. data/test.lance/data/000011101001000111100000ffad1445e195fc4439e2848cc6.lance +3 -0
  8. data/test.lance/data/000100010101110101101111bbeb94402f81cda90db1e0dd42.lance +3 -0
  9. data/test.lance/data/000110101011011000011001f6131048cfac778f3905fd8f6b.lance +3 -0
  10. data/test.lance/data/0101011101001100000110112cbfb24669a84d2fded965eb1d.lance +3 -0
  11. data/test.lance/data/0110000011101000111001018090ea4721824e35ddbe1e56e6.lance +3 -0
  12. data/test.lance/data/1000010100000010111010003a05dc45a4992ea7fd6a534692.lance +3 -0
  13. data/test.lance/data/1001001011011111100010008d9ef6422ca80e20341e9338c1.lance +3 -0
  14. data/test.lance/data/1001011100101110100100103ca4f14579a4d7cf3ec5f3919c.lance +3 -0
  15. data/train.lance/_transactions/0-0b6864f6-7bcb-49a2-9551-bf143e6d3bb5.txn +0 -0
  16. data/train.lance/_versions/18446744073709551614.manifest +0 -0
  17. data/train.lance/_versions/latest_version_hint.json +1 -0
  18. data/train.lance/data/00000100000011111110101152003a4429a76bc03099970c03.lance +3 -0
  19. data/train.lance/data/0001000001000001101011007550b041ea9728b5bef31e18f0.lance +3 -0
  20. data/train.lance/data/0001000111010011110110109c4b7040efaa78050ca529e633.lance +3 -0
  21. data/train.lance/data/0010111101110010110110014b6b3a4b1da9da9bd3eb6b6e25.lance +3 -0
  22. data/train.lance/data/001100101101100000010101fee6de45abb1342d6925462302.lance +3 -0
  23. data/train.lance/data/001110001101001101011000f62a344245acc7d74594a8892f.lance +3 -0
  24. data/train.lance/data/0011100101111000101011113015444c3baf168c8462e1072d.lance +3 -0
  25. data/train.lance/data/010011011000011101111000f2aa9f451a906e093142e28b09.lance +3 -0
  26. data/train.lance/data/010100110010110001110100d691c04540a469adfef8398672.lance +3 -0
  27. data/train.lance/data/010101001010111110001101fda90847718d339e1dbcd77e59.lance +3 -0
  28. data/train.lance/data/0101101000011001110100018c474e4a68930415e81832e554.lance +3 -0
  29. data/train.lance/data/010111001010111011101111fcf2864d28a26941a66dc6b8bb.lance +3 -0
  30. data/train.lance/data/01110110000010001010000027428c4e19b355445e6838a4e9.lance +3 -0
  31. data/train.lance/data/01111101011000111011110192ee494256b47f120aca117a67.lance +3 -0
  32. data/train.lance/data/10000010101101000010111138d0fe4b09a9211fd5fe8a34e7.lance +3 -0
  33. data/train.lance/data/1000110100000101111101118f084c40d3a6422704cf85aa6d.lance +3 -0
  34. data/train.lance/data/1000110100110001011101003982d6402daf8faf373593e1d9.lance +3 -0
  35. data/train.lance/data/10011011110001110011000084bb004838844a18232e4f190f.lance +3 -0
  36. data/train.lance/data/100111000010001101011101dd61884ffab45b34e96cd7480c.lance +3 -0
  37. data/train.lance/data/1010010000100111100000019e5d1448729519fd19dabc3066.lance +3 -0
  38. data/train.lance/data/1010110100010000100111113de6d84c16a7dd66f715dfb9ba.lance +3 -0
  39. data/train.lance/data/1011010100100100110000009bd35745cf878ce979f0d5d404.lance +3 -0
  40. data/train.lance/data/101110101000110111110110d6631e42c6b1a8dbee16750af7.lance +3 -0
  41. data/train.lance/data/110001100100001000000001c6ff8242888b8ecc2374eed0f0.lance +3 -0
  42. data/train.lance/data/1100100101010000110110102fbed44321b2ca7012c0b4b7fc.lance +3 -0
  43. data/train.lance/data/110010011111010110110011e3e49e423a8c7149a35fa5c8dc.lance +3 -0
  44. data/train.lance/data/1101001001101111010111112ce53c44f2a4ee7ee1cf345416.lance +3 -0
  45. data/train.lance/data/110100101010000000010111fd33f74527971edfd3846320fa.lance +3 -0
  46. data/train.lance/data/110111000000100010100101d1303349c8ac19cdea7b3600d7.lance +3 -0
  47. data/train.lance/data/110111100100010000010000997ee34ad9a7bbcb27ef6ab824.lance +3 -0
  48. data/train.lance/data/11100001100110100001011179610d432badf8533ae69c7006.lance +3 -0
  49. data/train.lance/data/111001111110010001110011131bc5457a981faaea4610f9a6.lance +3 -0
  50. data/train.lance/data/111011100010001001011100bb242b4d1c9097d7fd915d31ee.lance +3 -0
.gitattributes CHANGED
@@ -58,3 +58,62 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data/train.lance/data/010011011000011101111000f2aa9f451a906e093142e28b09.lance filter=lfs diff=lfs merge=lfs -text
62
+ data/train.lance/data/001110001101001101011000f62a344245acc7d74594a8892f.lance filter=lfs diff=lfs merge=lfs -text
63
+ data/train.lance/data/111001111110010001110011131bc5457a981faaea4610f9a6.lance filter=lfs diff=lfs merge=lfs -text
64
+ data/train.lance/data/1010110100010000100111113de6d84c16a7dd66f715dfb9ba.lance filter=lfs diff=lfs merge=lfs -text
65
+ data/train.lance/data/111011111101011110001101d3ee8a495cb666816c8c468ace.lance filter=lfs diff=lfs merge=lfs -text
66
+ data/train.lance/data/111011100010001001011100bb242b4d1c9097d7fd915d31ee.lance filter=lfs diff=lfs merge=lfs -text
67
+ data/train.lance/data/0001000001000001101011007550b041ea9728b5bef31e18f0.lance filter=lfs diff=lfs merge=lfs -text
68
+ data/train.lance/data/110010011111010110110011e3e49e423a8c7149a35fa5c8dc.lance filter=lfs diff=lfs merge=lfs -text
69
+ data/train.lance/data/00000100000011111110101152003a4429a76bc03099970c03.lance filter=lfs diff=lfs merge=lfs -text
70
+ data/train.lance/data/1110111101100111010001107409bf4dfb858093564850fc7e.lance filter=lfs diff=lfs merge=lfs -text
71
+ data/train.lance/data/1000110100110001011101003982d6402daf8faf373593e1d9.lance filter=lfs diff=lfs merge=lfs -text
72
+ data/train.lance/data/1110111111110000000101014974c34decaab6a09aa6eb19ad.lance filter=lfs diff=lfs merge=lfs -text
73
+ data/train.lance/data/10011011110001110011000084bb004838844a18232e4f190f.lance filter=lfs diff=lfs merge=lfs -text
74
+ data/train.lance/data/01110110000010001010000027428c4e19b355445e6838a4e9.lance filter=lfs diff=lfs merge=lfs -text
75
+ data/train.lance/data/0001000111010011110110109c4b7040efaa78050ca529e633.lance filter=lfs diff=lfs merge=lfs -text
76
+ data/train.lance/data/110111000000100010100101d1303349c8ac19cdea7b3600d7.lance filter=lfs diff=lfs merge=lfs -text
77
+ data/train.lance/data/0101101000011001110100018c474e4a68930415e81832e554.lance filter=lfs diff=lfs merge=lfs -text
78
+ data/train.lance/data/10000010101101000010111138d0fe4b09a9211fd5fe8a34e7.lance filter=lfs diff=lfs merge=lfs -text
79
+ data/train.lance/data/110111100100010000010000997ee34ad9a7bbcb27ef6ab824.lance filter=lfs diff=lfs merge=lfs -text
80
+ data/train.lance/data/110001100100001000000001c6ff8242888b8ecc2374eed0f0.lance filter=lfs diff=lfs merge=lfs -text
81
+ data/train.lance/data/0010111101110010110110014b6b3a4b1da9da9bd3eb6b6e25.lance filter=lfs diff=lfs merge=lfs -text
82
+ data/train.lance/data/100111000010001101011101dd61884ffab45b34e96cd7480c.lance filter=lfs diff=lfs merge=lfs -text
83
+ data/train.lance/data/1101001001101111010111112ce53c44f2a4ee7ee1cf345416.lance filter=lfs diff=lfs merge=lfs -text
84
+ data/train.lance/data/1011010100100100110000009bd35745cf878ce979f0d5d404.lance filter=lfs diff=lfs merge=lfs -text
85
+ data/train.lance/data/111111000000010100100000fbcfba47e7824e1a8bc596f25d.lance filter=lfs diff=lfs merge=lfs -text
86
+ data/train.lance/data/010101001010111110001101fda90847718d339e1dbcd77e59.lance filter=lfs diff=lfs merge=lfs -text
87
+ data/train.lance/data/1000110100000101111101118f084c40d3a6422704cf85aa6d.lance filter=lfs diff=lfs merge=lfs -text
88
+ data/train.lance/data/010100110010110001110100d691c04540a469adfef8398672.lance filter=lfs diff=lfs merge=lfs -text
89
+ data/train.lance/data/0011100101111000101011113015444c3baf168c8462e1072d.lance filter=lfs diff=lfs merge=lfs -text
90
+ data/train.lance/data/111101100010101011010101651c1d4f2ca6e043b4cc2b0887.lance filter=lfs diff=lfs merge=lfs -text
91
+ data/train.lance/data/010111001010111011101111fcf2864d28a26941a66dc6b8bb.lance filter=lfs diff=lfs merge=lfs -text
92
+ data/train.lance/data/1100100101010000110110102fbed44321b2ca7012c0b4b7fc.lance filter=lfs diff=lfs merge=lfs -text
93
+ data/train.lance/data/11100001100110100001011179610d432badf8533ae69c7006.lance filter=lfs diff=lfs merge=lfs -text
94
+ data/train.lance/data/001100101101100000010101fee6de45abb1342d6925462302.lance filter=lfs diff=lfs merge=lfs -text
95
+ data/train.lance/data/110100101010000000010111fd33f74527971edfd3846320fa.lance filter=lfs diff=lfs merge=lfs -text
96
+ data/train.lance/data/1010010000100111100000019e5d1448729519fd19dabc3066.lance filter=lfs diff=lfs merge=lfs -text
97
+ data/train.lance/data/01111101011000111011110192ee494256b47f120aca117a67.lance filter=lfs diff=lfs merge=lfs -text
98
+ data/train.lance/data/101110101000110111110110d6631e42c6b1a8dbee16750af7.lance filter=lfs diff=lfs merge=lfs -text
99
+ data/validation.lance/data/000111000101011110110001f4c33740179df8100993af4757.lance filter=lfs diff=lfs merge=lfs -text
100
+ data/validation.lance/data/100001010100111001110100882a5b4177909d60898f8936d1.lance filter=lfs diff=lfs merge=lfs -text
101
+ data/validation.lance/data/0010110011011010110100107a81e14addb3dd190fab71aacc.lance filter=lfs diff=lfs merge=lfs -text
102
+ data/validation.lance/data/1010011101110101111010018b3cb14e7aa040b143b1ee349f.lance filter=lfs diff=lfs merge=lfs -text
103
+ data/validation.lance/data/101010001100111100010100fb26d245efbd8c0110e8725ab3.lance filter=lfs diff=lfs merge=lfs -text
104
+ data/validation.lance/data/111000001001000100010011d80dc84546ac6a85cc7d85dfee.lance filter=lfs diff=lfs merge=lfs -text
105
+ data/validation.lance/data/011110001100001100100110c9aef1411c97ac6c672ec80c86.lance filter=lfs diff=lfs merge=lfs -text
106
+ data/validation.lance/data/1101111100111110010000008dd4664c89a6a3a5b7b2720676.lance filter=lfs diff=lfs merge=lfs -text
107
+ data/validation.lance/data/10111111110101101010110169eec84c00b776d421a8dfc4cd.lance filter=lfs diff=lfs merge=lfs -text
108
+ data/test.lance/data/000100010101110101101111bbeb94402f81cda90db1e0dd42.lance filter=lfs diff=lfs merge=lfs -text
109
+ data/test.lance/data/00001011100101100111010080c8bf4be58daaf32a4fa19a01.lance filter=lfs diff=lfs merge=lfs -text
110
+ data/test.lance/data/0101011101001100000110112cbfb24669a84d2fded965eb1d.lance filter=lfs diff=lfs merge=lfs -text
111
+ data/test.lance/data/0110000011101000111001018090ea4721824e35ddbe1e56e6.lance filter=lfs diff=lfs merge=lfs -text
112
+ data/test.lance/data/1001011100101110100100103ca4f14579a4d7cf3ec5f3919c.lance filter=lfs diff=lfs merge=lfs -text
113
+ data/test.lance/data/000011101001000111100000ffad1445e195fc4439e2848cc6.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/test.lance/data/00001011100101100111010080c8bf4be58daaf32a4fa19a01.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8eb9a8a469f817fb4025ef63e66a7bd3848048a7422d8bda67edf34e4971d8a
3
+ size 113572311
data/test.lance/data/000011101001000111100000ffad1445e195fc4439e2848cc6.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1a31bc3af4e32c8a12dd84adb5da9dadaa07e16fe50083476699bed787abe6d
3
+ size 112841495
data/test.lance/data/000100010101110101101111bbeb94402f81cda90db1e0dd42.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00331a59ced8ea4375eaa77e359d92a0decf9bfeb62c02c835b1878d3e099ad2
3
+ size 115616215
data/test.lance/data/000110101011011000011001f6131048cfac778f3905fd8f6b.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a878180dc23635a079735549297c84ba5842c219de5880cd8addeef945955bbe
3
+ size 115153879
data/test.lance/data/0101011101001100000110112cbfb24669a84d2fded965eb1d.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d52970d50ba49a3dd7faeedd1a9bd9cc4c36c82d2678fd9fbfb67e1ea6398891
3
+ size 114451031
data/test.lance/data/0110000011101000111001018090ea4721824e35ddbe1e56e6.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f8cc4f6828f034f1cc87cc07fe34cd0b1cfb20f204f82e48ac96da8b7be3a42
3
+ size 111837720
data/test.lance/data/1000010100000010111010003a05dc45a4992ea7fd6a534692.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be2d2f24e519ca7a84965bdb05fe93de9a9df861aa74536aa331f1c3e93e4142
3
+ size 28236450
data/test.lance/data/1001001011011111100010008d9ef6422ca80e20341e9338c1.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70e8daabe61818c61c69688b9e09a9be9a3155099c85819155dbd74ab2190e00
3
+ size 117266775
data/test.lance/data/1001011100101110100100103ca4f14579a4d7cf3ec5f3919c.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4986e2ac4344b507225910fd138659939707dd072df63f0aeac21f1de4d2e04e
3
+ size 114981719
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/train.lance/data/00000100000011111110101152003a4429a76bc03099970c03.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7d2f59221002c5dc602a7f623eb5a295eb4b9807fb0a5722e4a3cf346dd75e4
3
+ size 117534675
data/train.lance/data/0001000001000001101011007550b041ea9728b5bef31e18f0.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee68e97a47890ccb17e2f2983182e992841c5dad4e17f2b34a2368258168aaba
3
+ size 119252306
data/train.lance/data/0001000111010011110110109c4b7040efaa78050ca529e633.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9344f9b56518808b4e042dac0facec8bc1a3174d2224af232ac3b601226f96d
3
+ size 116537234
data/train.lance/data/0010111101110010110110014b6b3a4b1da9da9bd3eb6b6e25.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1d3efa14b87f3b5dcf7e9606d27479515f33c27941e105e6d40d50a78d3df34
3
+ size 117334162
data/train.lance/data/001100101101100000010101fee6de45abb1342d6925462302.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e420141b9a833810189db2d717ccfb774fbab62fddf571339a72d48f7455a748
3
+ size 116255187
data/train.lance/data/001110001101001101011000f62a344245acc7d74594a8892f.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:593d01e029fcd171e70f4613c6115cf074e0b17e6f361d83345f40a2e3f1f5fc
3
+ size 118657363
data/train.lance/data/0011100101111000101011113015444c3baf168c8462e1072d.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d4812e52515174d8dbcaa20462c9b7b61a8f2f6cec5952302aa963e659b8940
3
+ size 118365521
data/train.lance/data/010011011000011101111000f2aa9f451a906e093142e28b09.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0551adf27c5f8fd4da515e38d1cacf8a34c44d5607e0c098d1dfeb4ad2302f01
3
+ size 115879442
data/train.lance/data/010100110010110001110100d691c04540a469adfef8398672.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2cadc9d3112a2c9dfd9343a1f90b040696c0dcf3b3ca22a02d3139aff950322
3
+ size 117087762
data/train.lance/data/010101001010111110001101fda90847718d339e1dbcd77e59.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eef6bf15c81cc21b0d66aa391ff8d08eda749bccd316fee637457266a0af2fe4
3
+ size 116045201
data/train.lance/data/0101101000011001110100018c474e4a68930415e81832e554.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21a7d38eaedc2bcc2422fdbc4c29ecd4fd2d20b40cc7c88de6d02fd942f90191
3
+ size 117153105
data/train.lance/data/010111001010111011101111fcf2864d28a26941a66dc6b8bb.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74ea0cabae54fca18accb63d8d271711b256c3e57704269d717bdbf1d1241187
3
+ size 114503313
data/train.lance/data/01110110000010001010000027428c4e19b355445e6838a4e9.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a96c80ce80b9774b928193db8f3ec020ff6dc80fcf7345f79a8d691b9dc5b2ba
3
+ size 116497554
data/train.lance/data/01111101011000111011110192ee494256b47f120aca117a67.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30764d76340882e77f9afb806378ba23a855044b640f5b35d0e0b37f91b203e3
3
+ size 118363793
data/train.lance/data/10000010101101000010111138d0fe4b09a9211fd5fe8a34e7.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2111cb6a5294f735698edfbef52847768235b6f0f9041698b38ca30ad2b2a290
3
+ size 118823378
data/train.lance/data/1000110100000101111101118f084c40d3a6422704cf85aa6d.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dded799c57c38745e8f7802eb9a5185a93a5838d6ec3310e8310509bd61404d2
3
+ size 114360145
data/train.lance/data/1000110100110001011101003982d6402daf8faf373593e1d9.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c308e3357038686761f06d980d880d9b09a81664ddb21ac25442e6e4f98f5006
3
+ size 117477906
data/train.lance/data/10011011110001110011000084bb004838844a18232e4f190f.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3e4d0d854770688ca51f32237a7e0db1f7e4a9da9837fe652ded58eb0571830
3
+ size 120555860
data/train.lance/data/100111000010001101011101dd61884ffab45b34e96cd7480c.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b05aa8a68da273183288d963f0379ba4479bd42db452b3888fd401be243c8d83
3
+ size 118510739
data/train.lance/data/1010010000100111100000019e5d1448729519fd19dabc3066.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8515a0baf542e040c9520dd6c91e7390a010d72c917bdca63a3a71c6f204fbbf
3
+ size 119773521
data/train.lance/data/1010110100010000100111113de6d84c16a7dd66f715dfb9ba.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95323cc55684bb904eb5030f7c7dd8ff75e91b93c7dfc7f9942df71ce2288160
3
+ size 113874065
data/train.lance/data/1011010100100100110000009bd35745cf878ce979f0d5d404.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86facd57e314492f3824990b2a5013ff9eb1b3732e7079253a973d0344da0db8
3
+ size 117115217
data/train.lance/data/101110101000110111110110d6631e42c6b1a8dbee16750af7.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c510b578c4a0e37f8b2377647f1bff831d7a454b4667407228b4838e41380354
3
+ size 87044245
data/train.lance/data/110001100100001000000001c6ff8242888b8ecc2374eed0f0.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72a4b9479e4a2c60cbb6d3e463496da6999ecc6a527d9ceee37344aec3fbafb4
3
+ size 118224914
data/train.lance/data/1100100101010000110110102fbed44321b2ca7012c0b4b7fc.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47a7012c736d72fe8b1a96b75e5a51c0f86b7202ac5e2ffb2583a84705774f27
3
+ size 116316050
data/train.lance/data/110010011111010110110011e3e49e423a8c7149a35fa5c8dc.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2990407216edd1e45785d1c4acecce2e3957ffcfb973c4efaf01e87d5440dcf8
3
+ size 118103633
data/train.lance/data/1101001001101111010111112ce53c44f2a4ee7ee1cf345416.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4594db6bbcca31f346581775c29e87038d745d4acbdb206a75aac650b331e2e9
3
+ size 118000785
data/train.lance/data/110100101010000000010111fd33f74527971edfd3846320fa.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dff9b97ef99462540c07e1087d9a4cf0faf4a071555944aa0b89d31ae2ac0d32
3
+ size 118154642
data/train.lance/data/110111000000100010100101d1303349c8ac19cdea7b3600d7.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1d1463d6bfdde25946d36ce1e773acfb159abdff82c29003164edb11d5732b2
3
+ size 116118801
data/train.lance/data/110111100100010000010000997ee34ad9a7bbcb27ef6ab824.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1334c5e6ddcc6ff9d748a4bcc459d177b91b4fbb0ef54aafe2de599bc29fe5a
3
+ size 115686738
data/train.lance/data/11100001100110100001011179610d432badf8533ae69c7006.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdc9675b09efd1c2f15da235215258ad356c5652e105dab403de06d78cd74d95
3
+ size 117700689
data/train.lance/data/111001111110010001110011131bc5457a981faaea4610f9a6.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04873c6a2fbaf5b1d426b00c24d887c6fd3a31c949a064d8ec6653cd803f328e
3
+ size 117587922
data/train.lance/data/111011100010001001011100bb242b4d1c9097d7fd915d31ee.lance ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77d7d27f43a11953788006bc9258baf926d726c5dde4b8a7d8dd4c4d77cfa477
3
+ size 119250898