dsaaf commited on
Commit
4878bd3
·
verified ·
1 Parent(s): 5a65eb3

Complete HLC metadata, frozen indices and release checksums

Browse files
Files changed (42) hide show
  1. data_inspection/FINAL_DATASET_SUMMARY.md +327 -0
  2. data_inspection/HLP_SOURCE_PROVENANCE.md +51 -0
  3. data_inspection/dataset_documentation_audit.json +133 -0
  4. data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/README.md +11 -0
  5. data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/split_summary.json +49 -0
  6. data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/test_sequences.csv +3 -0
  7. data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/test_tiles.txt +123 -0
  8. data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/train_sequences.csv +3 -0
  9. data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/train_tiles.txt +2249 -0
  10. data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/val_sequences.csv +3 -0
  11. data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/val_tiles.txt +118 -0
  12. eo_data/README.md +141 -0
  13. eo_data/__init__.py +3 -0
  14. eo_data/__main__.py +59 -0
  15. eo_data/archive.py +175 -0
  16. eo_data/codec.py +52 -0
  17. eo_data/core.py +107 -0
  18. eo_data/dataset.py +199 -0
  19. eo_data/locking.py +33 -0
  20. eo_data/prepare.py +346 -0
  21. eo_data/requirements.txt +3 -0
  22. eo_data/verify.py +84 -0
  23. experiments/data/LST_ENCODING_VERIFICATION.md +56 -0
  24. experiments/data/dataset_catalog.json +167 -0
  25. experiments/data/protocol.json +82 -0
  26. experiments/efdiff_hlc/center_crop_protocol.json +20 -0
  27. processed_data/v1/lstsr_tb/bundle.json +75 -0
  28. processed_data/v1/lstsr_tb/index.sqlite +3 -0
  29. processed_data/v1/lstsr_tb/indices/test.hls.npy +3 -0
  30. processed_data/v1/lstsr_tb/indices/test.lst_hr.npy +3 -0
  31. processed_data/v1/lstsr_tb/indices/train.hls.npy +3 -0
  32. processed_data/v1/lstsr_tb/indices/train.lst_hr.npy +3 -0
  33. processed_data/v1/lstsr_tb/indices/val.hls.npy +3 -0
  34. processed_data/v1/lstsr_tb/indices/val.lst_hr.npy +3 -0
  35. processed_data/v1/lstsr_tb/normalization.json +53 -0
  36. processed_data/v1/lstsr_tb/progress.json +14 -0
  37. processed_data/v1/lstsr_tb/protocol.json +140 -0
  38. processed_data/v1/lstsr_tb/source_index.jsonl +3 -0
  39. processed_data/v1/lstsr_tb/source_info.json +25 -0
  40. processed_data/v1/lstsr_tb/verification.json +38 -0
  41. release.json +0 -0
  42. scripts/restore.py +92 -0
data_inspection/FINAL_DATASET_SUMMARY.md ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HLS–LST 数据集文档
2
+
3
+ 文档更新:2026-09-14。HLP 新增独立验证划分 v2,数据总成员保持不变;全量规模与分布统计截至2026-09-12,全量图像与超分基线统计完成于2026-09-13。本文说明数据内容、来源、配对、划分和读取约定,原有分布统计保留在附录。
4
+
5
+ ## 1. 数据集命名与概况
6
+
7
+ 采用共同前缀 **HLS-LST** 和描述性后缀作为本项目的统一工作名称。它们是本文的数据标识,不表示已注册的公开数据集名称,也不暗示与某个模型绑定。
8
+
9
+ | 文档名称 | 简短描述 | 历史名称 / 读取器 ID | MGRS tiles | HLS 样本 | fine LST 样本 | 当前存储 |
10
+ |---|---|---|---:|---:|---:|---|
11
+ | **HLS-LST-Pairs(HLP)** | HLS 光学与 fine LST 的 patch 配对记录 | Prithvi Data / `prithvi` | 3,094 | 242,416 | 242,416 | 无损压缩包115.61 GiB |
12
+ | **HLS-LST-CrossSensor(HLC)** | MODIS coarse LST 与 Landsat fine LST 的 patch 配对记录,附 HLS 条件影像 | LSTSR-TB / `lstsr_tb` | 2,490 | 277,808 | 2,892,007 | 数据目录403.57 GiB |
13
+
14
+ HLP为本项目自行构建的HLS–Landsat温度配对数据。用户提供的下载脚本自述参考Prithvi-EO-2.0的tile采样思路;这解释了旧目录名,不表示数据由Prithvi模型生成或由其团队发布。`Prithvi Data`仅作为来源目录与实验兼容别名保留。文档名称调整不更改已有文件路径、读取器 ID、检查点或冻结指纹。2026-09-14 新增的 HLP 验证划分单独保存为 v2 索引与归一化版本,复用原压缩数据;旧 v1 保留供历史复现。HLC 原字段 `sequence_id` 继续作为标识符,本文称其对应对象为 **月份集合(calendar-month bundle)**。
15
+
16
+ 计数单位:HLP 一条记录为一对 HLS/fine LST patch;HLC 一条月份集合含一份 HLS 和6–12个可用 coarse–fine LST 月份对。HLC 的2,892,007指可用 patch-month 对数,不把 coarse、fine 两端重复计数,也不等于独立卫星场景数。两套数据均未按跨数据集内容重复去重。存储体积为文件逻辑大小,压缩包与目录的体积口径不同。
17
+
18
+ ### HLC 后续训练空间裁剪约定(2026-09-30)
19
+
20
+ 后续合成退化实验统一从256×256取固定中心224×224:行列均为`[16:240]`,同一sequence各月份以及所有epoch均保持相同窗口,HLS/fine LST/mask同步,禁用随机翻转。合成coarse LST在裁剪后生成。新入口为`experiments/efdiff_hlc/center_data.py`,机器可读协议见[center_crop_protocol.json](../experiments/efdiff_hlc/center_crop_protocol.json)。原始数据及train/val/test成员不变。此前HLC扩散实验为逐月随机裁剪训练、中心裁剪验证;历史结果和代码不覆盖。新增入口已准备,不表示已启动中心裁剪重训。
21
+
22
+ ## 2. Sensor / Product Provenance
23
+
24
+ 以下区分“下载代码确认”“本地记录可追溯”“抽样支持”和“尚待补证”。第一套下载代码实际位于`lst-super-resolution/data_download/`,已保存[只读代码快照及来源核对](HLP_SOURCE_PROVENANCE.md)。产品官方网站用于解释产品定义;当前代码快照也不替代每个历史样本的源景记录。
25
+
26
+ | 数据集 / 模态 | 卫星与传感器 | 产品与波段 | 本地来源证据与边界 |
27
+ |---|---|---|---|
28
+ | HLP / HLS 光学 | **Landsat 8 / OLI、Landsat 9 / OLI-2**的L30产品来源;未逐样本统计两者比例 | **NASA HLSL30 v2.0**,`NASA/HLS/HLSL30/v002`,`B2`–`B7`及`Fmask`;没有使用HLSS30/Sentinel-2分支 | `common.py`固定collection,`download_patches.py`只查询HLSL30;metadata保留选中影像的`hls_image_id`。[HLS产品定义](https://developers.google.com/earth-engine/datasets/catalog/NASA_HLS_HLSL30_v002) |
29
+ | HLP / fine LST | **Landsat 8 / TIRS、Landsat 9 / TIRS-2** | **USGS Landsat Collection 2、Tier 1、Level-2 Surface Temperature**,`LANDSAT/LC08/C02/T1_L2`与`LANDSAT/LC09/C02/T1_L2`合并后取`ST_B10` | 下载代码明确执行温度转换、按时间距离排序后mosaic并导出到HLS网格;metadata仍缺实际贡献的LST场景ID与时间。另有[单位核验](../experiments/data/LST_ENCODING_VERIFICATION.md),18个抽样位置差异均≤0.02°C |
30
+ | HLP / coarse LST | 无独立实测来源 | 当前交付不含 coarse LST;需要实验时由 fine LST 合成退化生成 | 必须标作 synthetic coarse LST,不能称为 MODIS 配对 |
31
+ | HLC / HLS 光学 | **Landsat 8 / OLI**,由上游 `LC08` 选择条件限定 | **NASA HLSL30 v2.0**,`NASA/HLS/HLSL30/v002`,`B2`–`B7`,附 `Fmask` | 全部277,808条 HLS manifest 均指向该 collection;配置 `landsat_product_prefix=LC08`。HLSL30产品整体支持Landsat 8/9,但本数据选择范围只含Landsat 8。[HLS产品定义](https://developers.google.com/earth-engine/datasets/catalog/NASA_HLS_HLSL30_v002) |
32
+ | HLC / fine LST | **Landsat 8 / TIRS、Landsat 9 / TIRS-2** | **USGS Landsat Collection 2、Tier 1、Level-2 Surface Temperature**;来源ID为 `LANDSAT/LC08/C02/T1_L2` 或 `LANDSAT/LC09/C02/T1_L2`,对应温度波段 `ST_B10` | 月份来源表保留 `landsat_scene_ids`、`primary_scene_id` 与采集时间。目标可由主景及同日辅助景填补组成,并非每个patch-month都只有唯一Landsat源景。[USGS产品说明](https://www.usgs.gov/landsat-missions/landsat-collection-2-surface-temperature) |
33
+ | HLC / coarse LST | **Terra / MODIS** | **MOD11A1 Collection 6.1**,`MODIS/061/MOD11A1`,日间LST `LST_Day_1km`;附日间QA、观测时间和观测角层 | `modis_image_id` 可追溯至每日产品,数组保留 `lr_qc_day`、`lr_view_time_h_x10`、`lr_view_angle_deg`。不是 Aqua/MYD11A1,也不是由 fine LST 降采样得到。[MOD11A1产品说明](https://developers.google.com/earth-engine/datasets/catalog/MODIS_061_MOD11A1) |
34
+
35
+ HLS是光学地表反射率产品来源,不是本文 fine LST 的反演来源。Landsat Surface Temperature 是卫星反演参考产品,不应称为无误差地面真值,也不是由 HLS 反射率直接提供的温度波段。
36
+
37
+ HLP现已确认collection、温度公式、目标网格、时间检索和选tile算法;剩余缺口是历史运行版本/输入清单、逐样本LST贡献场景与时间、以及未写入metadata的CRS和仿射变换。HLC温度来源有同日多景与填补信息,但本次提供的是第一套下载代码,不能用它代替HLC导出实现;HLC精确像元源景归属、全部QA/填补阈值与fine重采样核仍待补齐。
38
+
39
+ ## 3. Coarse / Fine Resolution 与配对关系
40
+
41
+ ### 3.1 分辨率术语
42
+
43
+ 统一使用 **coarse-resolution LST** 与 **fine-resolution LST**,表示本任务中相对粗、细的输入/参考网格。原始字段 `lr_*`、`hr_*` 为兼容保留,文档分别解释为 coarse、fine。
44
+
45
+ | 内容 | 存储形状 | 网格与物理分辨率的解释 |
46
+ |---|---|---|
47
+ | HLP HLS / fine LST | `6×256×256` / `256×256` | 下载代码取选中HLSL30的`B2`原生投影与仿射变换,以同一30 m产品网格导出HLS和LST,再同位置裁剪;每patch约7.68 km×7.68 km。实际变换未存入patch metadata,不能按目录tile盲目重建 |
48
+ | HLC HLS / fine LST | `6×256×256` / 每月`256×256` | 当前月份元数据的fine网格步长均为30 m;patch覆盖约7.68 km×7.68 km |
49
+ | HLC coarse LST | 每月`8×8` | 源MOD11A1为名义1 km产品;配置倍率32,按同范围网格推算目标采样间隔为960 m。它是重投影后的coarse网格,不能描述成MODIS原生960 m观测 |
50
+
51
+ **30 m产品网格不等于30 m原生热红外观测。** Landsat 8/9热红外波段以100 m采样并重采样到30 m产品网格;本数据的32×是`256/8`的数组边长比,不是独立热信息量提高32倍。[USGS传感器与采样说明](https://www.usgs.gov/centers/eros/science/usgs-eros-archive-landsat-archives-landsat-8-9-operational-land-imager-and)
52
+
53
+ ### 3.2 HLP:光学–温度配对
54
+
55
+ 连接键为原记录路径对应的 `(split, tile, obs_idx, row, col)`;同一冻结记录包含 `bands.npy`、`fmask.npy`、`lst.npy` 和 `metadata.json`。下载代码证明二者请求同一HLS网格并按同一行列裁剪,不代表独立测量的配准精度。
56
+
57
+ `metadata.datetime`来自Phase 2的HLS候选观测清单,是Phase 3检索锚点,**不是LST采集时间**。以其日历日D为基准,HLS检索`[D−3天, D+4天)`,按`CLOUD_COVERAGE`最小选一景;LST检索`[D−1天, D+2天)`,合并Landsat 8/9,按距离锚点的时间差降序排列后`mosaic()`,使较近时刻的有效像元优先,并允许其他候选填补。窗口按日期截断、右端不包含;不能写成严格同日配对,也不能把mosaic称为多景平均。[GEE日期边界](https://developers.google.com/earth-engine/apidocs/ee-imagecollection-filterdate)与[mosaic优先级](https://developers.google.com/earth-engine/apidocs/ee-imagecollection-mosaic)。
58
+
59
+ HLS查询按目标bbox的中心点`filterBounds`,没有强制场景tile ID等于目录tile。选中影像的`B2`投影用于两种模态,解释了目录tile与HLS ID可能不一致的生成机制;这仍需逐样本源网格复核。`row,col`定位的是所选HLS网格,不能仅用目录tile推断精确位置。LST导出未显式调用`resample()`,依GEE默认重投影行为解释为最近邻,不能声称实施了双线性导出。[重采样规则](https://developers.google.com/earth-engine/guides/resample)
60
+
61
+ ### 3.3 HLC:真实 coarse–fine 配对与 HLS 条件
62
+
63
+ 一个可用样本由 `(sequence_id, calendar_month)` 标识;该月份对应实际 `date`。其输入/参考关系为:
64
+
65
+ ```text
66
+ 同一可用月份:Terra/MODIS coarse LST [8,8]
67
+ + 该月份集合共用的 HLS 光学 [6,256,256]
68
+ → Landsat fine LST 参考 [256,256]
69
+ ```
70
+
71
+ 温度两端按同一日历日选择来源,全量可用月份对应的MODIS产品日期与月份来源日期一致;这不是同时刻观测保证。清单另保留传感器时间差与有效性统计。MODIS导出记录为 `nearest` 重采样到任务网格。fine/coarse各有独立有效mask;同日、同网格设计仍不消除传感��响应、观测时刻、反演误差和剩余配准误差。
72
+
73
+ 每条月份集合只有**一份HLS**,通过 `sequence_id` 与温度文件及manifest连接,并非每个月独立配一份同期HLS。HLC全量HLS与目标温度日期差中位数为728天,71.83%的月份样本超过365天;这说明辅助光学的时相条件,不等于几何错位,也不单独证明误差原因。历史统计中HLP的0天中位数实际比较“选中HLS日期”与“HLS候选检索锚点”,不测量HLS与实际LST贡献景的时间差,因此不能与HLC的728天作同一物理含义的日期比较。详见[原始日期统计](lst_hls_sr_census_20260913/full_date_alignment.json)和[新代码解释](HLP_SOURCE_PROVENANCE.md)。
74
+
75
+ 空间定位使用 `grid_crs`、`grid_transform` 和patch像素偏移 `x0,y0`;`patch_row/patch_col` 是裁剪网格索引。相同MGRS tile ID不保证相同裁剪范围;当前仅核验存储结构、来源元数据和索引一致性,未完成全量独立几何配准误差测量。
76
+
77
+ ## 4. Calendar-month Bundle:不是连续 Time Series
78
+
79
+ HLP的基本单位是一次光学–温度配对记录。按 `(tile,row,col)` 归组只能得到候选重复位置记录,不应直接称为已配准、连续的时间序列。
80
+
81
+ HLC的 `sequence_id` 是存储键,`sequence_mode=calendar_month_bundle_independent_same_day_pairs`,`storage_grouping=twelve_calendar_month_bundle_cross_year_allowed`。轴0对应1–12月槽位;每月选择一次实际日期的温度配对,不是月平均,也不是固定年份的12个月。
82
+
83
+ 例如 `T01WCP_v000_p0000` 的3月取自2021-03-30,4月取自2024-04-06,8月取自2022-08-08;月份轴不按实际时间递增。其2月虽在 `month_dates_json` 中有候选日期,却不在该patch的 `available_months` 中,因此不得把“日期非空”作为可用样本条件。
84
+
85
+ 读取时先用 `available_months` 决定可用槽位,再使用fine/coarse有效mask。不要补零后当有效温度,也不要默认“上一槽位”是相邻时间。使用时间模型需显式提供实际日期/时间差、限制可用条件,并检查时序任务所需的时空一致性;当前数据不直接提供严格连续、固定间隔的时序预测基准。
86
+
87
+ ## 5. Train / Validation / Test Split
88
+
89
+ | 数据集 | 文档划分 | 源split/API标签 | tiles | HLS/记录或月份集合数 | fine LST样本数 |
90
+ | --- | --- | --- | --- | --- | --- |
91
+ | HLP | 训练 | 源 train → train | 2,796 | 218,975 | 218,975 |
92
+ | HLP | 验证 | 源 train → val | 147 | 11,684 | 11,684 |
93
+ | HLP | 测试 | 源 val → test | 151 | 11,757 | 11,757 |
94
+ | HLP | 合计 | —(汇总) | 3,094 | 242,416 | 242,416 |
95
+ | HLC | 训练 | train | 2,249 | 250,449 | 2,608,772 |
96
+ | HLC | 验证 | val | 118 | 13,694 | 141,711 |
97
+ | HLC | 测试 | test | 123 | 13,665 | 141,524 |
98
+ | HLC | 合计 | —(汇总) | 2,490 | 277,808 | 2,892,007 |
99
+
100
+ **HLP 当前划分(v2,2026-09-14):**从旧训练集的2,943个MGRS tiles中,以固定种子`20260914`,按`(SHA256("20260914:" + tile_id), tile_id)`升序排列,取前`round(0.05×2943)=147`个tiles作为独立validation。同一tile的全部HLS/fine LST配对整体移动;新训练为2,796个tiles、218,975对,验证为147个tiles、11,684对。原测试的151个tiles、11,757对成员固定。三份集合的记录ID和MGRS tile ID两两无交集,train∪val精确等于旧train;测试索引数组与旧源val逐项相同。[划分协议与读取](hlp_split_20260914/README.md)、[精确计数与校验](hlp_split_20260914/split_summary.json)、[生成脚本](../experiments/data/create_hlp_validation.py)。
101
+
102
+ 新读取版本为`processed_data/hlp_split_v2_20260914`,API split直接使用`train/val/test`。旧`processed_data/v1`仍保持源`train/val`标签,其中旧`val`为测试;原记录路径和压缩包内部metadata的split继续表示来源,派生索引额外记录`source_split/experiment_split`。必须显式传入新`prepared`路径,不能把旧版本的`val`误当新验证集。
103
+
104
+ 新归一化仅拟合剩余218,975条训练记录:使用旧训练集保存的未四舍五入充分统计量,减去对全部11,684条新验证记录从原压缩字节重新计算的一阶/二阶矩之和及有效像元计数,再生成mean/std;沿用原像元mask与样本等权规则。验证、测试共用新训练统计,不继续使用包含新验证成员的旧归一化。[计算明细](hlp_split_20260914/normalization_derivation.json)。这采用float64求和与相减,存在通常的浮点舍入误差。
105
+
106
+ 此划分用于今后的独立训练与选模。旧模型曾在原训练池中见过新验证成员,历史实验也曾监测旧源val(测试成员);新划分不会追溯消除这些使用记录。新实验应从零训练或使用未见过此数据的初始化,验证用于选模,固定测试用于最终评价。
107
+
108
+ **HLP 原始训练/测试来源:**现已找到Phase 1算法:先依据2019年Copernicus土地覆盖和RESOLVE 2017生态区选tile,包括类别抽样、城市/高熵区域补充与生态区补齐,再按dominant LULC分层打乱,每类取`max(1, int(n_class×0.05))`个tiles进入源val,其余进入train。当前入口传入`seed=42`。这不是全体patch随机95/5划分;同tile全部记录继承其split。当前脚本与历史导出的逐tile成员尚未用原`selected_tiles.csv`完整重放核对,最终成员以冻结索引为准。[代码与复现边界](HLP_SOURCE_PROVENANCE.md)
109
+
110
+ HLP另有Phase 4海洋/沙漠约10%下采样及位置排重代码,但该阶段只输出样本清单;未获得证明当前242,416条冻结记录采用了该清单的证据,不能把此筛选写成已应用的数据属性。当前独立验证划分已按上述v2落实;调参使用新validation,不能使用固定test选模型。
111
+
112
+ **HLC:**原持出集合于2026-09-05由源`val`更名为`test`,成员不变。随后从原训练的2,367个MGRS tiles中,按 `SHA256('20260905:' + tile_id)` 排序,取前118个tiles(`round(0.05×2367)`)作为validation;其余2,249个tiles用于train,原123个test tiles固定。一个tile下所有patch、月份集合和月份样本整体进入同一split。原持出test集合最初的选tile规则尚缺,不能将其描述为同一哈希算法生成。[划分协议](extracted_metadata/lstsr_tb_final_dataset_20260719/splits/README.md)与[精确清单/校验记录](extracted_metadata/lstsr_tb_final_dataset_20260719/splits/split_summary.json)。
113
+
114
+ 两套数据各自的split之间MGRS tile ID不重叠;这不是逐像元空间零重叠证明,也不是跨年份留出。相邻tile边缘重叠、相同源景的跨tile关系需单独核验。两套数据之间共有1,767个tile ID;联合训练/跨数据集测试时不能据此假定彼此独立。
115
+
116
+ 归一化参数仅由各自训练集、各自模态计算,validation/test复用。不得使用测试目标拟合温差校准、选择退化参数或调参。原始split名称保留在统计/索引文件中时,以本节的语义映射解释。
117
+
118
+ ## 6. Dataset Structure / Schema
119
+
120
+ ### 6.1 存储结构与关系表
121
+
122
+ ```text
123
+ HLP 原逻辑记录(当前打包为可随机访问的无损 EOZ / ZIP)
124
+ <source_split>/<tile>/obs_<id>/r<row>_c<col>/
125
+ bands.npy | fmask.npy | lst.npy | metadata.json
126
+ 当前包:artifacts/prithvi_data_v1_20260909.zip
127
+ 当前索引:processed_data/hlp_split_v2_20260914/prithvi/index.sqlite
128
+ 历史索引:processed_data/v1/prithvi/index.sqlite(仅train/源val)
129
+
130
+ HLC 根目录:data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/
131
+ arrays/<tile>/<sequence_id>.npz # coarse/fine 温度与QA
132
+ phase4_dataset_manifest.csv # 一行一个月份集合
133
+ phase3_tile_variant_months_merged.csv # 一行一个variant×月份
134
+ hls_l8_conditions_2019_2025_lc08/
135
+ arrays/<tile>/<sequence_id>.npz # 单份光学条件
136
+ hls_condition_manifest.csv # 一行一个光学条件记录
137
+ hls_condition_config.json
138
+ splits/ # 当前成员清单及split协议
139
+ ```
140
+
141
+ | 关系表 / 字段 | 含义与连接规则 |
142
+ |---|---|
143
+ | HLP metadata | `tile, split, obs_idx, row, col, datetime, patch_size, bands, bands_dtype, bands_scale, hls_image_id, has_lst, lst_dtype, lst_scale`;记录路径唯一标识一次配对 |
144
+ | HLC `sequence_id` | 月份集合主键;temperature manifest与HLS manifest按此一对一连接;不是连续时间序列认证 |
145
+ | `tile_variant_id, month` | 温度来源表连接键;`month`为1–12;每个patch只读取自身`available_months` |
146
+ | `mgrs_tile, patch_idx, patch_row, patch_col, x0, y0` | 区域、patch标识和像素偏移;结合来源表的CRS/仿射变换定位 |
147
+ | `available_month_count, available_months, missing_months` | patch层面的可用性;`source_available`只描述上一级来源候选,不足以替代patch可用性 |
148
+ | `month_dates_json, month_landsat_times_json` | 月份对应的实际来源日期与Landsat时间;不将月份编号当连续时间坐标 |
149
+ | `landsat_scene_ids, primary_scene_id, modis_image_id` | 温度两端来源;一份fine参考可能涉及多个Landsat场景 |
150
+ | `hls_collection, hls_asset_id, hls_image_id, hls_datetime_utc` | 光学产品、完整资产标识与独立采集时间 |
151
+ | `split, archive, schema_version / *_schema_version` | 当前划分、相对数组路径和格式版本;不同manifest的`archive`相对各自目录解释 |
152
+
153
+ ### 6.2 Array Schema
154
+
155
+ 以下为原始存储数组;读取器输出的归一化tensor不是同一编码。HLC字段形状与dtype已读取实际样本确认,完整性沿用全量索引与已有验收;本次没有重做每个辅助QA数组的全量逐值审计。HLP当前下载代码还可选写`qa_pixel.npy`(`[256,256] uint16`),并允许QA请求失败后保存温度;该层不在已冻结四文件格式内,不能据当前代码声称它已随本地数据交付。
156
+
157
+ | 数据 | 字段 | Shape | dtype | 说明 |
158
+ |---|---|---|---|---|
159
+ | HLP | `bands.npy` | `[6,256,256]` | `int16` | 六波段光学,通道顺序见下节 |
160
+ | HLP | `fmask.npy` | `[256,256]` | `uint8` | 光学质量bitmask |
161
+ | HLP | `lst.npy` | `[256,256]` | `int16` | fine LST,填充值`-32767` |
162
+ | HLC | `hr_lst` / `hr_valid` | `[12,256,256]` | `int16` / `uint8` | fine LST及有效性;无效温度填充值`-32768` |
163
+ | HLC | `lr_lst` / `lr_valid` | `[12,8,8]` | `int16` / `uint8` | coarse LST及有效性;无效温度填充值`-32768` |
164
+ | HLC | `hr_st_qa_k_x10`, `hr_flags` | `[12,256,256]` | `uint8` | fine温度QA辅助层;`hr_flags`位定义与QA饱和/填充值约定仍需原导出说明 |
165
+ | HLC | `lr_qc_day`, `lr_view_angle_deg`, `lr_view_time_h_x10` | `[12,8,8]` | `int16` | coarse日间QA、观测角及时间辅助层;先核对源编码/填充值再解码 |
166
+ | HLC | `hls_reflectance_i16` | `[6,256,256]` | `int16` | 单份光学条件,填充值`-32768` |
167
+ | HLC | `hls_valid`, `hls_fmask` | `[256,256]` | `uint8` | 光学有效性及Fmask |
168
+ | HLC | `source_time_s`, `candidate_rank` | scalar | `int64` / `uint8` | HLS Unix秒级时间与候选排序序号 |
169
+
170
+ ### 6.3 单位、波段与有效性
171
+
172
+ - 光学通道固定为 **Blue、Green、Red、NIR、SWIR1、SWIR2**;两套下载来源均对应HLSL30的`B2,B3,B4,B5,B6,B7`。反射率为存储整数乘`0.0001`,当前读取器不额外裁剪。**HLP下载端已执行`clip(0,10000)`**,因此“不额外裁剪”不能解释成上游没有裁剪;HLC不从该第一套代码推定处理方式。
173
+ - 两套fine LST采用`stored / 100.0`恢复摄氏度;HLC coarse LST沿用相同摄氏度×100编码解释。原始Landsat DN与MODIS DN各有不同缩放,不能再套用于已经转换后的这些数组。fine单位有抽样源像元核验,coarse另有来源与整数步长证据,见[编码核验记录](../experiments/data/LST_ENCODING_VERIFICATION.md)。
174
+ - HLP光学有效条件:六波段无`-9999/-32767/-32768`填值,`Fmask != 255`,且`(Fmask & 14) == 0`。HLC还与`hls_valid`取交集。bits 1–3对应云、邻云/阴影邻域、阴影;零值、雪、水与气溶胶不在当前读取器中额外全部剔除。Fmask只约束光学,不替代LST QA。
175
+ - HLP温度按`lst != -32767`;HLC分别使用`hr_valid & (hr_lst != -32768)`和`lr_valid & (lr_lst != -32768)`。任务评分使用实际所需模态的有效支持;插值还需有效coarse邻域,不能把所有数组像元当有效配对。
176
+ - HLC上游HLS最终保留规则为`valid_fraction >= 0.98`且`snow_fraction + water_fraction < 0.98`。这是记录级筛选,不意味着每个保留patch完全无雪、无水或没有无效像元。不能直接把该规则归给HLP。
177
+
178
+ HLP下载端另外按每波段缺失比例≤1%、patch的Fmask bits 0–3并集比例≤20%筛选;fine温度只保留`[-50,70]°C`内数值,并要求patch缺失≤1%。这些是下载代码中的记录级筛选,与当前读取器的像元mask分开解释。代码下载`QA_PIXEL`但未用其bit位额外去除LST云/阴影;“温度落在范围内”不等于经过完整LST质量认证。
179
+
180
+ ### 6.4 读取器与任务样本的区别
181
+
182
+ 现有`eo_data`入口按单模态返回归一化`image/target`及mask,当前`target`是自重建目标;LST模态展开可用fine月份。它**不是已经封装好的**`(coarse LST, HLS, fine LST)`三元组加载器。构建引导任务时,需要按上述键读取对应coarse数组和HLS,并保持split、月份与mask同步。
183
+
184
+ ```python
185
+ from eo_data import open_dataset
186
+ prepared = 'processed_data/hlp_split_v2_20260914'
187
+ ds = open_dataset('prithvi', 'lst', 'val', prepared=prepared) # HLP独立验证集
188
+ # 测试集使用 split='test';新训练集使用 split='train',均传同一prepared。
189
+ sample = ds[0]
190
+ temperature_c = ds.denormalize(sample['image']) / 100.0
191
+ valid = sample['reference_mask'] # 无效位置仍必须排除
192
+ ```
193
+
194
+ `image`已做z-score,不能直接除以100当温度。接口与存储恢复方式详见[统一读取说明](../eo_data/README.md);其中旧v1的`prithvi/val`为测试,新v2的`prithvi/val`为独立验证;按prepared版本区分。
195
+
196
+ ## 7. Supported Tasks
197
+
198
+ | 任务 | HLP | HLC | 使用条件 |
199
+ |---|---|---|---|
200
+ | 光学引导LST空间细化:coarse LST+HLS → fine LST | 可构造合成coarse输入 | 可使用真实MODIS或受控合成coarse输入 | 统一退化、网格和mask;真实跨传感器与合成任务分开报告 |
201
+ | 仅LST的空间细化:coarse → fine | 需合成退化 | 真实与合成均可 | fine是参考产品,不是无误差真值;倍率明确为网格倍率 |
202
+ | HLS或LST的表示学习、压缩、自编码重建 | 支持 | 支持 | 按各自训练split拟合;避免HLC重复展开月份时把同一HLS误算成独立观测 |
203
+ | 光学条件温度估计:HLS → fine LST | 可做配对回归实验 | 可做跨时相条件估计实验 | 日期不严格一致;不包装为已验证的同步温度反演基准 |
204
+ | 掩码重建、人工缺失/噪声鲁棒性 | 可构造 | 可构造 | 只在原本有效位置合成并保留未扰动参考;原生缺失区没有自动获得真值 |
205
+ | 按月份/年份/区域分析与不规则多观测建模 | 重复位置记录有限 | 可使用实际日期的月份集合 | 不宣称直接支持连续时间预测、严格连续变化检测或未来预测基准 |
206
+
207
+ 没有地面实测温度、土地覆盖分类标签或严格连续时序标签时,不把相关任务写成现成监督基准。当前全量超分基线是固定32×方法的诊断,不是数据集固有难度常数;模型、训练样本量、时间条件或退化变化后需重新评价。
208
+
209
+ ## 8. Evidence、版本与待补信息
210
+
211
+ 当前统计以冻结索引、最终保留manifest及全量验收为准;旧合并/下载文档中的2,517个tiles等中间数量不代表当前HLC。以下资料均保留原兼容名称:
212
+
213
+ - [规模与分布原始统计](final_dataset_stats.json):全量记录、月份、地理分组与历史各split计数;其中HLP旧源`val`对应test,旧train尚未拆出新validation;当前HLP split计数以[v2划分记录](hlp_split_20260914/split_summary.json)为准。
214
+ - [本次来源与schema核对](dataset_documentation_audit.json):当前HLC全量manifest的collection、同日关系、网格、重采样记录,以及一个实际bundle的数组schema。
215
+ - [HLP下载代码来源核对](HLP_SOURCE_PROVENANCE.md)、[代码快照与SHA-256](provenance/hlp_download_20260913/source_manifest.json):产品、采样、split、日期锚点、mosaic、网格与上游质量处理。
216
+ - [HLC HLS构建配置](extracted_metadata/lstsr_tb_final_dataset_20260719/hls_l8_conditions_2019_2025_lc08/hls_condition_config.json)、[HLC split协议](extracted_metadata/lstsr_tb_final_dataset_20260719/splits/README.md)。
217
+ - [LST单位核验](../experiments/data/LST_ENCODING_VERIFICATION.md)、[HLP已有来源配对检查](prithvi/source_alignment.json)。
218
+ - [全量温度复杂度统计](lst_sr_census_20260913/REPORT_ZH.md)、[coarse LST+HLS全量评估](lst_hls_sr_census_20260913/REPORT_ZH.md)、[全量索引/光学一致性验收](lst_hls_sr_census_20260913/coverage_audit.json)。历史结果中的`synthetic_lr/native_lr/hr`字段分别按合成coarse/真实coarse/fine解释。
219
+
220
+ 尚待补齐:HLP历史执行版本与选tile清单、实际LST贡献景/时间及逐patch地理变换;HLC最初持出test的选择规则与完整温度导出/QA说明;两套的全量独立配准与跨split footprint重叠核验。HLP下载算法与候选产品来源已由新代码确认,不再列为完全未知。派生数据集自己的作者署名、许可、版本发布与引用标识尚待整理,不从源产品许可或历史模型名推定。
221
+
222
+ ## 附录A. 全量空间分布
223
+
224
+ 按目录/清单MGRS tile编码的纬度带归组,绝对纬度带边界统一为32°和64°,不同于旧HLC按中心纬度30°/60°的分组。该统计不是精确patch边界或国家覆盖范围;MGRS规则见[NGA官方说明](https://earth-info.nga.mil/?action=coordsys&dir=coordsys)。
225
+
226
+ | 数据集 | 绝对纬度带 | tiles | HLS样本 | fine LST样本 |
227
+ | --- | --- | --- | --- | --- |
228
+ | HLP | 0°–32° | 1,391 | 110,093 | 110,093 |
229
+ | HLP | 32°–64° | 1,469 | 117,666 | 117,666 |
230
+ | HLP | ≥64° | 234 | 14,657 | 14,657 |
231
+ | HLC | 0°–32° | 1,063 | 102,855 | 1,067,426 |
232
+ | HLC | 32°–64° | 1,247 | 166,875 | 1,764,632 |
233
+ | HLC | ≥64° | 180 | 8,078 | 59,949 |
234
+
235
+ | 数据集 | 半球 | tiles | HLS样本 | fine LST样本 |
236
+ | --- | --- | --- | --- | --- |
237
+ | HLP | 北半球 | 2,428 | 191,638 | 191,638 |
238
+ | HLP | 南半球 | 666 | 50,778 | 50,778 |
239
+ | HLC | 北半球 | 1,987 | 225,859 | 2,341,943 |
240
+ | HLC | 南半球 | 503 | 51,949 | 550,064 |
241
+
242
+ HLP覆盖60个UTM分区,HLC覆盖58个。共有1,767个相同tile ID,跨数据集去重后为3,817个tile ID;相同ID不代表相同patch或时相。HLP每tile含1–92条记录,均值78.35;HLC每tile含1–196个月份集合,均值111.57。HLC清单中心纬度范围为52.86°S–78.80°N;HLP缺少可直接核验的精确坐标字段,不报告精确纬度端点。
243
+
244
+ ## 附录B. 年份与日历月份分布
245
+
246
+ HLP HLS按场景ID日期统计;`metadata.datetime`经下载代码确认是HLS候选观测的检索锚点,不是LST贡献景采集时间。HLC HLS按自身采集时间,温度仅按可用月份的实际来源日期统计。
247
+
248
+ | 年份 | HLP HLS | HLP检索锚点 | HLC HLS | HLC fine LST |
249
+ | --- | --- | --- | --- | --- |
250
+ | 2014 | 16,916 | 16,916 | 0 | 0 |
251
+ | 2015 | 17,422 | 17,422 | 0 | 0 |
252
+ | 2016 | 15,480 | 15,480 | 0 | 0 |
253
+ | 2017 | 14,083 | 14,083 | 0 | 0 |
254
+ | 2018 | 14,792 | 14,792 | 0 | 0 |
255
+ | 2019 | 15,197 | 15,197 | 45,735 | 178,032 |
256
+ | 2020 | 14,779 | 14,779 | 42,688 | 163,634 |
257
+ | 2021 | 16,408 | 16,316 | 36,675 | 225,980 |
258
+ | 2022 | 29,182 | 29,274 | 48,513 | 603,165 |
259
+ | 2023 | 27,474 | 27,474 | 31,436 | 644,785 |
260
+ | 2024 | 27,651 | 27,661 | 41,572 | 554,132 |
261
+ | 2025 | 29,575 | 29,565 | 31,189 | 522,279 |
262
+ | 2026 | 3,457 | 3,457 | 0 | 0 |
263
+ | 合计 | 242,416 | 242,416 | 277,808 | 2,892,007 |
264
+
265
+ HLP记录日期范围2014-01-01至2026-02-14,2026年仅含年初;HLC HLS为2019-01-01至2025-12-29,fine LST为2019-01-01至2025-12-31。不同月份允许来自不同年份,HLS不保证与全部月份同期。
266
+
267
+ | 月份 | HLP HLS | HLP检索锚点 | HLC HLS | HLC fine LST |
268
+ | --- | --- | --- | --- | --- |
269
+ | 1月 | 17,168 | 17,252 | 8,423 | 197,646 |
270
+ | 2月 | 16,538 | 16,536 | 12,192 | 234,546 |
271
+ | 3月 | 20,220 | 20,190 | 10,113 | 251,264 |
272
+ | 4月 | 24,891 | 24,684 | 25,815 | 257,714 |
273
+ | 5月 | 21,578 | 21,664 | 44,946 | 259,266 |
274
+ | 6月 | 18,704 | 18,855 | 72,287 | 255,967 |
275
+ | 7月 | 23,880 | 23,813 | 29,109 | 236,549 |
276
+ | 8月 | 22,885 | 23,091 | 21,792 | 246,583 |
277
+ | 9月 | 20,774 | 20,291 | 16,273 | 254,489 |
278
+ | 10月 | 21,477 | 21,821 | 9,975 | 258,359 |
279
+ | 11月 | 17,910 | 17,910 | 20,166 | 235,396 |
280
+ | 12月 | 16,391 | 16,309 | 6,717 | 204,228 |
281
+ | 合计 | 242,416 | 242,416 | 277,808 | 2,892,007 |
282
+
283
+ 以上均为patch样本计数,不是去重后的卫星场景数;同一场景的多个patch分别计数。
284
+
285
+ ## 附录C. 重复位置记录与月份可用性
286
+
287
+ HLP按`(tile,row,col)`归组得到232,156个候选空间键,96.02%只有一次观测。该键不含完整地理变换,不能直接认定为已构造或严格配准的连续时间序列。
288
+
289
+ | HLP同一空间键记录数 | 空间键数 |
290
+ | --- | --- |
291
+ | 1 | 222,906 |
292
+ | 2 | 8,400 |
293
+ | 3 | 711 |
294
+ | 4 | 120 |
295
+ | 5 | 17 |
296
+ | 6 | 2 |
297
+
298
+ | HLC可用月份槽位数 | 月份集合数 | 占比 |
299
+ | --- | --- | --- |
300
+ | 6 | 2,664 | 0.96% |
301
+ | 7 | 2,873 | 1.03% |
302
+ | 8 | 1,204 | 0.43% |
303
+ | 9 | 61,685 | 22.20% |
304
+ | 10 | 74,480 | 26.81% |
305
+ | 11 | 72,509 | 26.10% |
306
+ | 12 | 62,393 | 22.46% |
307
+
308
+ HLC平均每个月份集合含10.41个可用月份,全部3,333,696个存储槽位中86.75%可用。12个槽位均可用的集合为62,393个(22.46%);“槽位完整”不表示同一年连续12个月。每个月份集合固定一份HLS。
309
+
310
+ ## 附录D. HLC 合成退化 pilot 固定子集(2026-09-15)
311
+
312
+ 用户选择先在固定子集上短程比较 EFDiff-x₀ 与 EFDiff-ε。该子集属于实验资产,不改变 HLC 原 train/val/test 划分或本报告的全量计数。协议为 `efdiff-hlc-synthetic-pilot-16384-512-v1`;读取仍显式使用 `prepared="processed_data/v1"`。
313
+
314
+ | 用途 | 有效 fine-LST patch-month | 覆盖原 split 的 tiles | 每 tile 样本数 |
315
+ | --- | ---: | ---: | ---: |
316
+ | pilot train | 16,384 | 2,249 | 6–8 |
317
+ | pilot val | 512 | 118 | 4–5 |
318
+
319
+ 使用 seed=20260915,按 tile 尽量等额分配,样本不足的 tile 受容量限制,余量按固定随机顺序分配;tile 内月份样本无放回抽样。训练与验证的 record_id、tile 均无交集。清单保留原索引、record_id、月份槽位和 tile;成员哈希见[子集记录](../experiments/efdiff_hlc/pilot_membership/summary.json)。同一月份集合的 HLS 可被多个月份复用,不保证与每个月份同期。
320
+
321
+ 输入为 fine LST 经合成 Wald ×32 退化得到的 coarse LST,加关联 HLS;真实 MODIS coarse LST 不参与该实验。新的 condition/residual 统计只使用选中的16,384个训练月份拟合;验证共用训练统计,test不参与。每模型5个子集epoch、有效batch64,共1,280次更新和81,920次月份样本呈现。主对照固定第5轮EMA,并报告bicubic基线、有效像素RMSE/MAE和同样本图。该pilot不能表述成全量或已收敛的论文复现;运行状态与配置见[实验说明](../experiments/efdiff_hlc/README.md)。
322
+
323
+ ### 后续全量1轮实验(2026-09-16)
324
+
325
+ pilot完成后,用户要求两模型尝试1个完整全量训练epoch。该新实验恢复使用HLC原train的全部2,608,772条有效月份样本(250,449份HLS/月集合、2,249 tiles),每条呈现1次;每模型40,763次更新,最后一次4条。去噪器从头初始化,Prithvi继续使用冻结预训练权重,新的condition/residual统计由完整train拟合。验证仍使用上述固定512条val,test不参与;此处“全量”仅指训练成员,不表示已评估完整val/test。数据版本和成员划分不变,预算及运行状态见[全量1轮登记](../experiments/efdiff_hlc/epoch1_run_manifest.json)。
326
+
327
+ 用户追加要求一天内完成,截止为2026-09-18 04:23 UTC。单卡准备版本由每模型两张H200的DDP版本接替;保留完整训练成员、每条一次、有效batch64和最后4条的准确加权,数据版本与归一化拟合范围不变。当前状态以[一天期限运行登记](../experiments/efdiff_hlc/deadline_run_manifest.json)为准,原全量统计分片继续复用,测速和smoke结果不作为正式训练结果。
data_inspection/HLP_SOURCE_PROVENANCE.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HLP 下载来源与实现核对
2
+
3
+ 更新日期:2026-09-13。用户提供的第一套下载实现实际位于 `C:/Users/rog/Desktop/lst-super-resolution/data_download/`。本次只读取并保存代码,没有运行下载、重新认证GEE或修改冻结数据。
4
+
5
+ 七个Python源文件已逐字节复制到[代码快照目录清单](provenance/hlp_download_20260913/source_manifest.json),记录SHA-256与仓库提交`5f668490d976f211b192569dd941e9f88d6f4c3b`。该提交时间为2026-04-20;当前数据的下载进度记录早于此快照,因此不声称此提交就是全部242,416条记录的原始运行版本。它是用户指定的生成实现,可确认算法与产品族;逐样本历史追溯仍需原运行清单。
6
+
7
+ ## 确认的产品来源
8
+
9
+ | 模态 / 辅助数据 | 当前下载实现 | 用途 |
10
+ |---|---|---|
11
+ | HLS光学 | `NASA/HLS/HLSL30/v002`,`B2`–`B7`、`Fmask` | Landsat来源的六波段光学条件;代码没有查询HLSS30/Sentinel-2 |
12
+ | fine LST | `LANDSAT/LC08/C02/T1_L2`与`LANDSAT/LC09/C02/T1_L2`,`ST_B10` | Landsat 8/9 Collection 2 Tier 1 Level-2温度;代码合并两类来源,不意味着每个样本都同时含两卫星 |
13
+ | LST QA | 同一候选mosaic的`QA_PIXEL` | 当前代码尝试附带下载;失败也允许保存LST,不参与该下载实现的温度逐像元云过滤 |
14
+ | 地表覆盖 | `COPERNICUS/Landcover/100m/Proba-V-C3/Global/2019`,或本地2019年分类栅格 | tile筛选、dominant LULC分层;不是随每个patch交付的逐像元标签 |
15
+ | 生态区 | `RESOLVE/ECOREGIONS/2017`,或本地Ecoregions2017 shapefile | tile覆盖补齐;不是温度来源 |
16
+
17
+ 证据:[常量](provenance/hlp_download_20260913/common.py)、[下载实现](provenance/hlp_download_20260913/download_patches.py)、[tile选择](provenance/hlp_download_20260913/select_tiles.py)。代码自述参考Prithvi采样策略,是本项目自行构建配对数据的依据,不是Prithvi官方数据集身份的依据。
18
+
19
+ ## 日期选择、mosaic与空间网格
20
+
21
+ 1. [Phase 2](provenance/hlp_download_20260913/build_sequences.py)按bbox中心点查询HLSL30,每季度至多取10条满足场景云量条件的候选,按日去重,必要时按排序后的日期索引`linspace`取样。[入口](provenance/hlp_download_20260913/run_pipeline.py)设置2014–2026年、每tile至多48个候选观测、场景云量`<20`。有已有CSV时会跳过重建,因此默认参数不独立证明历史执行参数。
22
+ 2. `metadata.datetime`直接取Phase 2的`observations.csv`时间,记作检索锚点t,其日历日为D。实际HLS在`[D−3天,D+4天)`重新搜索,按场景`CLOUD_COVERAGE`最小选取,不按离t最近选取;`hls_image_id`记录的是此时选中的影像。
23
+ 3. LST独立在`[D−1天,D+2天)`查询Landsat 8/9。代码将相对t的绝对时间差降序排列,再`mosaic()`。GEE从末景向前优先使用有效像元,因此较近时刻优先,较远候选可填补其掩码空缺;不是多景平均、不是保证单日或单源景的目标。[GEE mosaic定义](https://developers.google.com/earth-engine/apidocs/ee-imagecollection-mosaic)
24
+ 4. 所有时间窗口先格式化成日期,且右端不包含。HLS与LST各自相对同一锚点搜索,不能将“±1天LST窗口”写成相对**实际所选HLS时刻**的±1天。[filterDate定义](https://developers.google.com/earth-engine/apidocs/ee-imagecollection-filterdate)
25
+ 5. 下载从选中的HLSL30 `B2.projection()`取得CRS与六参数仿射变换;HLS和LST均以该grid请求`3660×3660`数组,再切成`256×256`不重叠patch。边长只取整到14个patch,边缘不足256像元的条带不输出。行列索引对应**实际HLS网格**。
26
+ 6. HLS查询没有强制目录tile与scene tile相等,且没有把`proj_info`写入metadata。当前代码没有为LST指定`.resample('bilinear')`或bicubic;按GEE默认规则解释为最近邻重投影。指定同网格是生成设计,不等于已独立测量的几何配准精度。[GEE重采样规则](https://developers.google.com/earth-engine/guides/resample)
27
+
28
+ **对既有日期统计的修正:**HLP“0天中位数/91.35%同日”的分母和数值不变,但其含义是所选HLS日期与HLS候选检索锚点相比较。它不是HLS–LST采集日期差,不能与HLC实际月份温度日期的728天中位数作同义对照。LST贡献景ID、时间及逐像元来源未保存,现阶段不能从HLP metadata还原真实温度日期差分布。
29
+
30
+ ## 数值处理、质量筛选与格式
31
+
32
+ - HLS服务器端执行`band × 10000 → int16`,检查每波段超出`[-500,15000]`或六波段全零的比例;超过1%丢弃patch。Fmask bits 0–3并集比例超过20%也丢弃。之后**将保存的反射率整数裁剪到`[0,10000]`**。旧样本检查的0/10000边界与此相容;当前读取器“不额外clip”并不否认上游已clip。
33
+ - LST服务器端执行`(ST_B10 × 0.00341802 + 149.0 − 273.15) × 100 → int16`,返回后除以100得到摄氏度。超出`[-50,70]°C`置NaN;tile有效比例低于1%返回无数据;patch缺失超过1%不��存。最终NaN经过填充和整数裁剪,编码为`-32767`,有效温度按摄氏度×100保存。该流程支持既有[单位核验](../experiments/data/LST_ENCODING_VERIFICATION.md)的解释,不需重新套原始DN缩放。
34
+ - `QA_PIXEL`在当前代码中单独请求,可失败;未额外依据QA bit位过滤LST。内置产品掩码、数值范围筛选、QA位过滤是不同机制,不能混称为完整云质量保证。
35
+ - 当前代码可写五个文件(含可选`qa_pixel.npy`),但本项目冻结包只记录`bands.npy/fmask.npy/lst.npy/metadata.json`四文件。不能把新代码的可选字段追加宣称为旧包的已交付字段;不得改变现有冻结schema或mask来伪造一致性。
36
+
37
+ ## Tile选择、split及实际样本成员
38
+
39
+ [`select_tiles()`](provenance/hlp_download_20260913/select_tiles.py)先按每个土地覆盖类别的占比top-500抽至多100个tile,再加城市占比top-1000、高Shannon熵top-1000,补充尚未覆盖且候选tile不少于3个的生态区,剔除指定极地区域。之后按dominant LULC分组:每组shuffle,源val数量为`max(1,int(n_class×0.05))`,其余为train。入口默认seed为42;它不是逐patch全局随机95/5划分。
40
+
41
+ 本项目已确定把源val解释为**测试**,无独立validation。同tile内全部记录继承split。算法现已可说明,但缺原`selected_tiles.csv`及其哈希与冻结成员的逐条复核。固定seed也不保证在改变集合迭代顺序、候选数据或代码版本后得到相同成员;优先发布现有冻结清单。
42
+
43
+ Phase 3每tile最多预留92个patch、同一`(tile,row,col)`最多10条记录;预留后仍可能因LST检查失败而不落盘。待处理观测先shuffle,并发执行及限额会影响实际保留记录;不是保证各年份均匀的采样。
44
+
45
+ [`finalize.py`](provenance/hlp_download_20260913/finalize.py)另提供同tile行列位置排重,以及训练中海洋/沙漠约10%保留,输出`train_samples.json/val_samples.json/manifest.json`,**不会删除原始patch目录**。当前冻结输入来自完整下载记录,保留的`download_progress.json`总数也为242,416;没有证据证明其采用Phase 4的子集清单。因此该阶段应列为“代码提供的后处理”,而非当前数据已经应用的筛选。它的同tile位置排重也不等于相邻tile footprint无交叠。
46
+
47
+ ## 尚需保留的来源边界
48
+
49
+ 已解决:第一套的产品collection、波段、温度公式、上游反射率裁剪、时间检索/mosaic机制、共用导出网格与分层split算法。
50
+
51
+ 尚未解决:全部历史导出的精确代码版本、原选择/观测CSV与最终清单、实际LST贡献scene ID与采集时间、逐patch地理变换,以及独立的全量配准/QA验证。此处代码仅对应HLP,不能据此替代HLC的原始导出实现。
data_inspection/dataset_documentation_audit.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "scope": "All currently retained HLC manifest records; NPZ schema inspected on one bundle only",
3
+ "bundles": 277808,
4
+ "usable_month_pairs": 2892007,
5
+ "used_tile_variant_months": 28027,
6
+ "fine_collection_membership_samples_nonexclusive": {
7
+ "LANDSAT/LC08/C02/T1_L2": 1576097,
8
+ "LANDSAT/LC09/C02/T1_L2": 1325461
9
+ },
10
+ "same_day_modis_id_mismatches": 0,
11
+ "multi_scene_fine_samples": 2877831,
12
+ "grid_pixel_steps_m": [
13
+ [
14
+ 30.0,
15
+ -30.0
16
+ ]
17
+ ],
18
+ "modis_resampling": {
19
+ "nearest": 2892007
20
+ },
21
+ "hls_collection_counts": {
22
+ "NASA/HLS/HLSL30/v002": 277808
23
+ },
24
+ "schema_example_sequence_id": "T01WCP_v000_p0000",
25
+ "schema_example": {
26
+ "temperature": {
27
+ "hr_lst": {
28
+ "shape": [
29
+ 12,
30
+ 256,
31
+ 256
32
+ ],
33
+ "dtype": "int16"
34
+ },
35
+ "hr_valid": {
36
+ "shape": [
37
+ 12,
38
+ 256,
39
+ 256
40
+ ],
41
+ "dtype": "uint8"
42
+ },
43
+ "lr_lst": {
44
+ "shape": [
45
+ 12,
46
+ 8,
47
+ 8
48
+ ],
49
+ "dtype": "int16"
50
+ },
51
+ "lr_valid": {
52
+ "shape": [
53
+ 12,
54
+ 8,
55
+ 8
56
+ ],
57
+ "dtype": "uint8"
58
+ },
59
+ "hr_st_qa_k_x10": {
60
+ "shape": [
61
+ 12,
62
+ 256,
63
+ 256
64
+ ],
65
+ "dtype": "uint8"
66
+ },
67
+ "hr_flags": {
68
+ "shape": [
69
+ 12,
70
+ 256,
71
+ 256
72
+ ],
73
+ "dtype": "uint8"
74
+ },
75
+ "lr_qc_day": {
76
+ "shape": [
77
+ 12,
78
+ 8,
79
+ 8
80
+ ],
81
+ "dtype": "int16"
82
+ },
83
+ "lr_view_angle_deg": {
84
+ "shape": [
85
+ 12,
86
+ 8,
87
+ 8
88
+ ],
89
+ "dtype": "int16"
90
+ },
91
+ "lr_view_time_h_x10": {
92
+ "shape": [
93
+ 12,
94
+ 8,
95
+ 8
96
+ ],
97
+ "dtype": "int16"
98
+ }
99
+ },
100
+ "optical": {
101
+ "hls_reflectance_i16": {
102
+ "shape": [
103
+ 6,
104
+ 256,
105
+ 256
106
+ ],
107
+ "dtype": "int16"
108
+ },
109
+ "hls_valid": {
110
+ "shape": [
111
+ 256,
112
+ 256
113
+ ],
114
+ "dtype": "uint8"
115
+ },
116
+ "hls_fmask": {
117
+ "shape": [
118
+ 256,
119
+ 256
120
+ ],
121
+ "dtype": "uint8"
122
+ },
123
+ "source_time_s": {
124
+ "shape": [],
125
+ "dtype": "int64"
126
+ },
127
+ "candidate_rank": {
128
+ "shape": [],
129
+ "dtype": "uint8"
130
+ }
131
+ }
132
+ }
133
+ }
data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/README.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dataset split protocol
2
+
3
+ Seed: 20260905. Select 118 of 2367 original-train MGRS tiles (approximately 5%) using SHA256(seed:tile) ranking. All sequences and months from a selected tile belong to val. Existing test membership stays fixed.
4
+
5
+ | Split | Sequences | MGRS tiles | Usable months |
6
+ |---|---:|---:|---:|
7
+ | train | 250,449 | 2,249 | 2,608,772 |
8
+ | val | 13,694 | 118 | 141,711 |
9
+ | test | 13,665 | 123 | 141,524 |
10
+
11
+ The three manifests contain the current split labels. Membership lists and hashes are stored alongside this file. Use train for fitting, val for model selection, and test for final evaluation. Tile IDs are disjoint; neighboring-tile geographic footprint overlap has not been assessed.
data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/split_summary.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "date": "2026-09-05",
3
+ "method": "Rank sorted original-train MGRS tile IDs by SHA256(seed:tile); select first round(0.05*N).",
4
+ "seed": 20260905,
5
+ "target_train_tile_fraction": 0.05,
6
+ "eligible_train_tiles": 2367,
7
+ "selected_val_tiles": 118,
8
+ "counts": {
9
+ "test": {
10
+ "sequences": 13665,
11
+ "tiles": 123,
12
+ "usable_months": 141524
13
+ },
14
+ "train": {
15
+ "sequences": 250449,
16
+ "tiles": 2249,
17
+ "usable_months": 2608772
18
+ },
19
+ "val": {
20
+ "sequences": 13694,
21
+ "tiles": 118,
22
+ "usable_months": 141711
23
+ }
24
+ },
25
+ "test_membership_unchanged": true,
26
+ "all_non_split_csv_fields_unchanged": true,
27
+ "pairwise_tile_id_overlap": 0,
28
+ "spatial_footprint_overlap_checked": false,
29
+ "files": [
30
+ {
31
+ "file": "phase4_dataset_manifest.csv",
32
+ "renamed_rows": 13694,
33
+ "before_sha256": "61e26ac492f5346a4e02b406914d68464638fff3653d2018196714943cee4edb",
34
+ "after_sha256": "7110aca1ec7ef1d55b3098686e98139d9230577734d45863468a5622af0c253c"
35
+ },
36
+ {
37
+ "file": "phase3_tile_variant_months_merged.csv",
38
+ "renamed_rows": 1416,
39
+ "before_sha256": "23bdb789ec6e01644f9bf085ee67bef7e13b9ff3af64f5f9b0f1c28977fe4378",
40
+ "after_sha256": "ee7502975b378407110e966c947b63e83c1a7490f4d607461e1809f1cc415d08"
41
+ },
42
+ {
43
+ "file": "hls_l8_conditions_2019_2025_lc08/hls_condition_manifest.csv",
44
+ "renamed_rows": 13694,
45
+ "before_sha256": "79746b7df291944b12a5c0e924b08169c6613603de8d4d4c29e138c3184295e0",
46
+ "after_sha256": "08d8d48d45e592b7e27994bcbc8835c8d493f08cef1f1c851c2d553e602da946"
47
+ }
48
+ ]
49
+ }
data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/test_sequences.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93d3e3d70704823c7cec63357fc994f02dde376c26b9131d86b9d48f23d6697b
3
+ size 392388
data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/test_tiles.txt ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ T03WXN
2
+ T04VFK
3
+ T05WMQ
4
+ T06VXQ
5
+ T09UXU
6
+ T10TGK
7
+ T11UMB
8
+ T12UYE
9
+ T12VWR
10
+ T12VXL
11
+ T13RFM
12
+ T13SCV
13
+ T13TEE
14
+ T13UFB
15
+ T14QLF
16
+ T14QPH
17
+ T14TNL
18
+ T14UNB
19
+ T14VLR
20
+ T15VUE
21
+ T16SED
22
+ T16SGJ
23
+ T16UFE
24
+ T16WFD
25
+ T17MQN
26
+ T17QRD
27
+ T17SNU
28
+ T18MYC
29
+ T18NTG
30
+ T18PZQ
31
+ T18UXF
32
+ T18VXN
33
+ T19HBC
34
+ T19UFA
35
+ T20MNA
36
+ T21JUN
37
+ T21LZC
38
+ T22KGV
39
+ T22LHK
40
+ T23KNU
41
+ T23LRG
42
+ T28PDV
43
+ T29PQN
44
+ T29SQA
45
+ T30NZP
46
+ T30PXU
47
+ T30TTK
48
+ T30TWL
49
+ T30UVU
50
+ T31NGH
51
+ T31RGJ
52
+ T31TGL
53
+ T31UCU
54
+ T31UFT
55
+ T32QRF
56
+ T32UPU
57
+ T32VLL
58
+ T33JZM
59
+ T33PTN
60
+ T34JCM
61
+ T34QDE
62
+ T34TDQ
63
+ T34UED
64
+ T35JPM
65
+ T35SPD
66
+ T35TKF
67
+ T35TLK
68
+ T36KXC
69
+ T36MTT
70
+ T37TDL
71
+ T37VCC
72
+ T37VCK
73
+ T38KQA
74
+ T38KQF
75
+ T38NRN
76
+ T38SMB
77
+ T39UXA
78
+ T40QCF
79
+ T40RGQ
80
+ T41VMC
81
+ T42STJ
82
+ T42UVA
83
+ T42VUH
84
+ T42VWP
85
+ T43QDC
86
+ T43RDK
87
+ T43RGN
88
+ T43VDF
89
+ T43WEM
90
+ T44NMP
91
+ T44PLT
92
+ T44QPF
93
+ T44UPF
94
+ T45RTJ
95
+ T45RXJ
96
+ T45VUJ
97
+ T46QEK
98
+ T46RFU
99
+ T47NQE
100
+ T47QRV
101
+ T47VPG
102
+ T48QXJ
103
+ T48UVD
104
+ T49QGG
105
+ T49RFP
106
+ T49VEH
107
+ T50HNG
108
+ T50RLR
109
+ T50SMH
110
+ T50SPD
111
+ T52KCB
112
+ T52KGD
113
+ T52SBH
114
+ T52SFC
115
+ T52TCP
116
+ T52TGR
117
+ T54SUE
118
+ T54TVK
119
+ T55GDN
120
+ T55JCF
121
+ T55MDP
122
+ T55WFN
123
+ T60HUD
data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/train_sequences.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b07650b7a25d62fa02ad0a6ca8c9fde5c192a906d7ddce0d9e1a15b38fe534f3
3
+ size 7202102
data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/train_tiles.txt ADDED
@@ -0,0 +1,2249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ T01WCP
2
+ T01WCQ
3
+ T01WEQ
4
+ T01WER
5
+ T03VWJ
6
+ T03VXK
7
+ T03WXM
8
+ T03WXQ
9
+ T03WXT
10
+ T04VCL
11
+ T04VCP
12
+ T04VCQ
13
+ T04VDL
14
+ T04VDN
15
+ T04VDP
16
+ T04VEL
17
+ T04VEM
18
+ T04WDB
19
+ T04WDS
20
+ T04WDU
21
+ T04WDV
22
+ T04WEV
23
+ T05VMG
24
+ T05VMH
25
+ T05VMK
26
+ T05VNJ
27
+ T05VPH
28
+ T05VPK
29
+ T05VPL
30
+ T05WPT
31
+ T06VUN
32
+ T06VUQ
33
+ T06VUR
34
+ T06VVP
35
+ T06VWN
36
+ T06VWP
37
+ T06VWR
38
+ T06VXN
39
+ T06VXP
40
+ T06VXR
41
+ T06WVC
42
+ T06WWB
43
+ T06WXC
44
+ T07VCH
45
+ T07VCJ
46
+ T07VCL
47
+ T07VDH
48
+ T07VDJ
49
+ T07VDK
50
+ T07VEJ
51
+ T07VFF
52
+ T07VFG
53
+ T07VFH
54
+ T07VFJ
55
+ T07WFN
56
+ T08VLM
57
+ T08VLN
58
+ T08VLP
59
+ T08VMM
60
+ T08VNK
61
+ T08VPJ
62
+ T08VPK
63
+ T08VPR
64
+ T08WMB
65
+ T08WMS
66
+ T08WNA
67
+ T08WNB
68
+ T08WNS
69
+ T08WNT
70
+ T08WNV
71
+ T08WPA
72
+ T08WPC
73
+ T08WPV
74
+ T09UVA
75
+ T09UVB
76
+ T09UWV
77
+ T09UXS
78
+ T09UYS
79
+ T09UYT
80
+ T09VUC
81
+ T09VUD
82
+ T09VUE
83
+ T09VVC
84
+ T09VVD
85
+ T09VVK
86
+ T09VWJ
87
+ T09WVN
88
+ T09WVP
89
+ T09WVS
90
+ T09WWN
91
+ T09WWQ
92
+ T09WWR
93
+ T09WXR
94
+ T10SEH
95
+ T10SEJ
96
+ T10SFF
97
+ T10SFG
98
+ T10SFH
99
+ T10SGF
100
+ T10SGG
101
+ T10TEK
102
+ T10TEP
103
+ T10TEQ
104
+ T10TES
105
+ T10TET
106
+ T10TFM
107
+ T10TFP
108
+ T10TGQ
109
+ T10UCB
110
+ T10UDA
111
+ T10UDV
112
+ T10UEG
113
+ T10UEU
114
+ T10UEV
115
+ T10UGD
116
+ T10UGE
117
+ T10VCK
118
+ T10VFR
119
+ T10WDA
120
+ T10WEA
121
+ T10WEU
122
+ T11RPP
123
+ T11SKA
124
+ T11SKB
125
+ T11SKC
126
+ T11SLA
127
+ T11SLC
128
+ T11SLU
129
+ T11SLV
130
+ T11SMT
131
+ T11SNT
132
+ T11SPA
133
+ T11TLJ
134
+ T11TLL
135
+ T11TNL
136
+ T11ULA
137
+ T11ULU
138
+ T11UMS
139
+ T11UMT
140
+ T11UPS
141
+ T11UQV
142
+ T11VLL
143
+ T11VNH
144
+ T11VPJ
145
+ T11WMN
146
+ T11WNM
147
+ T11WNN
148
+ T11WNS
149
+ T11WNT
150
+ T11WPP
151
+ T11WPQ
152
+ T11XNE
153
+ T12QWM
154
+ T12RUQ
155
+ T12RVQ
156
+ T12RWS
157
+ T12RWT
158
+ T12RXR
159
+ T12RYP
160
+ T12RZN
161
+ T12STC
162
+ T12SUB
163
+ T12SVB
164
+ T12SVF
165
+ T12SVG
166
+ T12SVJ
167
+ T12SWA
168
+ T12SWJ
169
+ T12SXG
170
+ T12SXJ
171
+ T12SYA
172
+ T12SYG
173
+ T12SYJ
174
+ T12TUL
175
+ T12TUP
176
+ T12TVK
177
+ T12TVL
178
+ T12TVM
179
+ T12TVQ
180
+ T12UUC
181
+ T12UUE
182
+ T12UVB
183
+ T12UYU
184
+ T12VUR
185
+ T12VVK
186
+ T12VVR
187
+ T12VWK
188
+ T12VXM
189
+ T12VXP
190
+ T12WVC
191
+ T12WWE
192
+ T12WWT
193
+ T12WXD
194
+ T12WXT
195
+ T12XVJ
196
+ T12XWJ
197
+ T13QDE
198
+ T13QGE
199
+ T13QHC
200
+ T13QHD
201
+ T13RBH
202
+ T13RCK
203
+ T13RCL
204
+ T13RDH
205
+ T13RDJ
206
+ T13RDK
207
+ T13RDN
208
+ T13RFH
209
+ T13RFL
210
+ T13RFN
211
+ T13RGJ
212
+ T13RGK
213
+ T13RGL
214
+ T13RGN
215
+ T13SBD
216
+ T13SCU
217
+ T13SDV
218
+ T13SED
219
+ T13SER
220
+ T13TCG
221
+ T13TDE
222
+ T13TDK
223
+ T13TEL
224
+ T13UGU
225
+ T13UGV
226
+ T13VCF
227
+ T13VCH
228
+ T13VCJ
229
+ T13VDD
230
+ T13VDE
231
+ T13VDF
232
+ T13VEF
233
+ T13VEG
234
+ T13VEH
235
+ T13VEK
236
+ T13VFC
237
+ T13VFF
238
+ T13VFG
239
+ T13WDN
240
+ T13WFN
241
+ T13WFP
242
+ T13XFA
243
+ T14QKH
244
+ T14QKJ
245
+ T14QKK
246
+ T14QLH
247
+ T14QMG
248
+ T14QMJ
249
+ T14QNG
250
+ T14QNH
251
+ T14QNJ
252
+ T14QNM
253
+ T14QPG
254
+ T14QQF
255
+ T14QQG
256
+ T14QRF
257
+ T14RKP
258
+ T14RKS
259
+ T14RLP
260
+ T14RLQ
261
+ T14RMQ
262
+ T14RMT
263
+ T14RNT
264
+ T14RNV
265
+ T14RPP
266
+ T14RPR
267
+ T14RPU
268
+ T14RPV
269
+ T14SMA
270
+ T14SPB
271
+ T14SPE
272
+ T14SQB
273
+ T14SQF
274
+ T14TKM
275
+ T14TPN
276
+ T14ULE
277
+ T14UMC
278
+ T14UME
279
+ T14UNC
280
+ T14UPF
281
+ T14UQV
282
+ T14VLL
283
+ T14VLN
284
+ T14VMM
285
+ T14VMQ
286
+ T14VNM
287
+ T14VNR
288
+ T14VPL
289
+ T14VPR
290
+ T14WMU
291
+ T14WMV
292
+ T14WNS
293
+ T14WNU
294
+ T14WNV
295
+ T14WPT
296
+ T14WPU
297
+ T14WPV
298
+ T14XMG
299
+ T15PYS
300
+ T15PZS
301
+ T15QTA
302
+ T15QUV
303
+ T15QWV
304
+ T15RTN
305
+ T15RTP
306
+ T15RWP
307
+ T15RXP
308
+ T15STA
309
+ T15SUV
310
+ T15SYC
311
+ T15SYD
312
+ T15SYU
313
+ T15SYV
314
+ T15TTF
315
+ T15TUG
316
+ T15TUH
317
+ T15TUK
318
+ T15TVG
319
+ T15TVK
320
+ T15TVL
321
+ T15TYE
322
+ T15TYF
323
+ T15TYM
324
+ T15UUQ
325
+ T15UUR
326
+ T15UVQ
327
+ T15UVR
328
+ T15UXS
329
+ T15UYP
330
+ T15VUF
331
+ T15VVD
332
+ T15VVE
333
+ T15VVL
334
+ T15VXC
335
+ T15WVM
336
+ T15WVR
337
+ T15WXR
338
+ T15XWE
339
+ T16PBB
340
+ T16PEU
341
+ T16PEV
342
+ T16PFT
343
+ T16PGA
344
+ T16PGS
345
+ T16PGT
346
+ T16PGU
347
+ T16PHA
348
+ T16PHB
349
+ T16QCF
350
+ T16QCJ
351
+ T16SBD
352
+ T16SBH
353
+ T16SBJ
354
+ T16SDJ
355
+ T16SEB
356
+ T16SEC
357
+ T16SEE
358
+ T16SEF
359
+ T16SEJ
360
+ T16SFD
361
+ T16SFG
362
+ T16SFH
363
+ T16SFJ
364
+ T16SGC
365
+ T16TBL
366
+ T16TCM
367
+ T16TCN
368
+ T16TCP
369
+ T16TDL
370
+ T16TDM
371
+ T16TDN
372
+ T16TDQ
373
+ T16TDT
374
+ T16TEK
375
+ T16TEM
376
+ T16TEP
377
+ T16TFN
378
+ T16TGK
379
+ T16TGM
380
+ T16TGN
381
+ T16TGP
382
+ T16UCA
383
+ T16UEF
384
+ T16UFC
385
+ T16UFF
386
+ T16UFU
387
+ T16UGB
388
+ T16UGC
389
+ T16XEG
390
+ T17MNU
391
+ T17MPP
392
+ T17MPS
393
+ T17MPT
394
+ T17MPU
395
+ T17MRN
396
+ T17MRU
397
+ T17NRJ
398
+ T17PNK
399
+ T17QPE
400
+ T17RLL
401
+ T17RLM
402
+ T17RLN
403
+ T17RMK
404
+ T17RML
405
+ T17RMM
406
+ T17RMN
407
+ T17RNK
408
+ T17RNL
409
+ T17SKT
410
+ T17SLU
411
+ T17SMR
412
+ T17SMT
413
+ T17SPU
414
+ T17SPV
415
+ T17SQD
416
+ T17SQV
417
+ T17TKE
418
+ T17TKG
419
+ T17TLG
420
+ T17TLH
421
+ T17TLJ
422
+ T17TMF
423
+ T17TMG
424
+ T17TMH
425
+ T17TMJ
426
+ T17TNE
427
+ T17TNF
428
+ T17TNH
429
+ T17TNJ
430
+ T17TPE
431
+ T17TPH
432
+ T17TPJ
433
+ T17TQH
434
+ T17ULS
435
+ T17ULT
436
+ T17ULU
437
+ T17UNS
438
+ T17UPA
439
+ T17UQT
440
+ T17UQU
441
+ T17UQV
442
+ T17WMU
443
+ T17WMV
444
+ T17WPT
445
+ T17XMD
446
+ T17XMF
447
+ T17XMG
448
+ T17XNG
449
+ T18FWJ
450
+ T18FWM
451
+ T18FXG
452
+ T18FXH
453
+ T18FXJ
454
+ T18FXK
455
+ T18FXM
456
+ T18GWP
457
+ T18GXN
458
+ T18GYR
459
+ T18GYS
460
+ T18GYU
461
+ T18HXC
462
+ T18HYF
463
+ T18LVM
464
+ T18LXN
465
+ T18LZK
466
+ T18LZN
467
+ T18MUB
468
+ T18MVC
469
+ T18MWC
470
+ T18MYU
471
+ T18MYV
472
+ T18MZC
473
+ T18MZS
474
+ T18MZT
475
+ T18NTH
476
+ T18NUG
477
+ T18NUH
478
+ T18NUJ
479
+ T18NUN
480
+ T18NVJ
481
+ T18NVK
482
+ T18NVL
483
+ T18NXJ
484
+ T18NYM
485
+ T18NYN
486
+ T18NZL
487
+ T18PTQ
488
+ T18PVR
489
+ T18PWR
490
+ T18PWS
491
+ T18PYT
492
+ T18QTJ
493
+ T18QUH
494
+ T18QVH
495
+ T18QYG
496
+ T18QZF
497
+ T18QZG
498
+ T18STG
499
+ T18STH
500
+ T18STJ
501
+ T18SUF
502
+ T18TUK
503
+ T18TUQ
504
+ T18TVK
505
+ T18TVL
506
+ T18TWK
507
+ T18TWL
508
+ T18TWR
509
+ T18TXM
510
+ T18TYM
511
+ T18TYN
512
+ T18UUC
513
+ T18UUD
514
+ T18UUE
515
+ T18UUF
516
+ T18UVD
517
+ T18UVF
518
+ T18UVG
519
+ T18UWB
520
+ T18UWC
521
+ T18UWD
522
+ T18UWE
523
+ T18UWF
524
+ T18UXD
525
+ T18UXE
526
+ T18UYB
527
+ T18UYD
528
+ T18UYE
529
+ T18VUM
530
+ T18VVH
531
+ T18VVK
532
+ T18VWH
533
+ T18VWN
534
+ T18VWP
535
+ T18VXH
536
+ T18VXM
537
+ T18WVD
538
+ T18WVS
539
+ T18WWB
540
+ T18WWC
541
+ T18WWD
542
+ T18WWE
543
+ T18WWS
544
+ T18WXD
545
+ T18WXU
546
+ T18WXV
547
+ T18XVF
548
+ T19GER
549
+ T19GFN
550
+ T19GGP
551
+ T19HBB
552
+ T19HBD
553
+ T19HCB
554
+ T19HCC
555
+ T19HCD
556
+ T19HCS
557
+ T19HCT
558
+ T19HDA
559
+ T19HDS
560
+ T19HEV
561
+ T19HFB
562
+ T19JHN
563
+ T19KDR
564
+ T19KFP
565
+ T19KFR
566
+ T19KGA
567
+ T19LBE
568
+ T19LBH
569
+ T19LBJ
570
+ T19LFG
571
+ T19LGC
572
+ T19LHC
573
+ T19LHF
574
+ T19LHL
575
+ T19MBV
576
+ T19MCQ
577
+ T19MCU
578
+ T19MET
579
+ T19MFR
580
+ T19MFV
581
+ T19MGR
582
+ T19MHN
583
+ T19MHQ
584
+ T19MHR
585
+ T19NCJ
586
+ T19NDB
587
+ T19NDD
588
+ T19PBN
589
+ T19PDN
590
+ T19PGM
591
+ T19QBB
592
+ T19QCB
593
+ T19TBG
594
+ T19TCH
595
+ T19TFM
596
+ T19TGL
597
+ T19UCB
598
+ T19UCU
599
+ T19UDV
600
+ T19UEV
601
+ T19UFB
602
+ T19UGV
603
+ T19VCC
604
+ T19VCF
605
+ T19VCG
606
+ T19VDC
607
+ T19VDF
608
+ T19VDK
609
+ T19VEE
610
+ T19VFD
611
+ T19VFL
612
+ T19WDM
613
+ T19WDN
614
+ T19WDQ
615
+ T19WDR
616
+ T19WDT
617
+ T20GKU
618
+ T20HMF
619
+ T20HNG
620
+ T20HNK
621
+ T20HQJ
622
+ T20JKQ
623
+ T20JKR
624
+ T20JKT
625
+ T20JLQ
626
+ T20JLR
627
+ T20JMM
628
+ T20JMQ
629
+ T20JMT
630
+ T20JQL
631
+ T20JQM
632
+ T20JQQ
633
+ T20JQR
634
+ T20KMU
635
+ T20KND
636
+ T20KQA
637
+ T20LKR
638
+ T20LLN
639
+ T20MKS
640
+ T20MKT
641
+ T20MLA
642
+ T20NKG
643
+ T20NKL
644
+ T20NMJ
645
+ T20NNK
646
+ T20PMR
647
+ T20PMS
648
+ T20ULD
649
+ T20ULE
650
+ T20UMF
651
+ T20UNG
652
+ T20UQB
653
+ T20UQE
654
+ T20VLH
655
+ T20VNH
656
+ T20XMN
657
+ T21HUB
658
+ T21JTF
659
+ T21JTG
660
+ T21JTH
661
+ T21JTJ
662
+ T21JTK
663
+ T21JUL
664
+ T21JVM
665
+ T21JVN
666
+ T21JWK
667
+ T21JWN
668
+ T21JXN
669
+ T21KTA
670
+ T21KVB
671
+ T21KVP
672
+ T21KVT
673
+ T21KWP
674
+ T21KZA
675
+ T21KZB
676
+ T21KZQ
677
+ T21LXC
678
+ T21LYD
679
+ T21LZE
680
+ T21MTP
681
+ T21MTQ
682
+ T21MTV
683
+ T21MUQ
684
+ T21MUV
685
+ T21MXU
686
+ T21MYU
687
+ T21MZT
688
+ T21NVB
689
+ T21NXG
690
+ T21NYD
691
+ T21NYG
692
+ T21NZA
693
+ T21NZD
694
+ T21UUA
695
+ T21UUV
696
+ T21UWP
697
+ T21UWU
698
+ T21UXQ
699
+ T21WXV
700
+ T22HCJ
701
+ T22JCM
702
+ T22JCT
703
+ T22JEN
704
+ T22JFS
705
+ T22KBF
706
+ T22KBG
707
+ T22KCF
708
+ T22KDC
709
+ T22KFA
710
+ T22KFV
711
+ T22KGE
712
+ T22KGG
713
+ T22KHA
714
+ T22KHE
715
+ T22KHF
716
+ T22KHG
717
+ T22LBH
718
+ T22LDM
719
+ T22LEN
720
+ T22LGH
721
+ T22LGK
722
+ T22LGM
723
+ T22LHH
724
+ T22LHJ
725
+ T22MCA
726
+ T22MHS
727
+ T22WEU
728
+ T22WEV
729
+ T23KKA
730
+ T23KKQ
731
+ T23KKR
732
+ T23KKS
733
+ T23KKT
734
+ T23KKV
735
+ T23KLB
736
+ T23KLQ
737
+ T23KLR
738
+ T23KLS
739
+ T23KMQ
740
+ T23KMS
741
+ T23KNT
742
+ T23KPT
743
+ T23KPU
744
+ T23LKC
745
+ T23LKE
746
+ T23LLF
747
+ T23LLG
748
+ T23LLL
749
+ T23LMH
750
+ T23LND
751
+ T23LNG
752
+ T23LPD
753
+ T23LQJ
754
+ T23MKM
755
+ T23MLM
756
+ T23MMM
757
+ T23MNS
758
+ T23MQM
759
+ T23MQS
760
+ T23MRS
761
+ T23VMH
762
+ T23VNJ
763
+ T24KUD
764
+ T24LTP
765
+ T24LUP
766
+ T24LVL
767
+ T24LWM
768
+ T24LXN
769
+ T24LXR
770
+ T24MTS
771
+ T24MTT
772
+ T24MUB
773
+ T24MUU
774
+ T24MUV
775
+ T24MVA
776
+ T24MXV
777
+ T24VUR
778
+ T24WXU
779
+ T26WMB
780
+ T26WMD
781
+ T26WPC
782
+ T26WPE
783
+ T27WVU
784
+ T27WVV
785
+ T28PCV
786
+ T28PET
787
+ T28PFB
788
+ T28PFU
789
+ T28PGQ
790
+ T28PGV
791
+ T28PHR
792
+ T28QCJ
793
+ T28RFQ
794
+ T29NQH
795
+ T29NRH
796
+ T29PKP
797
+ T29PLN
798
+ T29PML
799
+ T29PMM
800
+ T29PNL
801
+ T29PQR
802
+ T29PRK
803
+ T29PRN
804
+ T29QMB
805
+ T29QPA
806
+ T29QQB
807
+ T29RMQ
808
+ T29RNQ
809
+ T29SNB
810
+ T29SND
811
+ T29SPB
812
+ T29SPC
813
+ T29SQC
814
+ T29SQR
815
+ T29TNG
816
+ T29TNH
817
+ T29TPE
818
+ T29TPG
819
+ T29TQE
820
+ T29TQH
821
+ T29UPA
822
+ T29UPV
823
+ T30NXN
824
+ T30NXP
825
+ T30NYN
826
+ T30NYP
827
+ T30NZN
828
+ T30PTV
829
+ T30PVR
830
+ T30PWQ
831
+ T30QVD
832
+ T30QWF
833
+ T30QWK
834
+ T30QXE
835
+ T30QXG
836
+ T30RTN
837
+ T30RUR
838
+ T30RWP
839
+ T30RXR
840
+ T30STB
841
+ T30STF
842
+ T30SUD
843
+ T30SUJ
844
+ T30SVD
845
+ T30SVG
846
+ T30SWD
847
+ T30SWG
848
+ T30SWH
849
+ T30SXD
850
+ T30SXH
851
+ T30SXJ
852
+ T30TUK
853
+ T30TUN
854
+ T30TVK
855
+ T30TVL
856
+ T30TVN
857
+ T30TWM
858
+ T30TWN
859
+ T30TXK
860
+ T30TXP
861
+ T30TXS
862
+ T30TXT
863
+ T30TYL
864
+ T30TYQ
865
+ T30TYR
866
+ T30TYS
867
+ T30TYT
868
+ T30UUF
869
+ T30UVG
870
+ T30UWB
871
+ T30UWC
872
+ T30UWD
873
+ T30UWE
874
+ T30UWF
875
+ T30UWU
876
+ T30UXC
877
+ T30UXD
878
+ T30UXF
879
+ T30UXU
880
+ T30UXV
881
+ T30UYB
882
+ T30UYC
883
+ T30UYV
884
+ T30VVH
885
+ T31NCH
886
+ T31NDH
887
+ T31NEH
888
+ T31NEJ
889
+ T31NFJ
890
+ T31PBL
891
+ T31PCM
892
+ T31PDK
893
+ T31PDL
894
+ T31PEK
895
+ T31PHP
896
+ T31RDJ
897
+ T31RDP
898
+ T31REM
899
+ T31RFM
900
+ T31RGP
901
+ T31SEU
902
+ T31SGA
903
+ T31SGV
904
+ T31TBF
905
+ T31TCG
906
+ T31TCJ
907
+ T31TCN
908
+ T31TDG
909
+ T31TDH
910
+ T31TDJ
911
+ T31TEJ
912
+ T31TEL
913
+ T31TFJ
914
+ T31TFK
915
+ T31TFL
916
+ T31TFM
917
+ T31TFN
918
+ T31TGK
919
+ T31TGM
920
+ T31TGN
921
+ T31UCQ
922
+ T31UCT
923
+ T31UDP
924
+ T31UDQ
925
+ T31UDR
926
+ T31UEP
927
+ T31UEQ
928
+ T31UER
929
+ T31UES
930
+ T31UFQ
931
+ T31UFR
932
+ T31UFS
933
+ T31UGP
934
+ T31UGQ
935
+ T31UGR
936
+ T31UGS
937
+ T31UGT
938
+ T31UGU
939
+ T32NKM
940
+ T32NKN
941
+ T32NLM
942
+ T32NLN
943
+ T32NPM
944
+ T32PKU
945
+ T32PLA
946
+ T32PLQ
947
+ T32PLR
948
+ T32PLU
949
+ T32PMR
950
+ T32PMU
951
+ T32PMV
952
+ T32PNR
953
+ T32PNS
954
+ T32PNT
955
+ T32PRA
956
+ T32QPD
957
+ T32QPL
958
+ T32RQQ
959
+ T32RQV
960
+ T32SKF
961
+ T32SLF
962
+ T32SMJ
963
+ T32SND
964
+ T32SNF
965
+ T32TLR
966
+ T32TLS
967
+ T32TLT
968
+ T32TMQ
969
+ T32TMR
970
+ T32TMS
971
+ T32TMT
972
+ T32TNR
973
+ T32TNT
974
+ T32TPN
975
+ T32TPP
976
+ T32TPQ
977
+ T32TQN
978
+ T32TQP
979
+ T32TQR
980
+ T32TQS
981
+ T32ULA
982
+ T32ULB
983
+ T32ULC
984
+ T32ULD
985
+ T32ULU
986
+ T32ULV
987
+ T32UMA
988
+ T32UMB
989
+ T32UMC
990
+ T32UMD
991
+ T32UMU
992
+ T32UNA
993
+ T32UNB
994
+ T32UNC
995
+ T32UND
996
+ T32UNE
997
+ T32UNF
998
+ T32UNG
999
+ T32UNU
1000
+ T32UNV
1001
+ T32UPA
1002
+ T32UPC
1003
+ T32UPD
1004
+ T32UPV
1005
+ T32UQA
1006
+ T32UQC
1007
+ T32UQD
1008
+ T32UQU
1009
+ T32UQV
1010
+ T32VLM
1011
+ T32VLP
1012
+ T32VMQ
1013
+ T32VNR
1014
+ T32VPR
1015
+ T32WPS
1016
+ T33JWN
1017
+ T33JXL
1018
+ T33JXM
1019
+ T33JYH
1020
+ T33JYJ
1021
+ T33KUV
1022
+ T33KVQ
1023
+ T33KVU
1024
+ T33KWT
1025
+ T33KWU
1026
+ T33KYB
1027
+ T33KYR
1028
+ T33KYS
1029
+ T33KZA
1030
+ T33KZP
1031
+ T33KZV
1032
+ T33LTE
1033
+ T33LUK
1034
+ T33LUL
1035
+ T33LVC
1036
+ T33LVG
1037
+ T33LWD
1038
+ T33LWG
1039
+ T33LWH
1040
+ T33LWK
1041
+ T33LXF
1042
+ T33LXH
1043
+ T33LYG
1044
+ T33MTP
1045
+ T33MUV
1046
+ T33NTH
1047
+ T33NUJ
1048
+ T33NVH
1049
+ T33NWH
1050
+ T33NXB
1051
+ T33PUN
1052
+ T33PUR
1053
+ T33PVM
1054
+ T33PVN
1055
+ T33PXK
1056
+ T33PYR
1057
+ T33QVB
1058
+ T33QZE
1059
+ T33QZF
1060
+ T33RUM
1061
+ T33SVB
1062
+ T33SWC
1063
+ T33TUG
1064
+ T33TUL
1065
+ T33TUM
1066
+ T33TVG
1067
+ T33TWF
1068
+ T33TWL
1069
+ T33TWN
1070
+ T33TXJ
1071
+ T33TXM
1072
+ T33TXN
1073
+ T33TYL
1074
+ T33TYM
1075
+ T33TYN
1076
+ T33UUP
1077
+ T33UUQ
1078
+ T33UUR
1079
+ T33UUS
1080
+ T33UUT
1081
+ T33UUU
1082
+ T33UVP
1083
+ T33UVQ
1084
+ T33UVR
1085
+ T33UVS
1086
+ T33UVT
1087
+ T33UVU
1088
+ T33UVV
1089
+ T33UWP
1090
+ T33UWQ
1091
+ T33UWR
1092
+ T33UWS
1093
+ T33UWT
1094
+ T33UXP
1095
+ T33UXQ
1096
+ T33UXR
1097
+ T33UXS
1098
+ T33UXT
1099
+ T33UXU
1100
+ T33UYP
1101
+ T33UYQ
1102
+ T33UYR
1103
+ T33UYS
1104
+ T33UYT
1105
+ T33UYU
1106
+ T33VUL
1107
+ T33VVF
1108
+ T33WVP
1109
+ T33WWR
1110
+ T33XVF
1111
+ T34HFH
1112
+ T34HGH
1113
+ T34JBP
1114
+ T34JDL
1115
+ T34JFL
1116
+ T34JFR
1117
+ T34JGT
1118
+ T34JHS
1119
+ T34KCC
1120
+ T34KEB
1121
+ T34KFB
1122
+ T34KFE
1123
+ T34KHC
1124
+ T34KHV
1125
+ T34LEN
1126
+ T34LFL
1127
+ T34MCE
1128
+ T34MCU
1129
+ T34MDC
1130
+ T34MEE
1131
+ T34NCP
1132
+ T34NEG
1133
+ T34NFF
1134
+ T34NHN
1135
+ T34PBA
1136
+ T34PFQ
1137
+ T34PHR
1138
+ T34QDJ
1139
+ T34QEE
1140
+ T34QFE
1141
+ T34RGQ
1142
+ T34SEJ
1143
+ T34SFG
1144
+ T34TCR
1145
+ T34TCT
1146
+ T34TDK
1147
+ T34TDL
1148
+ T34TDM
1149
+ T34TDR
1150
+ T34TDS
1151
+ T34TDT
1152
+ T34TEK
1153
+ T34TEL
1154
+ T34TEM
1155
+ T34TEN
1156
+ T34TES
1157
+ T34TET
1158
+ T34TFL
1159
+ T34TGP
1160
+ T34TGQ
1161
+ T34UCA
1162
+ T34UCB
1163
+ T34UCC
1164
+ T34UCD
1165
+ T34UDA
1166
+ T34UDU
1167
+ T34UEA
1168
+ T34UEB
1169
+ T34UEC
1170
+ T34UEV
1171
+ T34UFA
1172
+ T34UGA
1173
+ T34UGV
1174
+ T34WEA
1175
+ T35HKC
1176
+ T35HLD
1177
+ T35HPE
1178
+ T35JKM
1179
+ T35JNL
1180
+ T35JNM
1181
+ T35JPL
1182
+ T35KKA
1183
+ T35KKB
1184
+ T35KMU
1185
+ T35KNQ
1186
+ T35KPP
1187
+ T35KQQ
1188
+ T35KRA
1189
+ T35LKD
1190
+ T35LMC
1191
+ T35LMD
1192
+ T35LMJ
1193
+ T35LNC
1194
+ T35LPE
1195
+ T35LPL
1196
+ T35LQE
1197
+ T35LQL
1198
+ T35LRH
1199
+ T35LRL
1200
+ T35MLN
1201
+ T35MMM
1202
+ T35MNV
1203
+ T35MQS
1204
+ T35MQT
1205
+ T35MQU
1206
+ T35MQV
1207
+ T35MRM
1208
+ T35MRV
1209
+ T35NKD
1210
+ T35NKH
1211
+ T35NLB
1212
+ T35NLC
1213
+ T35NNB
1214
+ T35NPA
1215
+ T35NQF
1216
+ T35NQG
1217
+ T35NQH
1218
+ T35NRA
1219
+ T35NRB
1220
+ T35PKQ
1221
+ T35PRL
1222
+ T35QPD
1223
+ T35RKJ
1224
+ T35RKL
1225
+ T35RMJ
1226
+ T35RPH
1227
+ T35SMD
1228
+ T35SNB
1229
+ T35SNC
1230
+ T35SND
1231
+ T35SPB
1232
+ T35SPC
1233
+ T35SQA
1234
+ T35SQB
1235
+ T35SQC
1236
+ T35SQD
1237
+ T35TLJ
1238
+ T35TMG
1239
+ T35TMJ
1240
+ T35TMK
1241
+ T35TMM
1242
+ T35TMN
1243
+ T35TNE
1244
+ T35TNL
1245
+ T35TNN
1246
+ T35TPM
1247
+ T35TPN
1248
+ T35TQE
1249
+ T35TQM
1250
+ T35ULA
1251
+ T35ULQ
1252
+ T35UMP
1253
+ T35UMQ
1254
+ T35UMT
1255
+ T35UNP
1256
+ T35UNQ
1257
+ T35UNV
1258
+ T35UPQ
1259
+ T35UPR
1260
+ T35UQR
1261
+ T35UQS
1262
+ T35VPG
1263
+ T35VPK
1264
+ T36JTT
1265
+ T36JUP
1266
+ T36JUR
1267
+ T36JUS
1268
+ T36JUT
1269
+ T36JVR
1270
+ T36KTF
1271
+ T36KTG
1272
+ T36KUV
1273
+ T36KVC
1274
+ T36KVD
1275
+ T36KWU
1276
+ T36KXB
1277
+ T36KXE
1278
+ T36LVP
1279
+ T36LWK
1280
+ T36LXM
1281
+ T36LXR
1282
+ T36LYK
1283
+ T36LZH
1284
+ T36LZJ
1285
+ T36LZK
1286
+ T36LZN
1287
+ T36LZR
1288
+ T36MTC
1289
+ T36MTD
1290
+ T36MTV
1291
+ T36MUC
1292
+ T36MUE
1293
+ T36MUT
1294
+ T36MUV
1295
+ T36MVA
1296
+ T36MWB
1297
+ T36MWC
1298
+ T36MXS
1299
+ T36MXV
1300
+ T36MZA
1301
+ T36MZB
1302
+ T36MZC
1303
+ T36MZT
1304
+ T36NTF
1305
+ T36NTG
1306
+ T36NTH
1307
+ T36NUF
1308
+ T36NUH
1309
+ T36NUK
1310
+ T36NVF
1311
+ T36NVG
1312
+ T36NXG
1313
+ T36NZN
1314
+ T36PVC
1315
+ T36PXQ
1316
+ T36PXS
1317
+ T36PYS
1318
+ T36QUD
1319
+ T36QUH
1320
+ T36QYH
1321
+ T36QZG
1322
+ T36QZJ
1323
+ T36RTT
1324
+ T36RTU
1325
+ T36RTV
1326
+ T36RUU
1327
+ T36RUV
1328
+ T36RXN
1329
+ T36STG
1330
+ T36STH
1331
+ T36STJ
1332
+ T36SUG
1333
+ T36SVF
1334
+ T36SVG
1335
+ T36SXG
1336
+ T36SYA
1337
+ T36SYB
1338
+ T36SYG
1339
+ T36TTK
1340
+ T36TUK
1341
+ T36TUS
1342
+ T36TVK
1343
+ T36TWT
1344
+ T36TXT
1345
+ T36TYL
1346
+ T36UUA
1347
+ T36UUB
1348
+ T36UWU
1349
+ T36UWV
1350
+ T36UXG
1351
+ T36UXU
1352
+ T36UYA
1353
+ T36UYD
1354
+ T36VUM
1355
+ T36VVH
1356
+ T36VXN
1357
+ T36WVB
1358
+ T36WWA
1359
+ T36WWT
1360
+ T37KBA
1361
+ T37LBF
1362
+ T37LCD
1363
+ T37LED
1364
+ T37LEE
1365
+ T37LEH
1366
+ T37LFE
1367
+ T37MBT
1368
+ T37MBV
1369
+ T37MCR
1370
+ T37MCS
1371
+ T37MCU
1372
+ T37MFT
1373
+ T37NCH
1374
+ T37NDE
1375
+ T37NDF
1376
+ T37NEB
1377
+ T37NEF
1378
+ T37NFE
1379
+ T37NFF
1380
+ T37NGA
1381
+ T37NHB
1382
+ T37NHH
1383
+ T37PGP
1384
+ T37PHK
1385
+ T37PHQ
1386
+ T37QED
1387
+ T37RFK
1388
+ T37SBB
1389
+ T37SBS
1390
+ T37SBU
1391
+ T37SCA
1392
+ T37SCB
1393
+ T37SCV
1394
+ T37SDA
1395
+ T37SEA
1396
+ T37TBF
1397
+ T37TDK
1398
+ T37TEK
1399
+ T37TEL
1400
+ T37TEN
1401
+ T37TGH
1402
+ T37TGK
1403
+ T37UCA
1404
+ T37UCB
1405
+ T37UCP
1406
+ T37UCR
1407
+ T37UCS
1408
+ T37UDA
1409
+ T37UDP
1410
+ T37UDV
1411
+ T37UEA
1412
+ T37UEB
1413
+ T37UEP
1414
+ T37UET
1415
+ T37UEU
1416
+ T37UEV
1417
+ T37UGT
1418
+ T37UGU
1419
+ T37VDC
1420
+ T37WDQ
1421
+ T37WEQ
1422
+ T38JPT
1423
+ T38KLA
1424
+ T38KLV
1425
+ T38KMC
1426
+ T38KMG
1427
+ T38KNA
1428
+ T38KNB
1429
+ T38KPG
1430
+ T38KQB
1431
+ T38KQC
1432
+ T38KQE
1433
+ T38LPH
1434
+ T38LQH
1435
+ T38NKM
1436
+ T38NLJ
1437
+ T38NMK
1438
+ T38NMM
1439
+ T38NMP
1440
+ T38NQK
1441
+ T38NQM
1442
+ T38NQN
1443
+ T38PLA
1444
+ T38PMB
1445
+ T38PMR
1446
+ T38PNA
1447
+ T38PPA
1448
+ T38QLE
1449
+ T38RKQ
1450
+ T38RLQ
1451
+ T38RPN
1452
+ T38RPV
1453
+ T38RQN
1454
+ T38RQT
1455
+ T38SLH
1456
+ T38SMC
1457
+ T38TLP
1458
+ T38TMK
1459
+ T38TMN
1460
+ T38TMS
1461
+ T38TPS
1462
+ T38TQL
1463
+ T38TQM
1464
+ T38TQR
1465
+ T38ULF
1466
+ T38UMD
1467
+ T38UNC
1468
+ T38UPA
1469
+ T38UQE
1470
+ T38UQU
1471
+ T38WPU
1472
+ T39KTU
1473
+ T39LUE
1474
+ T39LUF
1475
+ T39QVD
1476
+ T39RUK
1477
+ T39RWN
1478
+ T39SUB
1479
+ T39SUD
1480
+ T39SWS
1481
+ T39SWV
1482
+ T39SXA
1483
+ T39SYA
1484
+ T39TTF
1485
+ T39TTG
1486
+ T39TUE
1487
+ T39TUF
1488
+ T39TVE
1489
+ T39TVN
1490
+ T39TXL
1491
+ T39TXM
1492
+ T39UUB
1493
+ T39UUV
1494
+ T39UVP
1495
+ T39UVV
1496
+ T39UWP
1497
+ T39UXQ
1498
+ T39UYQ
1499
+ T39UYR
1500
+ T39VUC
1501
+ T39WXQ
1502
+ T39XWA
1503
+ T39XWB
1504
+ T40QCJ
1505
+ T40QCM
1506
+ T40QDM
1507
+ T40QFK
1508
+ T40QFL
1509
+ T40QGK
1510
+ T40RCP
1511
+ T40RFV
1512
+ T40SBF
1513
+ T40SCF
1514
+ T40SEH
1515
+ T40SFG
1516
+ T40SFH
1517
+ T40SGF
1518
+ T40TFR
1519
+ T40TFT
1520
+ T40UCE
1521
+ T40UCV
1522
+ T40UDF
1523
+ T40UFU
1524
+ T40UGA
1525
+ T40UGV
1526
+ T40VDK
1527
+ T40VDQ
1528
+ T40WEA
1529
+ T40WEU
1530
+ T40XDG
1531
+ T41RMN
1532
+ T41RNJ
1533
+ T41TLE
1534
+ T41TPE
1535
+ T41TQE
1536
+ T41TQF
1537
+ T41TQJ
1538
+ T41ULB
1539
+ T41ULQ
1540
+ T41ULR
1541
+ T41UMA
1542
+ T41UMB
1543
+ T41UNQ
1544
+ T41UNR
1545
+ T41UPB
1546
+ T41UQV
1547
+ T41VLD
1548
+ T41VMG
1549
+ T41VNC
1550
+ T41VPJ
1551
+ T41WNN
1552
+ T41WNP
1553
+ T42QVM
1554
+ T42QYK
1555
+ T42QZL
1556
+ T42RUN
1557
+ T42RYT
1558
+ T42RYU
1559
+ T42SUJ
1560
+ T42SVH
1561
+ T42SWC
1562
+ T42SXB
1563
+ T42SXC
1564
+ T42SXD
1565
+ T42SXE
1566
+ T42SYC
1567
+ T42SYD
1568
+ T42SYJ
1569
+ T42TTK
1570
+ T42TUK
1571
+ T42TVL
1572
+ T42TWK
1573
+ T42TWL
1574
+ T42TWM
1575
+ T42TXK
1576
+ T42TXL
1577
+ T42TXP
1578
+ T42TXQ
1579
+ T42TXR
1580
+ T42TYK
1581
+ T42TYL
1582
+ T42TYT
1583
+ T42UUD
1584
+ T42UUE
1585
+ T42UVG
1586
+ T42UVV
1587
+ T42UWG
1588
+ T42UXF
1589
+ T42UXG
1590
+ T42UXV
1591
+ T42UYD
1592
+ T42VUK
1593
+ T42VUN
1594
+ T42VVH
1595
+ T42VVN
1596
+ T42VWH
1597
+ T42VWJ
1598
+ T42VWQ
1599
+ T42VXJ
1600
+ T42VXP
1601
+ T42WVT
1602
+ T42WWC
1603
+ T42WWU
1604
+ T42WXT
1605
+ T42WXU
1606
+ T42XWF
1607
+ T43PEN
1608
+ T43PFM
1609
+ T43PFR
1610
+ T43PGK
1611
+ T43PGN
1612
+ T43PGQ
1613
+ T43PHN
1614
+ T43QBF
1615
+ T43QCB
1616
+ T43QCF
1617
+ T43QCV
1618
+ T43QDD
1619
+ T43QDU
1620
+ T43QEB
1621
+ T43QEF
1622
+ T43QEG
1623
+ T43QGC
1624
+ T43QGU
1625
+ T43QHA
1626
+ T43RBP
1627
+ T43RCQ
1628
+ T43RDP
1629
+ T43RDQ
1630
+ T43REH
1631
+ T43REM
1632
+ T43REN
1633
+ T43REP
1634
+ T43REQ
1635
+ T43RFM
1636
+ T43RFN
1637
+ T43RFP
1638
+ T43RFQ
1639
+ T43RGL
1640
+ T43RGM
1641
+ T43RGP
1642
+ T43RHH
1643
+ T43RHJ
1644
+ T43SBA
1645
+ T43SBB
1646
+ T43SBT
1647
+ T43SBU
1648
+ T43SCS
1649
+ T43SDR
1650
+ T43SDS
1651
+ T43SDU
1652
+ T43SET
1653
+ T43SFR
1654
+ T43SGR
1655
+ T43TBE
1656
+ T43TBF
1657
+ T43TCF
1658
+ T43TDH
1659
+ T43TFH
1660
+ T43TFJ
1661
+ T43UCB
1662
+ T43UDT
1663
+ T43UEB
1664
+ T43UEQ
1665
+ T43UET
1666
+ T43UFB
1667
+ T43VCC
1668
+ T43VCD
1669
+ T43VCE
1670
+ T43VCH
1671
+ T43VCJ
1672
+ T43VDG
1673
+ T43VEC
1674
+ T43VFH
1675
+ T44NMN
1676
+ T44NNN
1677
+ T44PKS
1678
+ T44PLU
1679
+ T44QKE
1680
+ T44QKF
1681
+ T44QKH
1682
+ T44QMD
1683
+ T44QND
1684
+ T44QNJ
1685
+ T44QPG
1686
+ T44QPK
1687
+ T44RKR
1688
+ T44RLN
1689
+ T44RLS
1690
+ T44RMP
1691
+ T44RMU
1692
+ T44RPP
1693
+ T44RQS
1694
+ T44SKC
1695
+ T44SLE
1696
+ T44TPK
1697
+ T44TPN
1698
+ T44TQK
1699
+ T44TQP
1700
+ T44TQR
1701
+ T44ULV
1702
+ T44UMU
1703
+ T44UMV
1704
+ T44UNE
1705
+ T44UNF
1706
+ T44UNG
1707
+ T44UNV
1708
+ T44VLP
1709
+ T44VLQ
1710
+ T44VNH
1711
+ T44VNK
1712
+ T44VNN
1713
+ T44VNQ
1714
+ T44VPL
1715
+ T44VPQ
1716
+ T44WMV
1717
+ T45QTC
1718
+ T45QUC
1719
+ T45QVG
1720
+ T45QWE
1721
+ T45QWF
1722
+ T45QWG
1723
+ T45QXE
1724
+ T45QXF
1725
+ T45QXG
1726
+ T45QYF
1727
+ T45QYG
1728
+ T45QZF
1729
+ T45QZG
1730
+ T45RTM
1731
+ T45RUJ
1732
+ T45RUK
1733
+ T45RVJ
1734
+ T45RVK
1735
+ T45RWH
1736
+ T45RXH
1737
+ T45RYH
1738
+ T45RYK
1739
+ T45SYT
1740
+ T45TWJ
1741
+ T45TXN
1742
+ T45UYS
1743
+ T45UYT
1744
+ T45VUE
1745
+ T45VUF
1746
+ T45VUH
1747
+ T45WVQ
1748
+ T45WWQ
1749
+ T45WWR
1750
+ T45WWS
1751
+ T45WWV
1752
+ T46QBL
1753
+ T46QCL
1754
+ T46QCM
1755
+ T46QDK
1756
+ T46QEM
1757
+ T46QFF
1758
+ T46QGH
1759
+ T46QGJ
1760
+ T46QHD
1761
+ T46RBN
1762
+ T46RBS
1763
+ T46RCN
1764
+ T46RCQ
1765
+ T46RDQ
1766
+ T46RDR
1767
+ T46REP
1768
+ T46RFN
1769
+ T46RFP
1770
+ T46RFQ
1771
+ T46RGQ
1772
+ T46RGU
1773
+ T46SBC
1774
+ T46SCB
1775
+ T46SCF
1776
+ T46SGH
1777
+ T46TCT
1778
+ T46UCD
1779
+ T46UDE
1780
+ T46UEC
1781
+ T46WFE
1782
+ T46XDH
1783
+ T47NND
1784
+ T47NRD
1785
+ T47NRG
1786
+ T47PNR
1787
+ T47PNS
1788
+ T47PNT
1789
+ T47PPR
1790
+ T47PPS
1791
+ T47PPT
1792
+ T47PQQ
1793
+ T47PQR
1794
+ T47PRS
1795
+ T47PRT
1796
+ T47QMA
1797
+ T47QRU
1798
+ T47RKK
1799
+ T47RKN
1800
+ T47RLJ
1801
+ T47RLK
1802
+ T47RML
1803
+ T47RPJ
1804
+ T47RPK
1805
+ T47RQN
1806
+ T47RQP
1807
+ T47RRH
1808
+ T47SPB
1809
+ T47SPU
1810
+ T47SQC
1811
+ T47TMN
1812
+ T47TNN
1813
+ T47TQM
1814
+ T47ULS
1815
+ T47UNU
1816
+ T47WMV
1817
+ T47WNV
1818
+ T48MTA
1819
+ T48MVC
1820
+ T48MYT
1821
+ T48MZT
1822
+ T48PTB
1823
+ T48PTC
1824
+ T48PUB
1825
+ T48PUC
1826
+ T48PVB
1827
+ T48PWR
1828
+ T48PWS
1829
+ T48PWT
1830
+ T48PXB
1831
+ T48PXS
1832
+ T48PYB
1833
+ T48PYT
1834
+ T48PZC
1835
+ T48QTD
1836
+ T48QTE
1837
+ T48QWF
1838
+ T48QWG
1839
+ T48QWH
1840
+ T48QWJ
1841
+ T48QZL
1842
+ T48RTN
1843
+ T48RTQ
1844
+ T48RUN
1845
+ T48RUQ
1846
+ T48RUR
1847
+ T48RUT
1848
+ T48RUV
1849
+ T48RVU
1850
+ T48RWQ
1851
+ T48RXP
1852
+ T48RXR
1853
+ T48RXT
1854
+ T48RXU
1855
+ T48STC
1856
+ T48SUE
1857
+ T48SUF
1858
+ T48SVC
1859
+ T48SWC
1860
+ T48SXH
1861
+ T48SXJ
1862
+ T48SYD
1863
+ T48TYS
1864
+ T48UWC
1865
+ T48VUQ
1866
+ T48VVL
1867
+ T48VVM
1868
+ T48VXL
1869
+ T48VXM
1870
+ T48WXD
1871
+ T48XVG
1872
+ T48XVL
1873
+ T48XVM
1874
+ T48XXF
1875
+ T49JHN
1876
+ T49MCV
1877
+ T49MDM
1878
+ T49MEM
1879
+ T49MEN
1880
+ T49MEU
1881
+ T49MFM
1882
+ T49MHS
1883
+ T49PBQ
1884
+ T49QBF
1885
+ T49QCE
1886
+ T49QCF
1887
+ T49QCG
1888
+ T49QDE
1889
+ T49QDF
1890
+ T49QEE
1891
+ T49QEF
1892
+ T49QFE
1893
+ T49QFF
1894
+ T49QFG
1895
+ T49QGF
1896
+ T49QHF
1897
+ T49QHG
1898
+ T49RBM
1899
+ T49RDH
1900
+ T49REK
1901
+ T49REP
1902
+ T49RFJ
1903
+ T49RFK
1904
+ T49RFL
1905
+ T49RFM
1906
+ T49RFN
1907
+ T49RGJ
1908
+ T49RGK
1909
+ T49RGL
1910
+ T49RGM
1911
+ T49RGN
1912
+ T49RGP
1913
+ T49RGQ
1914
+ T49RHJ
1915
+ T49SBT
1916
+ T49SBU
1917
+ T49SCT
1918
+ T49SCU
1919
+ T49SDU
1920
+ T49SDV
1921
+ T49SEA
1922
+ T49SEB
1923
+ T49SER
1924
+ T49SEU
1925
+ T49SEV
1926
+ T49SFB
1927
+ T49SFD
1928
+ T49SFS
1929
+ T49SFT
1930
+ T49SFU
1931
+ T49SFV
1932
+ T49SGA
1933
+ T49SGC
1934
+ T49SGR
1935
+ T49SGS
1936
+ T49SGT
1937
+ T49SGU
1938
+ T49TCF
1939
+ T49TDE
1940
+ T49TDM
1941
+ T49TEF
1942
+ T49TEN
1943
+ T49TFE
1944
+ T49TFM
1945
+ T49UDT
1946
+ T49UEU
1947
+ T49VDF
1948
+ T49WEQ
1949
+ T49WFP
1950
+ T49XDE
1951
+ T49XEE
1952
+ T50HPJ
1953
+ T50HPK
1954
+ T50JKS
1955
+ T50JLL
1956
+ T50JLN
1957
+ T50JLQ
1958
+ T50JNP
1959
+ T50JPR
1960
+ T50JPS
1961
+ T50JQR
1962
+ T50KNB
1963
+ T50MKB
1964
+ T50NKK
1965
+ T50NLG
1966
+ T50NLH
1967
+ T50PRC
1968
+ T50QKL
1969
+ T50QKM
1970
+ T50QLM
1971
+ T50QML
1972
+ T50QMM
1973
+ T50QRL
1974
+ T50RKR
1975
+ T50RKU
1976
+ T50RKV
1977
+ T50RLS
1978
+ T50RLT
1979
+ T50RLU
1980
+ T50RMN
1981
+ T50RMR
1982
+ T50RMS
1983
+ T50RMT
1984
+ T50RMU
1985
+ T50RMV
1986
+ T50RNS
1987
+ T50RNT
1988
+ T50RNU
1989
+ T50RNV
1990
+ T50RPP
1991
+ T50RPS
1992
+ T50RPV
1993
+ T50RQT
1994
+ T50RQU
1995
+ T50RQV
1996
+ T50SKA
1997
+ T50SKB
1998
+ T50SKC
1999
+ T50SKD
2000
+ T50SKE
2001
+ T50SKF
2002
+ T50SKG
2003
+ T50SKH
2004
+ T50SLA
2005
+ T50SLB
2006
+ T50SLC
2007
+ T50SLD
2008
+ T50SLF
2009
+ T50SLG
2010
+ T50SLH
2011
+ T50SLJ
2012
+ T50SMA
2013
+ T50SMB
2014
+ T50SMC
2015
+ T50SMD
2016
+ T50SME
2017
+ T50SMF
2018
+ T50SMG
2019
+ T50SMJ
2020
+ T50SNA
2021
+ T50SNB
2022
+ T50SNC
2023
+ T50SND
2024
+ T50SNE
2025
+ T50SNF
2026
+ T50SNG
2027
+ T50SNH
2028
+ T50SNJ
2029
+ T50SPA
2030
+ T50SPB
2031
+ T50SPC
2032
+ T50SPE
2033
+ T50SPF
2034
+ T50SQA
2035
+ T50SQB
2036
+ T50SQC
2037
+ T50SQF
2038
+ T50TLK
2039
+ T50TLL
2040
+ T50TMK
2041
+ T50TPK
2042
+ T50TQL
2043
+ T50ULC
2044
+ T50ULV
2045
+ T50UNU
2046
+ T50UPB
2047
+ T50UPV
2048
+ T50WMB
2049
+ T51JUF
2050
+ T51JYL
2051
+ T51KXB
2052
+ T51KYR
2053
+ T51KYS
2054
+ T51KYU
2055
+ T51KZU
2056
+ T51NXJ
2057
+ T51NZJ
2058
+ T51PTS
2059
+ T51PTT
2060
+ T51PUR
2061
+ T51QTF
2062
+ T51QTG
2063
+ T51QTU
2064
+ T51RTM
2065
+ T51RTN
2066
+ T51RTP
2067
+ T51RTQ
2068
+ T51RUH
2069
+ T51RUN
2070
+ T51STA
2071
+ T51STB
2072
+ T51STR
2073
+ T51STS
2074
+ T51STT
2075
+ T51SUB
2076
+ T51SYD
2077
+ T51TTF
2078
+ T51TUF
2079
+ T51TUG
2080
+ T51TVE
2081
+ T51TVF
2082
+ T51TVG
2083
+ T51TVJ
2084
+ T51TWE
2085
+ T51TWF
2086
+ T51TWG
2087
+ T51TWH
2088
+ T51TWJ
2089
+ T51TWN
2090
+ T51TXE
2091
+ T51TXH
2092
+ T51TXJ
2093
+ T51TXK
2094
+ T51TXL
2095
+ T51TXM
2096
+ T51TYJ
2097
+ T51TYK
2098
+ T51TYL
2099
+ T51TYM
2100
+ T51TYN
2101
+ T51UUT
2102
+ T51UVU
2103
+ T51WXV
2104
+ T51XWA
2105
+ T51XWB
2106
+ T52JCL
2107
+ T52JGT
2108
+ T52JHS
2109
+ T52KBA
2110
+ T52KBD
2111
+ T52KCC
2112
+ T52KDC
2113
+ T52KHE
2114
+ T52LEH
2115
+ T52LHK
2116
+ T52SBE
2117
+ T52SBF
2118
+ T52SBJ
2119
+ T52SCE
2120
+ T52SCF
2121
+ T52SCG
2122
+ T52SCJ
2123
+ T52SDE
2124
+ T52SFA
2125
+ T52SFB
2126
+ T52TCQ
2127
+ T52TCR
2128
+ T52TCS
2129
+ T52TFT
2130
+ T52TGQ
2131
+ T52UDF
2132
+ T52UEV
2133
+ T52UGU
2134
+ T52XDF
2135
+ T53HNC
2136
+ T53HND
2137
+ T53HQD
2138
+ T53JLF
2139
+ T53JPH
2140
+ T53JPL
2141
+ T53KKB
2142
+ T53KPB
2143
+ T53KQS
2144
+ T53KRT
2145
+ T53LKG
2146
+ T53LME
2147
+ T53MKU
2148
+ T53MPR
2149
+ T53MPS
2150
+ T53SKU
2151
+ T53SLT
2152
+ T53SLU
2153
+ T53SMT
2154
+ T53SMU
2155
+ T53SNU
2156
+ T53SPA
2157
+ T53SPU
2158
+ T53SQA
2159
+ T53SQV
2160
+ T53TLK
2161
+ T53TLL
2162
+ T53TML
2163
+ T53TNL
2164
+ T53TNM
2165
+ T53UNR
2166
+ T53UPT
2167
+ T53VMF
2168
+ T53WNU
2169
+ T53WPU
2170
+ T54HUF
2171
+ T54HWK
2172
+ T54HXE
2173
+ T54HYK
2174
+ T54JVL
2175
+ T54JXL
2176
+ T54JZT
2177
+ T54KVA
2178
+ T54KVF
2179
+ T54KWB
2180
+ T54KWG
2181
+ T54KYA
2182
+ T54KYG
2183
+ T54KZG
2184
+ T54KZV
2185
+ T54LXR
2186
+ T54MTB
2187
+ T54MUS
2188
+ T54MVV
2189
+ T54MXB
2190
+ T54MXV
2191
+ T54MYT
2192
+ T54STD
2193
+ T54STE
2194
+ T54STF
2195
+ T54SUF
2196
+ T54SUG
2197
+ T54SVG
2198
+ T54SVH
2199
+ T54SVJ
2200
+ T54SWJ
2201
+ T54TWK
2202
+ T54TWN
2203
+ T54TXP
2204
+ T54UUE
2205
+ T54UVE
2206
+ T54UWD
2207
+ T54UXA
2208
+ T54VVK
2209
+ T54WWD
2210
+ T54WXA
2211
+ T55GCQ
2212
+ T55GDP
2213
+ T55GEQ
2214
+ T55HBU
2215
+ T55HCU
2216
+ T55KBU
2217
+ T55KCV
2218
+ T55KDR
2219
+ T55LGK
2220
+ T55MCN
2221
+ T55MCQ
2222
+ T55MHP
2223
+ T55VEG
2224
+ T55WDR
2225
+ T56HKH
2226
+ T56HLH
2227
+ T56MLV
2228
+ T56MMA
2229
+ T56MQT
2230
+ T56VMQ
2231
+ T56WMD
2232
+ T56WNA
2233
+ T56WNC
2234
+ T56WND
2235
+ T56WPA
2236
+ T57UXB
2237
+ T57VXC
2238
+ T57WWP
2239
+ T57WWR
2240
+ T57WWT
2241
+ T57WXR
2242
+ T58GGQ
2243
+ T58GGR
2244
+ T58WDB
2245
+ T59GLK
2246
+ T59GPP
2247
+ T59WNN
2248
+ T59WNT
2249
+ T60WVA
data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/val_sequences.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:722a8ceaf6fac3b620cf5abe33ffec2fe8674a3ac69683a62738e0149bb2e4ca
3
+ size 393651
data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/splits/val_tiles.txt ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ T01WDR
2
+ T08UPE
3
+ T08VNL
4
+ T08VNM
5
+ T08WPT
6
+ T12SVC
7
+ T12VWQ
8
+ T13QFC
9
+ T13RDQ
10
+ T13SDD
11
+ T13VDH
12
+ T14VLM
13
+ T14VNL
14
+ T15SUD
15
+ T15TXG
16
+ T16TEL
17
+ T16UED
18
+ T16UEU
19
+ T16VCH
20
+ T17MPN
21
+ T17SNV
22
+ T18GXP
23
+ T18MVA
24
+ T18SUE
25
+ T18SVJ
26
+ T18TVR
27
+ T18UVC
28
+ T19NDA
29
+ T19UCV
30
+ T20UPG
31
+ T20VML
32
+ T21JUK
33
+ T22HCK
34
+ T22KHV
35
+ T22LGJ
36
+ T22LGL
37
+ T24MTB
38
+ T29RMP
39
+ T30NUN
40
+ T30QUG
41
+ T32SMF
42
+ T32TPR
43
+ T32UMV
44
+ T32UPB
45
+ T32UQB
46
+ T33TUH
47
+ T33TWE
48
+ T33TWM
49
+ T34KFF
50
+ T34KHU
51
+ T34MBA
52
+ T34TCS
53
+ T34UDC
54
+ T34UEU
55
+ T34UFU
56
+ T35JQF
57
+ T35KNB
58
+ T35KPB
59
+ T35LPK
60
+ T35LQH
61
+ T35MQR
62
+ T35TNH
63
+ T35TPE
64
+ T36JUQ
65
+ T36LYH
66
+ T36LYQ
67
+ T36NZK
68
+ T36VWQ
69
+ T37UDB
70
+ T38KNC
71
+ T38NQL
72
+ T38SMG
73
+ T38TPP
74
+ T38TPQ
75
+ T38TQQ
76
+ T39UVT
77
+ T40TGR
78
+ T40UCU
79
+ T42TVK
80
+ T42VXH
81
+ T43QCD
82
+ T43RDN
83
+ T44RMQ
84
+ T44WMB
85
+ T45RWJ
86
+ T45RZH
87
+ T46QBM
88
+ T47NMD
89
+ T47PQT
90
+ T47QPU
91
+ T47RNH
92
+ T48PXT
93
+ T48QUD
94
+ T48RTR
95
+ T48RUU
96
+ T48RVV
97
+ T48RWT
98
+ T48RXQ
99
+ T49REH
100
+ T49SFA
101
+ T49SFC
102
+ T49SGB
103
+ T50QLL
104
+ T50RKP
105
+ T50RNN
106
+ T50RPT
107
+ T50SLE
108
+ T50TNK
109
+ T50UQD
110
+ T51KZB
111
+ T51TYH
112
+ T52JHT
113
+ T53HME
114
+ T53JPG
115
+ T53SPV
116
+ T54HWF
117
+ T56WNB
118
+ T59GPQ
eo_data/README.md ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 两套数据的统一入口
2
+
3
+ 名称与语义以[数据集文档](../data_inspection/FINAL_DATASET_SUMMARY.md)为准;[dataset_catalog.json](../experiments/data/dataset_catalog.json)提供机器可读映射。
4
+
5
+ | 工作名称 | 兼容读取 ID | 文档划分 → API split |
6
+ |---|---|---|
7
+ | HLS-LST-Pairs(HLP)v2 | `prithvi` | train → `train`;validation → `val`;test → `test`;须指定新 prepared |
8
+ | HLS-LST-CrossSensor(HLC) | `lstsr_tb` | train → `train`;validation → `val`;test → `test` |
9
+
10
+ HLP/HLC 是文档名称,冻结 API 仍接收上表的旧 ID。`lst` / `lst_hr` 指 fine-resolution LST;HLC 原字段 `lr_*` 指 coarse-resolution LST。HLC 一条 `sequence_id` 对应月份集合(calendar-month bundle),月份可跨年,不能将其默认作为连续时间序列。Landsat fine LST 是卫星反演参考产品。现有入口返回单模态自重建样本,尚未封装 coarse LST+HLS → fine LST 三元组。
11
+
12
+ HLP 新版读取:`open_dataset("prithvi", "lst", "val", prepared="processed_data/hlp_split_v2_20260914")` 返回独立验证集;同一 prepared 下 `train/test` 分别读取新训练/固定测试。划分为218,975/11,684/11,757对,详见[划分协议](../data_inspection/hlp_split_20260914/README.md)。HLC 继续用 v1。下面未传 prepared 的旧调用示例只用于历史复现;冻结默认仍是 v1,旧 HLP `val` 表示测试。
13
+ +
14
+ +新 HLP 版本的归一化已排除验证成员的贡献,验证与测试共用新训练参数。旧模型见过新验证成员,不能作为独立验证模型直接沿用。
15
+
16
+ 两份数据独立使用;处理方法共用。当前版本是无人工噪声、无几何增强的自重建数据。
17
+
18
+ ## 一键处理与读取
19
+
20
+ 在项目根目录运行:
21
+
22
+ ```powershell
23
+ .\prepare_data.ps1 -Workers 4
24
+ python examples/read_eo_data.py
25
+ ```
26
+
27
+ 预处理命令会处理全量数据并验证结果。中断后重复执行同一命令可从已提交的 512 条记录检查点继续;已完成的数据保持冻结。输出位于 `processed_data/v1/`。开发子集有独立目录,默认训练接口拒绝使用。
28
+
29
+ ```python
30
+ from eo_data import open_datasets, open_dataset
31
+
32
+ data = open_datasets(split="train")
33
+ hlp_hls = data["prithvi"]["hls"]
34
+ hlp_lst = data["prithvi"]["lst"]
35
+ hlc_hls = data["lstsr_tb"]["hls"]
36
+ hlc_lst = data["lstsr_tb"]["lst"]
37
+
38
+ sample = hlp_hls[0]
39
+ x = sample["image"] # float32 [6,256,256]; LST 为 [1,256,256]
40
+ y = sample["target"] # 同值、独立内存
41
+ valid = sample["reference_mask"] # bool [1,256,256],广播到全部通道
42
+ decoded = hlp_hls.denormalize(x) # 仅在 valid 位置代表原数据
43
+ fingerprint = hlp_hls.fingerprint # 保存到实验配置/checkpoint
44
+
45
+ validation = open_dataset("lstsr_tb", "lst", "val")
46
+ ```
47
+
48
+ 此接口按需读取,不会把整个数据集装入内存。使用其他位置时传 `root=项目根目录`;使用其他预处理版本时传 `prepared=该版本目录`(其下含 `prithvi/` 和 `lstsr_tb/`)。别名支持 `prithvi_data`、`lstsr_tb_final_upload_20260721`、`lst_hr`。
49
+
50
+ `get_metadata(i)` 提供来源信息;这些信息不会自动输入模型。`epoch_indices(epoch, seed)` 产生可复现的样本排列。所有样本的 `corruption_mask` 当前为 false,`input_mask` 等于 `reference_mask`。
51
+
52
+ ## PyTorch 训练环境
53
+
54
+ 基础依赖见 `requirements.txt`。NumPy 接口无需 PyTorch;训练环境安装 PyTorch 后可直接调用:
55
+
56
+ ```python
57
+ from eo_data import make_dataloader
58
+
59
+ if __name__ == "__main__": # Windows 多进程必须保留此保护
60
+ loader = make_dataloader("prithvi", "hls", "train",
61
+ batch_size=16, num_workers=4, seed=20260909)
62
+ for batch in loader:
63
+ x, y = batch["image"], batch["target"]
64
+ mask = batch["reference_mask"].expand_as(y)
65
+ # prediction = model(x)
66
+ # loss = (((prediction-y).square() * mask).flatten(1).sum(1)
67
+ # / mask.flatten(1).sum(1)).mean()
68
+ ```
69
+
70
+ 普通 VAE 与 Prithvi 架构 VAE 必须使用相同数据、seed、batch 配置和 mask 损失。Prithvi 如果要求时间维,只做 `x.unsqueeze(2)` 得到 `[B,C,1,H,W]`。训练脚本不要另加归一化、裁剪或尺寸变换。各 epoch 依次迭代同一个 loader;不要每个 epoch 重建并重置相同 generator。
71
+
72
+ ## 固定的数据约定
73
+
74
+ - HLS 六波段顺序:Blue、Green、Red、NIR、SWIR1、SWIR2;原始整数乘 0.0001,读取器无额外 clipping。HLP 下载端已执行 clip(0,10000),不能据读取器行为推定上游未裁剪。
75
+ - HLS 排除源填充值、Fmask 255 与 bit1/2/3,HLC 还与已有 valid mask 取交集。零值、雪、水、气溶胶位不额外剔除。
76
+ - LST 读取 fine-resolution 256×256。两来源均按“摄氏度 × 100”的 int16 存储编码解释,已用原始 Landsat 像元抽样核验并经用户确认,后续实验沿用此约定。恢复摄氏度为 `stored / 100.0`,不重复套用 Landsat 原始 DN 公式。
77
+ - 四组统计只在各自 train 中拟合:先算每个样本有效像元均值/二阶矩,再对样本等权汇总;HLS 按波段,LST 单通道。val/test 复用 train 参数。
78
+ - 无效像元在归一化后填 0,并保留 mask;全无效样本按模态排除,记录在 SQLite `rejected` 表。
79
+ - HLP v2 为独立 train/val/test;旧v1源 train/val 分别表示训练池/测试;HLC 的 train/val/test 分别表示训练/验证/测试。两份数据不合并。HLC 的 HLS 每个月份集合(原键 `sequence_id`)只计一次,LST 仅展开 manifest 的可用月份,不补齐缺月。
80
+
81
+ ### LST 摄氏度读取约定
82
+
83
+ 当前 `image` / `target` 已做 z-score,`denormalize()` 返回存储编码值。因此恢复温度要先反归一化,再除以 100,并使用原始有效 mask:
84
+
85
+ ```python
86
+ import numpy as np
87
+
88
+ ds = open_dataset("prithvi", "lst", "train") # lstsr_tb 使用同样方法
89
+ sample = ds[0]
90
+ temperature_c = ds.denormalize(sample["image"]) / 100.0
91
+ temperature_c = np.where(sample["reference_mask"], temperature_c, np.nan)
92
+ ```
93
+
94
+ 存储值、训练均值和标准差同时除以 100,z-score 保持一致,因此现有训练输入无需重算。MAE/RMSE 若在反归一化后的存储单位中计算,除以 100 得到 °C;MSE 除以 10000。冻结 v1 文件里的未知单位标志是构建时的历史状态,以本约定及[单位核验记录](../experiments/data/LST_ENCODING_VERIFICATION.md)为当前解释。压缩包内的说明保留打包时版本,迁移时一并携带这份更新说明。
95
+
96
+ ## 存储与可恢复性
97
+
98
+ HLP 的四个原始文件逐样本无损编码,512 个样本组成一个 `.eoz` 分片。每个样本独立解压,SQLite 提供字节偏移,可随机读取。编码使用整数差分、字节重排及 Zstandard;NPY 头和 JSON 原始字节均保留。写入后逐条从磁盘解压并核对原始 SHA-256,分片另存完整 SHA-256。
99
+
100
+ HLC 复用已有压缩 NPZ,只新增固定索引、掩码有效像元计数和归一化参数;不复制大量 float32 数组。每个读取进程缓存最近两个源 NPZ。随机读取 LST 月份仍需解压所在的 12 个月份槽位的 fine LST 数组,这是保留现有压缩存储的代价。NPZ 大小和纳秒修改时间与预处理记录不符时拒绝训练;迁移这些源文件应保留修改时间。
101
+
102
+ `bundle.json` 是完成状态与版本证据;只有完成全量扫描、统计、分片校验和索引冻结后才生成。`progress.json` 给出处理中状态。`normalization.json` 保存最终参数;`protocol.json` 是输入规范快照,其历史 status 字段不代表当前产物状态。`verification.json` 保存读取验收结果。
103
+
104
+ ```powershell
105
+ python -m eo_data verify --dataset all --samples 32
106
+ python -m eo_data restore-prithvi --destination D:\restored_prithvi
107
+ ```
108
+
109
+ 恢复目标必须为空;可加 `--limit 8` 验证小批恢复。恢复会写回四个原始文件及辅助文件,内容与原目录一致。恢复命令同时支持分片目录和下述单文件模式。HLC 仍依赖原 NPZ。
110
+
111
+ ## HLP 单文件压缩包
112
+
113
+ 当前交付文件为 `artifacts/prithvi_data_v1_20260909.zip`。它包含全部无损 EOZ 分片、冻结的索引和统计参数,以及读取代码。ZIP64 中的 EOZ 已经压缩,因此使用直接存储;读取器直接跳到样本的字节位置,无需解压整个 ZIP 或整个分片。
114
+
115
+ 在当前项目里,`processed_data/v1/prithvi/storage.json` 指向该 ZIP,原来的 `open_dataset` / `open_datasets` 调用完全相同。只需保留新 ZIP 与轻量索引目录;旧解压目录、旧 ZIP 和单独的 EOZ 分片可在新包验证后清理。
116
+
117
+ 迁移 ZIP 后,可用一条命令验证它并提取必需的索引(不提取大型分片):
118
+
119
+ ```powershell
120
+ python -m eo_data attach-prithvi D:\datasets\prithvi_data_v1_20260909.zip
121
+ ```
122
+
123
+ 迁移到没有代码的新项目时,先从 ZIP 中提取 `eo_data/` 文件夹并安装 `eo_data/requirements.txt`,再在该项目中运行上述命令。也可以完整解压整个 ZIP,直接使用其中的分片目录。ZIP 内容有逐文件 SHA-256 清单,外部 `.sha256` 文件给出整个 ZIP 的校验值。
124
+
125
+ 从已完成、仍保留分片的预处理目录生成并验证新包:
126
+
127
+ ```powershell
128
+ python -m eo_data archive-prithvi --destination artifacts\prithvi_data_v1_20260909.zip
129
+ ```
130
+
131
+ 该命令不覆盖已有压缩包,也不会自行删除原始文件。当前项目的旧副本清理由用户单独授权执行。
132
+
133
+ 构建开始后不要修改 `eo_data/*.py` 或输入 `experiments/data/protocol.json`;恢复会检查代码和协议指纹。v1 的处理规则固定在 `core.py`,编辑协议文本不会自动改变算法。改变处理方法应同步实现代码并使用新输出版本,避免覆盖已用于实验的参数。读取器检查处理代码版本;同一输出目录的并发预处理会被写锁拒绝。
134
+
135
+ ## 验证
136
+
137
+ ```powershell
138
+ python -m pytest tests/test_eo_data.py -q
139
+ ```
140
+
141
+ 测试覆盖整数极值无损恢复、压缩损坏检测、mask/零值规则、样本等权统计、两种源格式的 train-only 参数、月份展开、统一输出、pickle 重建、源文件变化检测、恢复原目录、事务断点续跑、并发写锁,以及删除松散分片后的 ZIP 直接读取与迁移。正式运行另对全部 HLP 压缩记录做字节验证,对所有源样本计算实际有效像元和全训练集统计。
eo_data/__init__.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ """Shared independent-dataset reconstruction inputs."""
2
+ from .dataset import EODataset, open_dataset, open_datasets, make_dataloader
3
+ __all__=['EODataset','open_dataset','open_datasets','make_dataloader']
eo_data/__main__.py ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import argparse
2
+ import json
3
+ from pathlib import Path
4
+ from .core import dataset_name
5
+ from .prepare import PROJECT, prepare_dataset
6
+
7
+ def main():
8
+ parser=argparse.ArgumentParser(description='Unified EO data preparation and reading')
9
+ sub=parser.add_subparsers(dest='command',required=True)
10
+ p=sub.add_parser('prepare')
11
+ p.add_argument('--dataset',default='all')
12
+ p.add_argument('--root',type=Path,default=PROJECT)
13
+ p.add_argument('--output',type=Path)
14
+ p.add_argument('--workers',type=int,default=4)
15
+ p.add_argument('--level',type=int,default=3)
16
+ p.add_argument('--limit',type=int,help='Development subset only; rejected by the default training loader')
17
+ v=sub.add_parser('verify')
18
+ v.add_argument('--root',type=Path,default=PROJECT)
19
+ v.add_argument('--output',type=Path)
20
+ v.add_argument('--dataset',default='all')
21
+ v.add_argument('--samples',type=int,default=16)
22
+ v.add_argument('--allow-development',action='store_true')
23
+ r=sub.add_parser('restore-prithvi')
24
+ r.add_argument('--root',type=Path,default=PROJECT)
25
+ r.add_argument('--prepared',type=Path)
26
+ r.add_argument('--destination',type=Path,required=True)
27
+ r.add_argument('--limit',type=int)
28
+ a=sub.add_parser('archive-prithvi')
29
+ a.add_argument('--root',type=Path,default=PROJECT)
30
+ a.add_argument('--prepared',type=Path)
31
+ a.add_argument('--destination',type=Path,required=True)
32
+ a=sub.add_parser('attach-prithvi')
33
+ a.add_argument('archive',type=Path)
34
+ a.add_argument('--root',type=Path,default=PROJECT)
35
+ a.add_argument('--prepared',type=Path)
36
+ args=parser.parse_args()
37
+ if args.command=='prepare':
38
+ if args.workers<1 or args.workers>32:parser.error('workers must be 1..32')
39
+ if args.limit is not None and args.limit<1:parser.error('limit must be positive')
40
+ output=args.output or args.root/('processed_data/development' if args.limit else 'processed_data/v1')
41
+ names=['prithvi','lstsr_tb'] if args.dataset=='all' else [dataset_name(args.dataset)]
42
+ for name in names:prepare_dataset(args.root.resolve(),name,output.resolve(),args.workers,args.level,args.limit)
43
+ elif args.command=='verify':
44
+ from .verify import verify_all
45
+ print(json.dumps(verify_all(args.root,args.output,args.dataset,args.samples,args.allow_development),indent=2))
46
+ elif args.command=='restore-prithvi':
47
+ from .verify import restore_prithvi
48
+ print(json.dumps(restore_prithvi(args.root,args.prepared,args.destination,args.limit),indent=2))
49
+ elif args.command=='archive-prithvi':
50
+ from .archive import create_archive,attach_archive
51
+ report=create_archive(args.root,args.destination,args.prepared)
52
+ attach_archive(args.root,args.destination,args.prepared,report)
53
+ print(json.dumps(report,indent=2))
54
+ else:
55
+ from .archive import verify_archive,attach_archive
56
+ report=verify_archive(args.archive)
57
+ print(json.dumps(attach_archive(args.root,args.archive,args.prepared,report),indent=2))
58
+
59
+ if __name__=='__main__':main()
eo_data/archive.py ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ZIP64 container around seekable EOZ frames; no second lossy encoding."""
2
+ from pathlib import Path
3
+ import hashlib
4
+ import json
5
+ import os
6
+ import struct
7
+ import time
8
+ import zipfile
9
+
10
+ from .core import VERSION, json_write, sha256_file
11
+
12
+ PREFIX = 'processed_data/v1/prithvi/'
13
+ CONTENTS = 'ARCHIVE_CONTENTS.json'
14
+
15
+
16
+ class ArchiveFrames:
17
+ def __init__(self, root, storage):
18
+ self.path = (Path(root)/storage['archive']).resolve()
19
+ stat = self.path.stat()
20
+ if stat.st_size != storage['size'] or stat.st_mtime_ns != storage['mtime_ns']:
21
+ raise ValueError('Archive changed or moved without reattaching; run attach-prithvi')
22
+ self.stream = self.path.open('rb')
23
+ with zipfile.ZipFile(self.path) as z:
24
+ entries = z.infolist()
25
+ if len(entries) != len({i.filename for i in entries}):
26
+ raise ValueError('Duplicate archive members')
27
+ self.entries = {i.filename: i for i in entries}
28
+ self.offsets = {}
29
+
30
+ def read(self, loc):
31
+ member = PREFIX+'packs/'+loc['shard']
32
+ info = self.entries[member]
33
+ if info.compress_type != zipfile.ZIP_STORED or info.flag_bits & 1:
34
+ raise ValueError('EOZ members must be stored and unencrypted for direct seeking')
35
+ if member not in self.offsets:
36
+ self.stream.seek(info.header_offset)
37
+ header = self.stream.read(30)
38
+ if header[:4] != b'PK\x03\x04':
39
+ raise ValueError('Invalid ZIP local header')
40
+ name_len, extra_len = struct.unpack_from('<HH', header, 26)
41
+ name = self.stream.read(name_len).decode('utf-8')
42
+ if name != member:
43
+ raise ValueError('ZIP local/central member mismatch')
44
+ self.offsets[member] = info.header_offset+30+name_len+extra_len
45
+ offset, length = loc['offset'], loc['length']
46
+ if offset < 0 or length <= 0 or offset+length > info.file_size:
47
+ raise ValueError('Frame exceeds stored shard')
48
+ self.stream.seek(self.offsets[member]+offset)
49
+ frame = self.stream.read(length)
50
+ if len(frame) != length:
51
+ raise ValueError('Truncated archive frame')
52
+ return frame
53
+
54
+ def close(self):
55
+ self.stream.close()
56
+
57
+
58
+ def verify_archive(path):
59
+ path = Path(path).resolve()
60
+ started = time.time()
61
+ with zipfile.ZipFile(path) as z:
62
+ members = z.infolist()
63
+ manifest = json.loads(z.read(CONTENTS))
64
+ names = [i.filename for i in members]
65
+ if len(names) != len(set(names)) or set(names) != set(manifest['files']) | {CONTENTS}:
66
+ raise ValueError('Archive member inventory mismatch')
67
+ for n, (member, expected) in enumerate(manifest['files'].items(), 1):
68
+ info = z.getinfo(member)
69
+ if info.file_size != expected['size'] or info.compress_type != expected['compression']:
70
+ raise ValueError(f'Archive member schema mismatch: {member}')
71
+ h = hashlib.sha256()
72
+ with z.open(member) as source:
73
+ for block in iter(lambda: source.read(8*1024*1024), b''):
74
+ h.update(block)
75
+ if h.hexdigest() != expected['sha256']:
76
+ raise ValueError(f'Archive content hash mismatch: {member}')
77
+ if n % 64 == 0:
78
+ print(json.dumps({'phase':'verify_archive','files':n,'total':len(manifest['files'])}), flush=True)
79
+ bundle = json.loads(z.read(PREFIX+'bundle.json'))
80
+ for shard in bundle['shards']:
81
+ assert manifest['files'][PREFIX+'packs/'+shard['name']]['sha256'] == shard['sha256']
82
+ print('Archive members verified; computing whole-file SHA-256', flush=True)
83
+ digest = sha256_file(path)
84
+ report = {'status':'passed','path':str(path),'size':path.stat().st_size,'mtime_ns':path.stat().st_mtime_ns,
85
+ 'sha256':digest,'members':len(members),'records':bundle['records'],
86
+ 'all_member_sha256_verified':True,'seconds':time.time()-started}
87
+ json_write(path.with_suffix(path.suffix+'.verification.json'), report)
88
+ path.with_suffix(path.suffix+'.sha256').write_text(f'{digest} {path.name}\n', encoding='utf-8')
89
+ return report
90
+
91
+
92
+ def create_archive(root, destination, prepared=None):
93
+ root = Path(root).resolve()
94
+ directory = Path(prepared or root/'processed_data/v1')/'prithvi'
95
+ destination = Path(destination).resolve()
96
+ if destination.exists():
97
+ raise FileExistsError(destination)
98
+ temporary = destination.with_suffix(destination.suffix+'.partial')
99
+ if temporary.exists():
100
+ raise FileExistsError(f'Previous partial archive needs inspection: {temporary}')
101
+ destination.parent.mkdir(parents=True, exist_ok=True)
102
+ bundle = json.loads((directory/'bundle.json').read_text(encoding='utf-8'))
103
+ if bundle['status'] != 'ready' or not bundle['all_packed_records_byte_verified']:
104
+ raise ValueError('A completed and byte-verified Prithvi build is required')
105
+ expected = {PREFIX+'packs/'+s['name']:s['sha256'] for s in bundle['shards']}
106
+ expected.update({PREFIX+k:v for k,v in bundle['artifacts'].items()})
107
+ expected.update({PREFIX+v['index']:v['sha256'] for v in bundle['samples'].values()})
108
+ expected.update({PREFIX+'original_aux/'+k:v['sha256'] for k,v in bundle['auxiliary'].items()})
109
+ files = [(directory/'packs'/s['name'], PREFIX+'packs/'+s['name'], zipfile.ZIP_STORED) for s in bundle['shards']]
110
+ excluded = {'storage.json','.prepare.lock'}
111
+ for p in sorted(directory.rglob('*')):
112
+ if p.is_file() and p.parent != directory/'packs' and p.name not in excluded and not p.name.endswith(('-wal','-shm','.tmp')):
113
+ files.append((p, PREFIX+p.relative_to(directory).as_posix(), zipfile.ZIP_DEFLATED))
114
+ package = Path(__file__).parent
115
+ for p in sorted(package.glob('*.py')) + [package/'README.md',package/'requirements.txt']:
116
+ if p.exists(): files.append((p,'eo_data/'+p.name,zipfile.ZIP_DEFLATED))
117
+ manifest = {'format':'eoz-in-zip64-v1','dataset':'prithvi','data_version':VERSION,'files':{}}
118
+ with zipfile.ZipFile(temporary,'w',allowZip64=True,compresslevel=3) as z:
119
+ for n,(source,member,compression) in enumerate(files,1):
120
+ info = zipfile.ZipInfo(member, time.localtime(source.stat().st_mtime)[:6])
121
+ info.compress_type = compression
122
+ info.external_attr = 0o100644 << 16
123
+ h = hashlib.sha256(); size = 0
124
+ with source.open('rb') as src, z.open(info,'w',force_zip64=True) as dst:
125
+ for block in iter(lambda: src.read(8*1024*1024), b''):
126
+ h.update(block); dst.write(block); size += len(block)
127
+ digest = h.hexdigest()
128
+ if member in expected and digest != expected[member]:
129
+ raise ValueError(f'Frozen source changed while archiving: {source}')
130
+ manifest['files'][member] = {'size':size,'sha256':digest,'compression':compression}
131
+ if n % 32 == 0 or n == len(files):
132
+ print(json.dumps({'phase':'create_archive','files':n,'total':len(files),'GiB_written':temporary.stat().st_size/2**30}),flush=True)
133
+ z.writestr(CONTENTS,json.dumps(manifest,indent=2).encode(),compress_type=zipfile.ZIP_DEFLATED)
134
+ temporary.replace(destination)
135
+ return verify_archive(destination)
136
+
137
+
138
+ def attach_archive(root, archive, prepared=None, verified_report=None):
139
+ root = Path(root).resolve(); archive = Path(archive).resolve()
140
+ directory = Path(prepared or root/'processed_data/v1')/'prithvi'
141
+ directory.mkdir(parents=True,exist_ok=True)
142
+ with zipfile.ZipFile(archive) as z:
143
+ manifest = json.loads(z.read(CONTENTS))
144
+ bundle = json.loads(z.read(PREFIX+'bundle.json'))
145
+ if bundle['version'] != VERSION or bundle['dataset'] != 'prithvi':
146
+ raise ValueError('Unsupported dataset archive')
147
+ frozen = set(bundle['artifacts']) | {'bundle.json'} | {v['index'] for v in bundle['samples'].values()}
148
+ frozen |= {'original_aux/'+k for k in bundle['auxiliary']}
149
+ for member, expected in manifest['files'].items():
150
+ if not member.startswith(PREFIX) or member.startswith(PREFIX+'packs/'):
151
+ continue
152
+ relative = member[len(PREFIX):]
153
+ target = (directory/relative).resolve()
154
+ if not target.is_relative_to(directory.resolve()):
155
+ raise ValueError('Unsafe archive path')
156
+ payload = z.read(member)
157
+ if hashlib.sha256(payload).hexdigest() != expected['sha256']:
158
+ raise ValueError(f'Archive metadata hash mismatch: {member}')
159
+ if target.exists():
160
+ if relative in frozen and sha256_file(target) != expected['sha256']:
161
+ raise ValueError(f'Existing frozen metadata differs: {target}')
162
+ else:
163
+ target.parent.mkdir(parents=True,exist_ok=True)
164
+ target.write_bytes(payload)
165
+ stat = archive.stat()
166
+ storage = {'backend':'zip64_eoz','archive':archive.relative_to(root).as_posix() if archive.is_relative_to(root) else str(archive),
167
+ 'size':stat.st_size,'mtime_ns':stat.st_mtime_ns,'archive_sha256':None}
168
+ if verified_report:
169
+ if (verified_report['status']!='passed' or verified_report['size']!=stat.st_size
170
+ or Path(verified_report['path']).resolve()!=archive
171
+ or verified_report['mtime_ns']!=stat.st_mtime_ns):
172
+ raise ValueError('Archive verification report mismatch')
173
+ storage['archive_sha256'] = verified_report['sha256']
174
+ json_write(directory/'storage.json',storage)
175
+ return storage
eo_data/codec.py ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Independently decodable, byte-exact Prithvi sample frames."""
2
+ import hashlib
3
+ import struct
4
+ import numpy as np
5
+ import zstandard as zstd
6
+
7
+ MAGIC = b'EOZ1'
8
+ FILENAMES = ('bands.npy', 'fmask.npy', 'lst.npy', 'metadata.json')
9
+
10
+ def _encode_words(raw):
11
+ if len(raw) % 2:
12
+ raise ValueError('Word transform requires even byte count')
13
+ words = np.frombuffer(raw, dtype='<u2')
14
+ delta = np.empty_like(words)
15
+ delta[:1] = words[:1]
16
+ np.subtract(words[1:], words[:-1], out=delta[1:])
17
+ return delta.view(np.uint8).reshape(-1, 2).T.copy().tobytes()
18
+
19
+ def _decode_words(raw):
20
+ delta = np.frombuffer(raw, dtype=np.uint8).reshape(2, -1).T.copy().view('<u2').reshape(-1)
21
+ return np.cumsum(delta, dtype=np.uint16).astype('<u2', copy=False).tobytes()
22
+
23
+ def original_digest(parts):
24
+ h = hashlib.sha256()
25
+ for part in parts:
26
+ h.update(struct.pack('<Q', len(part)))
27
+ h.update(part)
28
+ return h.hexdigest()
29
+
30
+ def encode(parts, level=3):
31
+ if len(parts) != 4:
32
+ raise ValueError('Expected four original files')
33
+ payload = MAGIC + struct.pack('<4I', *(len(p) for p in parts))
34
+ payload += _encode_words(parts[0]) + parts[1] + _encode_words(parts[2]) + parts[3]
35
+ return zstd.ZstdCompressor(level=level, write_checksum=True).compress(payload)
36
+
37
+ def decode(frame, expected_digest=None):
38
+ raw = zstd.ZstdDecompressor().decompress(frame, max_output_size=16 * 1024 * 1024)
39
+ if raw[:4] != MAGIC:
40
+ raise ValueError('Unsupported sample frame')
41
+ lengths = struct.unpack('<4I', raw[4:20])
42
+ if sum(lengths) + 20 != len(raw):
43
+ raise ValueError('Invalid sample lengths')
44
+ parts = []
45
+ offset = 20
46
+ for i, n in enumerate(lengths):
47
+ part = raw[offset:offset+n]
48
+ parts.append(_decode_words(part) if i in (0, 2) else part)
49
+ offset += n
50
+ if expected_digest and original_digest(parts) != expected_digest:
51
+ raise ValueError('Decoded content hash mismatch')
52
+ return parts
eo_data/core.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Canonical masks, sample-balanced statistics, and normalization."""
2
+ import hashlib
3
+ import json
4
+ from pathlib import Path
5
+ import numpy as np
6
+
7
+ VERSION = 'eo-independent-reconstruction-v1'
8
+ BANDS = ('Blue', 'Green', 'Red', 'NIR', 'SWIR1', 'SWIR2')
9
+ ALIASES = {'prithvi': 'prithvi', 'prithvi_data': 'prithvi',
10
+ 'lstsr_tb': 'lstsr_tb', 'lstsr': 'lstsr_tb',
11
+ 'lstsr_tb_final_upload_20260721': 'lstsr_tb'}
12
+
13
+ def dataset_name(name):
14
+ try:
15
+ return ALIASES[name]
16
+ except KeyError:
17
+ raise ValueError(f'Unknown dataset {name!r}; use prithvi or lstsr_tb') from None
18
+
19
+ def modality_name(name):
20
+ if name in ('lst', 'lst_hr'):
21
+ return 'lst_hr'
22
+ if name == 'hls':
23
+ return name
24
+ raise ValueError('Use hls or lst_hr (alias lst)')
25
+
26
+ def sha256_file(path):
27
+ h = hashlib.sha256()
28
+ with Path(path).open('rb') as f:
29
+ for block in iter(lambda: f.read(8 * 1024 * 1024), b''):
30
+ h.update(block)
31
+ return h.hexdigest()
32
+
33
+ def json_write(path, value):
34
+ path = Path(path)
35
+ temp = path.with_suffix(path.suffix + '.tmp')
36
+ temp.write_text(json.dumps(value, ensure_ascii=False, indent=2, allow_nan=False), encoding='utf-8')
37
+ temp.replace(path)
38
+
39
+ def canonical(raw, modality, dataset, fmask=None, source_valid=None):
40
+ """Decode each source without clipping, resizing, or per-image fitting."""
41
+ modality = modality_name(modality)
42
+ raw = np.asarray(raw)
43
+ if modality == 'hls':
44
+ if raw.shape != (6, 256, 256) or raw.dtype != np.int16:
45
+ raise ValueError(f'Unexpected HLS schema {raw.shape}, {raw.dtype}')
46
+ if fmask is None or fmask.shape != (256, 256) or fmask.dtype != np.uint8:
47
+ raise ValueError('Expected uint8 HLS Fmask [256,256]')
48
+ fill = (-9999, -32767, -32768) if dataset == 'prithvi' else (-32768,)
49
+ valid = ~np.isin(raw, fill).any(axis=0)
50
+ valid &= (fmask != 255) & ((fmask & 14) == 0)
51
+ scale = 0.0001
52
+ else:
53
+ if raw.shape != (256, 256) or raw.dtype != np.int16:
54
+ raise ValueError(f'Unexpected HR LST schema {raw.shape}, {raw.dtype}')
55
+ fill = (-32767,) if dataset == 'prithvi' else (-32768,)
56
+ valid = ~np.isin(raw, fill)
57
+ raw = raw[None]
58
+ scale = 1.0 # Explicit raw-coded LST; no unverified temperature unit.
59
+ if source_valid is not None:
60
+ if source_valid.shape != (256, 256):
61
+ raise ValueError('Invalid source mask shape')
62
+ valid &= source_valid.astype(bool)
63
+ image = raw.astype(np.float32) * np.float32(scale)
64
+ return image, valid[None]
65
+
66
+ def sample_moments(image, mask):
67
+ n = int(mask.sum())
68
+ if n == 0:
69
+ return None
70
+ values = image[:, mask[0]].astype(np.float64)
71
+ return {'pixels': n, 'mean': values.mean(axis=1).tolist(),
72
+ 'second': np.square(values).mean(axis=1).tolist()}
73
+
74
+ def empty_accumulator(channels):
75
+ return {'samples': 0, 'pixels': 0, 'sum_mean': [0.0]*channels, 'sum_second': [0.0]*channels}
76
+
77
+ def accumulate(acc, moments):
78
+ if moments is None:
79
+ return
80
+ acc['samples'] += 1
81
+ acc['pixels'] += moments['pixels']
82
+ acc['sum_mean'] = (np.asarray(acc['sum_mean']) + moments['mean']).tolist()
83
+ acc['sum_second'] = (np.asarray(acc['sum_second']) + moments['second']).tolist()
84
+
85
+ def finish_stats(acc, modality):
86
+ if not acc['samples']:
87
+ raise ValueError(f'No valid training samples for {modality}')
88
+ mean = np.asarray(acc['sum_mean']) / acc['samples']
89
+ variance = np.maximum(np.asarray(acc['sum_second']) / acc['samples'] - mean**2, 0)
90
+ std = np.sqrt(variance)
91
+ return {'mean': mean.tolist(), 'std': np.maximum(std, 1e-6).tolist(),
92
+ 'unfloored_std': std.tolist(), 'std_floor': 1e-6,
93
+ 'samples': acc['samples'], 'valid_spatial_pixels': acc['pixels'],
94
+ 'fit_split': 'train', 'weighting': 'equal_samples_then_equal_valid_pixels_within_sample',
95
+ 'units': 'reflectance' if modality == 'hls' else 'source_raw_int16_units',
96
+ 'physical_temperature_unit_confirmed': False if modality == 'lst_hr' else None}
97
+
98
+ def normalize(image, mask, stats):
99
+ mean = np.asarray(stats['mean'], np.float32)[:, None, None]
100
+ std = np.asarray(stats['std'], np.float32)[:, None, None]
101
+ return np.where(mask, (image - mean) / std, np.float32(0)).astype(np.float32)
102
+
103
+ def denormalize(image, stats):
104
+ """Channel axis is -3; supports [C,H,W] and [B,C,H,W]."""
105
+ shape = [1] * np.ndim(image)
106
+ shape[-3] = len(stats['mean'])
107
+ return np.asarray(image) * np.asarray(stats['std'], np.float32).reshape(shape) + np.asarray(stats['mean'], np.float32).reshape(shape)
eo_data/dataset.py ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """One public dataset interface for packed Prithvi and original LSTSR NPZ."""
2
+ from collections import OrderedDict
3
+ from pathlib import Path
4
+ import hashlib
5
+ import io
6
+ import json
7
+ import os
8
+ import sqlite3
9
+ import numpy as np
10
+ from . import codec
11
+ from .core import VERSION, canonical, dataset_name, denormalize, modality_name, normalize, sha256_file
12
+
13
+ PROJECT = Path(__file__).resolve().parents[1]
14
+ _VERIFIED = {}
15
+
16
+ class EODataset:
17
+ """NumPy map-style dataset; compatible with PyTorch's default collator.
18
+
19
+ Connections/caches are opened per process; images and targets never alias.
20
+ Index may be int or (epoch,int). No augmentation/noise is enabled in v1.
21
+ """
22
+ def __init__(self, dataset, modality, split='train', root=None, prepared=None,
23
+ verify=True, allow_development=False):
24
+ self.root = Path(root or PROJECT).resolve()
25
+ self.name = dataset_name(dataset)
26
+ self.modality = modality_name(modality)
27
+ self.split = split
28
+ self.directory = Path(prepared or self.root/'processed_data/v1').resolve()/self.name
29
+ manifest = self.directory/'bundle.json'
30
+ if not manifest.exists():
31
+ raise FileNotFoundError(f'Preprocessing not complete: {manifest}. Run python -m eo_data prepare --dataset {self.name}')
32
+ self.bundle = json.loads(manifest.read_text(encoding='utf-8'))
33
+ if self.bundle['status'] != 'ready' or self.bundle['version'] != VERSION:
34
+ raise ValueError('Unsupported/incomplete prepared dataset')
35
+ for name in ('core.py','codec.py'):
36
+ if sha256_file(Path(__file__).parent/name) != self.bundle['identity']['pipeline_sha256'][name]:
37
+ raise ValueError(f'Processing code differs from the frozen data: {name}')
38
+ if self.bundle['scope'] != 'full' and not allow_development:
39
+ raise ValueError('Development subset cannot be used as a full training dataset')
40
+ key = f'{split}/{self.modality}'
41
+ if key not in self.bundle['samples']:
42
+ raise ValueError(f'No {key} split in {self.name}; available: {list(self.bundle["samples"])}')
43
+ entry = self.bundle['samples'][key]
44
+ if verify:
45
+ checks = dict(self.bundle['artifacts'])
46
+ checks[entry['index']] = entry['sha256']
47
+ for relative, expected in checks.items():
48
+ path = self.directory/relative
49
+ st = path.stat()
50
+ cache_key = (str(path),st.st_size,st.st_mtime_ns,expected)
51
+ if cache_key not in _VERIFIED:
52
+ if sha256_file(path) != expected:
53
+ raise ValueError(f'Frozen artifact changed: {path}')
54
+ _VERIFIED[cache_key] = True
55
+ self.index_path = self.directory/entry['index']
56
+ self.indices = np.load(self.index_path,mmap_mode='r',allow_pickle=False)
57
+ if self.indices.shape != (entry['samples'],3):raise ValueError('Invalid sample index')
58
+ self.stats = json.loads((self.directory/self.bundle['normalization']).read_text(encoding='utf-8'))[self.modality]
59
+ self.source = self.root/self.bundle['source_root']
60
+ storage_file = self.directory/'storage.json'
61
+ self.storage = json.loads(storage_file.read_text(encoding='utf-8')) if storage_file.exists() else None
62
+ self._archive_reader = None
63
+ self._pid = None;self._db = None;self._pack_files = OrderedDict();self._npz_cache = OrderedDict()
64
+ self.fingerprint = {'dataset':self.name,'modality':self.modality,'split':self.split,
65
+ 'protocol':self.bundle['identity']['protocol_sha256'],
66
+ 'sample_index':entry['sha256'],
67
+ 'normalization':self.bundle['artifacts']['normalization.json'],
68
+ 'source_index':self.bundle['identity']['source_index_sha256'],
69
+ 'record_index':self.bundle['artifacts']['index.sqlite'],
70
+ 'reader_code':sha256_file(Path(__file__)),
71
+ 'processing_code':self.bundle['identity']['pipeline_sha256']}
72
+
73
+ def __len__(self):return len(self.indices)
74
+
75
+ def _connect(self):
76
+ if self._pid != os.getpid():
77
+ self.close()
78
+ self._pid = os.getpid()
79
+ if self._db is None:
80
+ uri=(self.directory/'index.sqlite').as_uri()+'?mode=ro&immutable=1'
81
+ self._db=sqlite3.connect(uri,uri=True)
82
+ return self._db
83
+
84
+ def _record(self, index):
85
+ if isinstance(index, tuple):_,index=index
86
+ index=int(index)
87
+ if index<0:index+=len(self)
88
+ if not 0<=index<len(self):raise IndexError(index)
89
+ rid,slot,count=map(int,self.indices[index])
90
+ row=self._connect().execute('SELECT key,tile,meta,loc,digest FROM records WHERE id=?',(rid,)).fetchone()
91
+ if row is None:raise ValueError('Record missing from frozen index')
92
+ return index,rid,slot,count,row
93
+
94
+ def _parts(self, loc, digest=None):
95
+ if self.storage is not None:
96
+ from .archive import ArchiveFrames
97
+ if self._archive_reader is None:
98
+ self._archive_reader = ArchiveFrames(self.root,self.storage)
99
+ return codec.decode(self._archive_reader.read(loc),digest)
100
+ shard=loc['shard']
101
+ if shard not in self._pack_files:
102
+ self._pack_files[shard]=(self.directory/'packs'/shard).open('rb')
103
+ if len(self._pack_files)>8:self._pack_files.popitem(last=False)[1].close()
104
+ self._pack_files.move_to_end(shard)
105
+ stream=self._pack_files[shard]
106
+ stream.seek(loc['offset'])
107
+ frame=stream.read(loc['length'])
108
+ if len(frame)!=loc['length']:raise ValueError('Truncated compressed frame')
109
+ return codec.decode(frame,digest)
110
+
111
+ def _npz(self, loc):
112
+ kind='hls' if self.modality=='hls' else 'lst'
113
+ relative=loc[kind]
114
+ path=(self.source/relative).resolve()
115
+ if not path.is_relative_to(self.source.resolve()):raise ValueError('Source path escapes root')
116
+ expected=loc['source_signatures'][kind]
117
+ stat=path.stat()
118
+ if stat.st_size!=expected['size'] or stat.st_mtime_ns!=expected['mtime_ns']:
119
+ raise ValueError(f'Source file changed since preprocessing: {path}. Revalidate/rebuild before training.')
120
+ if relative not in self._npz_cache:
121
+ with np.load(path,allow_pickle=False) as z:
122
+ if kind=='hls':value=(z['hls_reflectance_i16'],z['hls_fmask'],z['hls_valid'])
123
+ else:value=(z['hr_lst'],z['hr_valid'])
124
+ self._npz_cache[relative]=value
125
+ if len(self._npz_cache)>2:self._npz_cache.popitem(last=False)
126
+ self._npz_cache.move_to_end(relative)
127
+ return self._npz_cache[relative]
128
+
129
+ def __getitem__(self, index):
130
+ _,rid,slot,count,row=self._record(index)
131
+ key,tile,_,loc_text,digest=row
132
+ loc=json.loads(loc_text)
133
+ if self.name=='prithvi':
134
+ parts=self._parts(loc)
135
+ raw=np.load(io.BytesIO(parts[0 if self.modality=='hls' else 2]),allow_pickle=False)
136
+ f=np.load(io.BytesIO(parts[1]),allow_pickle=False) if self.modality=='hls' else None
137
+ image,mask=canonical(raw,self.modality,self.name,fmask=f)
138
+ elif self.modality=='hls':
139
+ raw,f,valid=self._npz(loc)
140
+ image,mask=canonical(raw,self.modality,self.name,fmask=f,source_valid=valid)
141
+ else:
142
+ raw,valid=self._npz(loc)
143
+ image,mask=canonical(raw[slot],self.modality,self.name,source_valid=valid[slot])
144
+ if int(mask.sum())!=count:raise ValueError(f'Validity policy/source drift at {key}')
145
+ image=normalize(image,mask,self.stats)
146
+ sample_id=f'{self.name}:{key}:{self.modality}'+(f':m{slot+1:02d}' if slot>=0 else '')
147
+ return {'image':image,'target':image.copy(),'reference_mask':mask.copy(),'input_mask':mask.copy(),
148
+ 'corruption_mask':np.zeros_like(mask),'sample_id':sample_id,'dataset_id':self.name,
149
+ 'modality':self.modality,'split':self.split,'tile_id':tile,'month':slot+1 if slot>=0 else 0,
150
+ 'valid_pixels':count}
151
+
152
+ def get_metadata(self,index):
153
+ *_,row=self._record(index)
154
+ return json.loads(row[2])
155
+
156
+ def denormalize(self, image):return denormalize(image,self.stats)
157
+
158
+ def epoch_indices(self, epoch, seed=20260909):
159
+ digest=hashlib.sha256(f'{seed}:{epoch}:{self.name}:{self.modality}:{self.split}'.encode()).digest()
160
+ rng=np.random.Generator(np.random.PCG64(int.from_bytes(digest[:16],'little')))
161
+ return rng.permutation(len(self))
162
+
163
+ def close(self):
164
+ if getattr(self,'_archive_reader',None) is not None:
165
+ self._archive_reader.close();self._archive_reader=None
166
+ if getattr(self,'_db',None) is not None:self._db.close();self._db=None
167
+ for stream in getattr(self,'_pack_files',{}).values():stream.close()
168
+ self._pack_files=OrderedDict();self._npz_cache=OrderedDict()
169
+
170
+ def __getstate__(self):
171
+ state=dict(self.__dict__)
172
+ state.update(_db=None,_pid=None,_pack_files=OrderedDict(),_npz_cache=OrderedDict(),indices=None,_archive_reader=None)
173
+ return state
174
+
175
+ def __setstate__(self,state):
176
+ self.__dict__.update(state)
177
+ self.indices=np.load(self.index_path,mmap_mode='r',allow_pickle=False)
178
+
179
+ def __del__(self):
180
+ try:self.close()
181
+ except Exception:pass
182
+
183
+ def open_dataset(dataset, modality, split='train', **kwargs):
184
+ return EODataset(dataset,modality,split,**kwargs)
185
+
186
+ def open_datasets(split='train', **kwargs):
187
+ return {name:{mod:open_dataset(name,mod,split,**kwargs) for mod in ('hls','lst')}
188
+ for name in ('prithvi','lstsr_tb')}
189
+
190
+ def make_dataloader(dataset, modality, split='train', batch_size=16, num_workers=0, seed=20260909, **dataset_kwargs):
191
+ try:
192
+ import torch
193
+ from torch.utils.data import DataLoader
194
+ except ImportError as e:
195
+ raise ImportError('PyTorch is optional for NumPy reads; install it in your training environment to use make_dataloader.') from e
196
+ ds=open_dataset(dataset,modality,split,**dataset_kwargs)
197
+ generator=torch.Generator().manual_seed(seed)
198
+ return DataLoader(ds,batch_size=batch_size,shuffle=split=='train',num_workers=num_workers,
199
+ generator=generator,persistent_workers=num_workers>0,drop_last=False)
eo_data/locking.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """OS-held per-output writer lock; automatically released after a crash."""
2
+ from contextlib import contextmanager
3
+ from pathlib import Path
4
+ import os
5
+
6
+
7
+ @contextmanager
8
+ def build_lock(directory):
9
+ directory = Path(directory)
10
+ directory.mkdir(parents=True, exist_ok=True)
11
+ stream = (directory/'.prepare.lock').open('a+b')
12
+ if stream.seek(0,2) == 0:
13
+ stream.write(b'0'); stream.flush()
14
+ stream.seek(0)
15
+ try:
16
+ if os.name == 'nt':
17
+ import msvcrt
18
+ msvcrt.locking(stream.fileno(),msvcrt.LK_NBLCK,1)
19
+ else:
20
+ import fcntl
21
+ fcntl.flock(stream.fileno(),fcntl.LOCK_EX | fcntl.LOCK_NB)
22
+ except OSError as e:
23
+ stream.close()
24
+ raise RuntimeError(f'Another preprocessing writer is using {directory}') from e
25
+ try:
26
+ yield
27
+ finally:
28
+ stream.seek(0)
29
+ if os.name == 'nt':
30
+ msvcrt.locking(stream.fileno(),msvcrt.LK_UNLCK,1)
31
+ else:
32
+ fcntl.flock(stream.fileno(),fcntl.LOCK_UN)
33
+ stream.close()
eo_data/prepare.py ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Resumable full census, train-only fitting, and verified lossless packing."""
2
+ from collections import Counter, deque
3
+ from concurrent.futures import ThreadPoolExecutor
4
+ from pathlib import Path
5
+ import csv
6
+ import hashlib
7
+ import io
8
+ import json
9
+ import os
10
+ import shutil
11
+ import sqlite3
12
+ import subprocess
13
+ import time
14
+ import numpy as np
15
+ from . import codec
16
+ from .core import (VERSION, BANDS, accumulate, canonical, empty_accumulator,
17
+ finish_stats, json_write, sample_moments, sha256_file)
18
+
19
+ PROJECT = Path(__file__).resolve().parents[1]
20
+ CHUNK = 512
21
+
22
+ def safe_path(root, relative):
23
+ root = Path(root).resolve()
24
+ path = (root / relative).resolve()
25
+ if not path.is_relative_to(root):
26
+ raise ValueError(f'Path escapes source root: {relative}')
27
+ return path
28
+
29
+ def bounded_map(pool, fn, items, width):
30
+ it = iter(items)
31
+ pending = deque()
32
+ for _ in range(width):
33
+ try: pending.append(pool.submit(fn, next(it)))
34
+ except StopIteration: break
35
+ while pending:
36
+ yield pending.popleft().result()
37
+ try: pending.append(pool.submit(fn, next(it)))
38
+ except StopIteration: pass
39
+
40
+ def file_signature(path):
41
+ s = path.stat()
42
+ return {'size': s.st_size, 'mtime_ns': s.st_mtime_ns}
43
+
44
+ def create_index(project, name, out, limit=None):
45
+ index = out / 'source_index.jsonl'
46
+ if index.exists() and (out/'source_info.json').exists():
47
+ info = json.loads((out/'source_info.json').read_text(encoding='utf-8'))
48
+ if info['limit'] != limit:
49
+ raise ValueError('Cannot change a partial/full build scope in an existing output')
50
+ for rel, digest in info['source_manifest_hashes'].items():
51
+ if sha256_file(project/rel) != digest:
52
+ raise ValueError(f'Source manifest changed: {rel}')
53
+ if sha256_file(index) != info['index_sha256']:
54
+ raise ValueError('Source index changed')
55
+ return info
56
+ temp = index.with_suffix('.building')
57
+ hashes = {}
58
+ counts = Counter()
59
+ candidate = Counter()
60
+ count = 0
61
+ if name == 'prithvi':
62
+ source = project/'prithvi_data'
63
+ if shutil.which('rg'):
64
+ paths = subprocess.check_output(['rg','--files','--hidden','--no-ignore',str(source)], text=True).splitlines()
65
+ rels = [Path(p).relative_to(source).as_posix() for p in paths]
66
+ else:
67
+ rels = [p.relative_to(source).as_posix() for p in source.rglob('*') if p.is_file()]
68
+ groups = {}
69
+ extra = []
70
+ for rel in rels:
71
+ if rel.startswith(('train/','val/')):
72
+ parent, base = rel.rsplit('/', 1)
73
+ groups.setdefault(parent, set()).add(base)
74
+ else:
75
+ extra.append(rel)
76
+ with temp.open('w', encoding='utf-8', newline='\n') as f:
77
+ for key, members in sorted(groups.items()):
78
+ if set(codec.FILENAMES) != members:
79
+ raise ValueError(f'Unexpected/missing files at {key}: {members}')
80
+ split, tile, obs, patch = key.split('/')
81
+ int(obs.removeprefix('obs_'))
82
+ row, col = patch.split('_')
83
+ int(row[1:]); int(col[1:])
84
+ record = {'id': count+1, 'key': key, 'split': split, 'tile': tile,
85
+ 'loc': {'path': key}}
86
+ f.write(json.dumps(record, separators=(',',':'))+'\n')
87
+ count += 1; counts[split] += 1
88
+ candidate[f'{split}/hls'] += 1; candidate[f'{split}/lst_hr'] += 1
89
+ if limit and count >= limit: break
90
+ aux = out/'original_aux'
91
+ aux.mkdir(exist_ok=True)
92
+ auxiliary = {}
93
+ for rel in extra:
94
+ src = safe_path(source, rel)
95
+ dst = safe_path(aux, rel)
96
+ dst.parent.mkdir(parents=True, exist_ok=True)
97
+ shutil.copy2(src, dst)
98
+ auxiliary[rel] = {'sha256': sha256_file(dst), **file_signature(src)}
99
+ root_rel = 'prithvi_data'
100
+ else:
101
+ root_rel = 'data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719'
102
+ source = project/root_rel
103
+ hls_rel = 'hls_l8_conditions_2019_2025_lc08'
104
+ manifests = [source/'phase4_dataset_manifest.csv', source/hls_rel/'hls_condition_manifest.csv']
105
+ for p in manifests: hashes[p.relative_to(project).as_posix()] = sha256_file(p)
106
+ hls = {}
107
+ with manifests[1].open(encoding='utf-8', newline='') as f:
108
+ for r in csv.DictReader(f):
109
+ key = r['sequence_id']
110
+ if key in hls: raise ValueError(f'Duplicate HLS key: {key}')
111
+ if r['reflectance_bands'] != 'B2,B3,B4,B5,B6,B7' or float(r['reflectance_scale']) != 0.0001:
112
+ raise ValueError(f'Unexpected HLS band/scale at {key}')
113
+ hls[key] = {k:r[k] for k in ['archive','split','mgrs_tile','hls_datetime_utc','hls_image_id']}
114
+ seen = set()
115
+ with manifests[0].open(encoding='utf-8', newline='') as src, temp.open('w', encoding='utf-8', newline='\n') as dst:
116
+ for r in csv.DictReader(src):
117
+ key = r['sequence_id']
118
+ if key in seen: raise ValueError(f'Duplicate LST key: {key}')
119
+ seen.add(key)
120
+ h = hls[key]
121
+ if (r['split'],r['mgrs_tile']) != (h['split'],h['mgrs_tile']):
122
+ raise ValueError(f'LST/HLS membership mismatch at {key}')
123
+ if int(r['nodata_i16']) != -32768 or int(r['patch_size']) != 256:
124
+ raise ValueError(f'Unexpected source encoding at {key}')
125
+ months = [int(m)-1 for m in r['available_months'].split(',')]
126
+ if len(set(months)) != len(months) or any(m not in range(12) for m in months) or len(months)!=int(r['available_month_count']):
127
+ raise ValueError(f'Invalid availability at {key}')
128
+ loc = {'lst': r['archive'], 'hls': hls_rel+'/'+h['archive'], 'slots': sorted(months)}
129
+ safe_path(source, loc['lst']); safe_path(source, loc['hls'])
130
+ record = {'id':count+1,'key':key,'split':r['split'],'tile':r['mgrs_tile'],'loc':loc,
131
+ 'meta':{'sequence_id':key,'month_dates':json.loads(r['month_dates_json']),
132
+ 'hls_datetime':h['hls_datetime_utc'],'hls_image_id':h['hls_image_id'],
133
+ 'qa_version':r['qa_version'],'source_split':r['split']}}
134
+ dst.write(json.dumps(record, separators=(',',':'))+'\n')
135
+ count += 1; counts[r['split']] += 1
136
+ candidate[f"{r['split']}/hls"] += 1
137
+ candidate[f"{r['split']}/lst_hr"] += len(months)
138
+ if limit and count >= limit: break
139
+ if not limit and seen != set(hls): raise ValueError('LST and HLS manifest key sets differ')
140
+ auxiliary = {}
141
+ temp.replace(index)
142
+ info = {'dataset':name,'source_root':root_rel,'records':count,'record_counts':dict(counts),
143
+ 'candidate_samples':dict(candidate),'source_manifest_hashes':hashes,
144
+ 'index_sha256':sha256_file(index),'auxiliary':auxiliary,'limit':limit}
145
+ json_write(out/'source_info.json', info)
146
+ return info
147
+
148
+ def inspect_record(record, source, name, level):
149
+ """Each worker loads one complete source record; no validation fitting."""
150
+ fit = record['split'] == 'train'
151
+ result = {'record':record,'samples':[], 'frame':None, 'raw_bytes':0}
152
+ if name == 'prithvi':
153
+ folder = safe_path(source, record['loc']['path'])
154
+ paths = [folder/n for n in codec.FILENAMES]
155
+ signatures = [file_signature(p) for p in paths]
156
+ parts = [p.read_bytes() for p in paths]
157
+ if [file_signature(p) for p in paths] != signatures:
158
+ raise ValueError(f'Source changed during read: {folder}')
159
+ meta = json.loads(parts[3])
160
+ b, f, l = [np.load(io.BytesIO(p), allow_pickle=False) for p in parts[:3]]
161
+ split,tile,obs,patch = record['key'].split('/')
162
+ row,col = patch.split('_')
163
+ if (meta['split'],meta['tile'],meta['obs_idx'],meta['row'],meta['col']) != (split,tile,int(obs[4:]),int(row[1:]),int(col[1:])):
164
+ raise ValueError(f'Metadata/path mismatch: {record["key"]}')
165
+ if tuple(meta['bands']) != BANDS or meta['bands_scale'] != 10000 or meta['lst_scale'] != 100:
166
+ raise ValueError(f'Unexpected scale/bands: {record["key"]}')
167
+ result.update(meta=meta,digest=codec.original_digest(parts),frame=codec.encode(parts,level),
168
+ signatures=signatures,raw_bytes=sum(map(len,parts)))
169
+ arrays = [('hls',-1,*canonical(b,'hls',name,fmask=f)),
170
+ ('lst_hr',-1,*canonical(l,'lst_hr',name))]
171
+ else:
172
+ loc = record['loc']
173
+ hp, lp = safe_path(source,loc['hls']), safe_path(source,loc['lst'])
174
+ signatures = {'hls':file_signature(hp),'lst':file_signature(lp)}
175
+ with np.load(hp,allow_pickle=False) as z:
176
+ b, f, v = z['hls_reflectance_i16'], z['hls_fmask'], z['hls_valid']
177
+ with np.load(lp,allow_pickle=False) as z:
178
+ l, lv = z['hr_lst'], z['hr_valid']
179
+ if l.shape != (12,256,256) or lv.shape != l.shape or l.dtype != np.int16:
180
+ raise ValueError(f'Invalid month bundle: {record["key"]}')
181
+ if {'hls':file_signature(hp),'lst':file_signature(lp)} != signatures:
182
+ raise ValueError(f'Source changed during read: {record["key"]}')
183
+ digest = hashlib.sha256()
184
+ for array in (b,f,v,l,lv): digest.update(array.tobytes(order='C'))
185
+ result.update(meta=record['meta'],digest=digest.hexdigest(),signatures=signatures,
186
+ raw_bytes=signatures['hls']['size']+signatures['lst']['size'])
187
+ arrays = [('hls',-1,*canonical(b,'hls',name,fmask=f,source_valid=v))]
188
+ for slot in loc['slots']:
189
+ arrays.append(('lst_hr',slot,*canonical(l[slot],'lst_hr',name,source_valid=lv[slot])))
190
+ for modality,slot,image,mask in arrays:
191
+ n = int(mask.sum())
192
+ result['samples'].append((modality,slot,n,sample_moments(image,mask) if fit and n else None))
193
+ return result
194
+
195
+ def init_db(path):
196
+ db = sqlite3.connect(path)
197
+ db.execute('PRAGMA journal_mode=WAL')
198
+ db.executescript('''
199
+ CREATE TABLE IF NOT EXISTS records(id INTEGER PRIMARY KEY, key TEXT UNIQUE, split TEXT, tile TEXT, meta TEXT, loc TEXT, digest TEXT);
200
+ CREATE TABLE IF NOT EXISTS samples(modality TEXT, split TEXT, record_id INTEGER, slot INTEGER, valid_pixels INTEGER, UNIQUE(modality,record_id,slot));
201
+ CREATE TABLE IF NOT EXISTS rejected(record_id INTEGER, modality TEXT, slot INTEGER, reason TEXT);
202
+ CREATE TABLE IF NOT EXISTS settings(key TEXT PRIMARY KEY, value TEXT);
203
+ CREATE TABLE IF NOT EXISTS shards(name TEXT PRIMARY KEY, bytes INTEGER, sha256 TEXT, records INTEGER, verified INTEGER);
204
+ ''')
205
+ return db
206
+
207
+ def _read_setting(db, key):
208
+ row = db.execute('SELECT value FROM settings WHERE key=?',(key,)).fetchone()
209
+ return json.loads(row[0]) if row else None
210
+
211
+ def prepare_dataset(project, name, output, workers=4, level=3, limit=None):
212
+ from .locking import build_lock
213
+ with build_lock(Path(output)/name):
214
+ return _prepare_dataset(project,name,output,workers,level,limit)
215
+
216
+ def _prepare_dataset(project, name, output, workers=4, level=3, limit=None):
217
+ started = time.time()
218
+ out = output/name
219
+ out.mkdir(parents=True, exist_ok=True)
220
+ if (out/'bundle.json').exists():
221
+ bundle = json.loads((out/'bundle.json').read_text(encoding='utf-8'))
222
+ if bundle['identity']['limit'] != limit or bundle['identity']['zstd_level'] != level:
223
+ raise ValueError('Completed output has a different build scope/configuration')
224
+ print(f'{name}: already complete; keeping frozen output',flush=True)
225
+ return bundle
226
+ info = create_index(project,name,out,limit)
227
+ source = project/info['source_root']
228
+ db = init_db(out/'index.sqlite')
229
+ protocol = json.loads((project/'experiments/data/protocol.json').read_text(encoding='utf-8'))
230
+ if protocol['training_scope'] != 'independent_datasets': raise ValueError('This pipeline requires independent datasets')
231
+ identity = {'protocol_sha256':sha256_file(project/'experiments/data/protocol.json'),
232
+ 'pipeline_sha256':{p.name:sha256_file(p) for p in Path(__file__).parent.glob('*.py')},
233
+ 'source_index_sha256':info['index_sha256'],'zstd_level':level,'limit':limit}
234
+ saved = _read_setting(db,'identity')
235
+ if saved and saved != identity: raise ValueError('Build identity changed; use a new output version')
236
+ if not saved:
237
+ db.execute('INSERT INTO settings VALUES (?,?)',('identity',json.dumps(identity)))
238
+ db.commit()
239
+ json_write(out/'protocol.json',protocol)
240
+ state = _read_setting(db,'progress') or {'completed_records':0,'raw_bytes':0,'packed_bytes':0,
241
+ 'train_accumulators':{'hls':empty_accumulator(6),'lst_hr':empty_accumulator(1)},'elapsed_seconds':0.0}
242
+ prior_time = state['elapsed_seconds']
243
+ def records():
244
+ with (out/'source_index.jsonl').open(encoding='utf-8') as f:
245
+ for line in f:
246
+ r=json.loads(line)
247
+ if r['id'] > state_start: yield r
248
+ state_start = state['completed_records']
249
+ it = iter(records())
250
+ packs = out/'packs'
251
+ if name == 'prithvi': packs.mkdir(exist_ok=True)
252
+ with ThreadPoolExecutor(max_workers=workers) as pool:
253
+ while True:
254
+ chunk=[]
255
+ for _ in range(CHUNK):
256
+ try: chunk.append(next(it))
257
+ except StopIteration: break
258
+ if not chunk: break
259
+ part = f'part_{(chunk[0]["id"]-1)//CHUNK:06d}.eoz'
260
+ tmp = packs/(part+'.partial')
261
+ stream = tmp.open('wb') if name=='prithvi' else None
262
+ locations=[]
263
+ pending_state=json.loads(json.dumps(state))
264
+ try:
265
+ results = bounded_map(pool,lambda r:inspect_record(r,source,name,level),chunk,max(2,workers*2))
266
+ for result in results:
267
+ r=result['record']; loc=dict(r['loc'])
268
+ loc['source_signatures']=result['signatures']
269
+ if stream:
270
+ offset=stream.tell(); frame=result['frame']; stream.write(frame)
271
+ loc.update(shard=part,offset=offset,length=len(frame))
272
+ locations.append((offset,len(frame),result['digest']))
273
+ pending_state['packed_bytes']+=len(frame)
274
+ for mod,slot,n,moments in result['samples']:
275
+ if n:
276
+ db.execute('INSERT INTO samples VALUES (?,?,?,?,?)',(mod,r['split'],r['id'],slot,n))
277
+ if r['split']=='train': accumulate(pending_state['train_accumulators'][mod],moments)
278
+ else:
279
+ db.execute('INSERT INTO rejected VALUES (?,?,?,?)',(r['id'],mod,slot,'no_valid_reference_pixels'))
280
+ db.execute('INSERT INTO records VALUES (?,?,?,?,?,?,?)',
281
+ (r['id'],r['key'],r['split'],r['tile'],json.dumps(result['meta'],separators=(',',':')),
282
+ json.dumps(loc,separators=(',',':')),result['digest']))
283
+ pending_state['completed_records']+=1
284
+ pending_state['raw_bytes']+=result['raw_bytes']
285
+ if stream:
286
+ stream.flush();os.fsync(stream.fileno());stream.close();stream=None
287
+ with tmp.open('rb') as check:
288
+ for offset,length,digest in locations:
289
+ check.seek(offset)
290
+ codec.decode(check.read(length),digest)
291
+ target = packs/part
292
+ tmp.replace(target)
293
+ db.execute('INSERT OR REPLACE INTO shards VALUES (?,?,?,?,?)',
294
+ (part,target.stat().st_size,sha256_file(target),len(locations),1))
295
+ pending_state['elapsed_seconds']=prior_time+time.time()-started
296
+ db.execute('INSERT OR REPLACE INTO settings VALUES (?,?)',('progress',json.dumps(pending_state)))
297
+ db.commit()
298
+ except BaseException:
299
+ if stream:stream.close()
300
+ db.rollback()
301
+ raise
302
+ state=pending_state
303
+ progress={'dataset':name,'status':'running','phase':'full_preprocessing',
304
+ 'completed_records':state['completed_records'],'total_records':info['records'],
305
+ 'raw_GiB':state['raw_bytes']/2**30,'packed_GiB':state['packed_bytes']/2**30,
306
+ 'elapsed_seconds':state['elapsed_seconds']}
307
+ json_write(out/'progress.json',progress)
308
+ if state['completed_records']%(CHUNK*8)==0 or state['completed_records']==info['records']:
309
+ print(json.dumps(progress),flush=True)
310
+ if state['completed_records'] != info['records']:raise RuntimeError('Incomplete source census')
311
+ overlap=db.execute('SELECT tile FROM records GROUP BY tile HAVING COUNT(DISTINCT split)>1 LIMIT 1').fetchone()
312
+ if overlap:raise ValueError(f'Tile crosses splits within {name}: {overlap[0]}')
313
+ normalization={mod:finish_stats(acc,mod) for mod,acc in state['train_accumulators'].items()}
314
+ json_write(out/'normalization.json',normalization)
315
+ splits={}
316
+ (out/'indices').mkdir(exist_ok=True)
317
+ for mod,split,count in db.execute('SELECT modality,split,COUNT(*) FROM samples GROUP BY modality,split').fetchall():
318
+ path=out/'indices'/f'{split}.{mod}.npy'
319
+ arr=np.lib.format.open_memmap(path,mode='w+',dtype=np.int64,shape=(count,3))
320
+ cur=db.execute('SELECT record_id,slot,valid_pixels FROM samples WHERE modality=? AND split=? ORDER BY record_id,slot',(mod,split))
321
+ pos=0
322
+ while True:
323
+ batch=cur.fetchmany(10000)
324
+ if not batch:break
325
+ arr[pos:pos+len(batch)]=batch;pos+=len(batch)
326
+ arr.flush();del arr
327
+ splits[f'{split}/{mod}']={'samples':count,'index':path.relative_to(out).as_posix(),'sha256':sha256_file(path)}
328
+ rejected=db.execute('SELECT modality,COUNT(*) FROM rejected GROUP BY modality').fetchall()
329
+ shards=[dict(zip(['name','bytes','sha256','records','verified'],r)) for r in db.execute('SELECT * FROM shards ORDER BY name')]
330
+ db.execute('CREATE INDEX IF NOT EXISTS samples_lookup ON samples(modality,split,record_id,slot)')
331
+ db.commit();db.execute('PRAGMA wal_checkpoint(TRUNCATE)');db.close()
332
+ artifacts={'index.sqlite':sha256_file(out/'index.sqlite'),'normalization.json':sha256_file(out/'normalization.json'),
333
+ 'source_index.jsonl':info['index_sha256'],'source_info.json':sha256_file(out/'source_info.json'),
334
+ 'protocol.json':sha256_file(out/'protocol.json')}
335
+ bundle={'version':VERSION,'dataset':name,'status':'ready','scope':'development' if limit else 'full',
336
+ 'backend':'eoz' if name=='prithvi' else 'npz','source_root':info['source_root'],
337
+ 'records':info['records'],'samples':splits,'normalization':'normalization.json','artifacts':artifacts,
338
+ 'identity':identity,'source_manifest_hashes':info['source_manifest_hashes'],
339
+ 'source_bytes':state['raw_bytes'],'packed_bytes':state['packed_bytes'],
340
+ 'shards':shards,'all_packed_records_byte_verified':name=='prithvi',
341
+ 'rejected':dict(rejected),'auxiliary':info['auxiliary'],'elapsed_seconds':state['elapsed_seconds']}
342
+ json_write(out/'bundle.json',bundle)
343
+ json_write(out/'progress.json',{'dataset':name,'status':'complete','records':info['records'],
344
+ 'samples':{k:v['samples'] for k,v in splits.items()},'elapsed_seconds':state['elapsed_seconds']})
345
+ print(f'{name}: COMPLETE {info["records"]} records; '+json.dumps({k:v['samples'] for k,v in splits.items()}),flush=True)
346
+ return bundle
eo_data/requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ numpy>=1.24
2
+ zstandard>=0.22
3
+ # Optional: torch in the training environment for make_dataloader().
eo_data/verify.py ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+ import io
3
+ import json
4
+ import shutil
5
+ import sqlite3
6
+ import time
7
+ import numpy as np
8
+ from . import codec
9
+ from .core import canonical, dataset_name, json_write, sha256_file
10
+ from .dataset import open_dataset
11
+
12
+ def verify_all(root,output=None,dataset='all',samples=16,allow_development=False):
13
+ root=Path(root).resolve();output=Path(output or root/'processed_data/v1')
14
+ names=['prithvi','lstsr_tb'] if dataset=='all' else [dataset_name(dataset)]
15
+ report={}
16
+ for name in names:
17
+ directory=output/name
18
+ bundle=json.loads((directory/'bundle.json').read_text(encoding='utf-8'))
19
+ checked={};started=time.perf_counter()
20
+ for key,entry in bundle['samples'].items():
21
+ split,mod=key.split('/')
22
+ ds=open_dataset(name,mod,split,root=root,prepared=output,allow_development=allow_development)
23
+ indices=np.unique(np.linspace(0,len(ds)-1,min(samples,len(ds)),dtype=int))
24
+ for index in indices:
25
+ item=ds[int(index)]
26
+ image=item['image'];mask=item['reference_mask']
27
+ assert image.shape==((6,256,256) if mod=='hls' else (1,256,256))
28
+ assert image.dtype==np.float32 and mask.dtype==bool
29
+ assert np.isfinite(image).all() and np.array_equal(image,item['target'])
30
+ assert not np.shares_memory(image,item['target'])
31
+ assert (image[~np.broadcast_to(mask,image.shape)]==0).all()
32
+ _,_,slot,_,row=ds._record(int(index));loc=json.loads(row[3])
33
+ if name=='prithvi':
34
+ parts=ds._parts(loc,row[4])
35
+ raw=np.load(io.BytesIO(parts[0 if mod=='hls' else 2]),allow_pickle=False)
36
+ f=np.load(io.BytesIO(parts[1]),allow_pickle=False) if mod=='hls' else None
37
+ reference,rmask=canonical(raw,mod,name,fmask=f)
38
+ original=ds.source/loc['path']
39
+ if original.exists():
40
+ for base,payload in zip(codec.FILENAMES,parts):
41
+ if (original/base).read_bytes()!=payload:raise ValueError('Original/packed byte mismatch')
42
+ elif mod=='hls':
43
+ raw,f,v=ds._npz(loc);reference,rmask=canonical(raw,mod,name,fmask=f,source_valid=v)
44
+ else:
45
+ raw,v=ds._npz(loc);reference,rmask=canonical(raw[slot],mod,name,source_valid=v[slot])
46
+ assert np.array_equal(mask,rmask)
47
+ valid=np.broadcast_to(mask,reference.shape)
48
+ tolerance=2e-6 if mod=='hls' else 0.005
49
+ if not np.allclose(ds.denormalize(image)[valid],reference[valid],rtol=0,atol=tolerance):
50
+ raise ValueError('Normalization round trip failed')
51
+ checked[key]={'samples':len(ds),'checked':len(indices),'roundtrip_passed':True}
52
+ ds.close()
53
+ report[name]={'status':'passed','scope':bundle['scope'],'profiles':checked,
54
+ 'all_compressed_records_verified_during_preparation':bundle['all_packed_records_byte_verified'],
55
+ 'seconds':time.perf_counter()-started}
56
+ json_write(directory/'verification.json',report[name])
57
+ return report
58
+
59
+ def restore_prithvi(root,prepared,destination,limit=None):
60
+ root=Path(root).resolve();directory=Path(prepared or root/'processed_data/v1')/'prithvi'
61
+ destination=Path(destination).resolve()
62
+ if destination.exists() and any(destination.iterdir()):
63
+ raise ValueError('Restore destination must be absent or empty')
64
+ destination.mkdir(parents=True,exist_ok=True)
65
+ bundle=json.loads((directory/'bundle.json').read_text(encoding='utf-8'))
66
+ reader=open_dataset('prithvi','hls',root=root,prepared=directory.parent,allow_development=True)
67
+ db=reader._connect()
68
+ n=0
69
+ for key,loc_text,digest in db.execute('SELECT key,loc,digest FROM records ORDER BY id'):
70
+ loc=json.loads(loc_text)
71
+ parts=reader._parts(loc,digest)
72
+ folder=(destination/key).resolve()
73
+ if not folder.is_relative_to(destination):raise ValueError('Unsafe restored path')
74
+ folder.mkdir(parents=True,exist_ok=True)
75
+ for base,payload in zip(codec.FILENAMES,parts):(folder/base).write_bytes(payload)
76
+ n+=1
77
+ if limit and n>=limit:break
78
+ reader.close()
79
+ for rel,info in bundle['auxiliary'].items():
80
+ src=directory/'original_aux'/rel;dst=(destination/rel).resolve()
81
+ if not dst.is_relative_to(destination):raise ValueError('Unsafe auxiliary path')
82
+ if sha256_file(src)!=info['sha256']:raise ValueError('Auxiliary hash mismatch')
83
+ dst.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(src,dst)
84
+ return {'restored_records':n,'full_dataset':n==bundle['records'],'destination':str(destination)}
experiments/data/LST_ENCODING_VERIFICATION.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LST 存储单位核验
2
+
3
+ 2026-09-13来源补充:用户现已提供第一套HLP的下载代码,确认其使用HLSL30 v2与Landsat 8/9 Collection 2 Level-2 `ST_B10`,并在导出时转换为摄氏度×100。下文“未找到原始导出代码”描述的是本次单位抽样核验当时的材料范围;现状与实现细节见[下载来源核对](../../data_inspection/HLP_SOURCE_PROVENANCE.md)。此补充不改变原抽样结果,也不宣称已取得每个历史样本的LST贡献场景ID。第二套HLC的完整导出代码仍未由此次材料补齐。
4
+
5
+ 结论:两套数据当前用于 VAE 的 HR LST 支持按 **摄氏度 × 100** 的整数编码解释,恢复摄氏度使用 `stored / 100.0`。这次结论有原始卫星像元对照证据,超出了只凭数值范围猜测的阶段。
6
+
7
+ ## 独立验证方法与范围
8
+
9
+ - Prithvi 全部 242,416 条 metadata 的 `lst_scale` 都是 100。选择 HLS ID 与目标 tile 一致、行列为 r00_c00 的两个 patch,用同 tile 的已交付网格计算像元中心,不通过拟合偏移改变坐标。每个 patch 预先固定 3×3 个位置,共 18 个。
10
+ - Prithvi metadata 没有记录 LST 场景 ID。首先由 HLS 时间寻找 Landsat 场景;第二个 patch 的该场景在所有检查点都无 ST 值,于是检查同日、同卫星、同轨道的相邻 WRS 行。保留初始无值响应及后续结果。这个过程提供独立数值佐证,不等于从 metadata 直接确认了完整 LST 来源链。
11
+ - LSTSR 使用 manifest 明确给出的网格、patch 偏移和 Landsat 场景列表。检查 `T01WCP_v000_p0000` 的 4 月、8 月槽位,分别对应 2024-04-06 和 2022-08-08;每月预先固定相同 3×3 个位置。缺失场景与无效原始像元均保留在记录中。
12
+ - 从 Microsoft Planetary Computer 的公开 Landsat Collection 2 ST 波段读取原始 DN,`unscale=false`;自行应用 `DN * 0.00341802 + 149.0 - 273.15`,与本地存储值除以 100 的结果比较。公式依据 [USGS 官方说明](https://www.usgs.gov/landsat-missions/landsat-collection-2-surface-temperature)。
13
+
14
+ | 数据 | 预选有效位置 | 能取得源 DN 的位置 | 差异 ≤0.011°C | 差异 ≤0.02°C | 最大绝对差 |
15
+ |---|---:|---:|---:|---:|---:|
16
+ | Prithvi,2 个 patch | 18 | 18 | 17 | 18 | 0.015749°C |
17
+ | LSTSR,2 个 patch-month | 18 | 17 | 17 | 17 | 0.004857°C |
18
+
19
+ 0.011°C 检查约一个存储整数步长,0.02°C 用于容纳很小的插值/量化差异、判断单位是否一致。Prithvi 有一个位置超过前者,原因未从导出代码核实,不能报告为逐位一致。LSTSR 有一个位置未取得原始值;公开镜像中 `LC08_L2SP_091013_20220808_02_T1` 返回 404。原始导出代码未在当前交付工作区找到;这里是单位的抽样核验,不能替代全量来源一致性证明。
20
+
21
+ 两个直观例子:
22
+
23
+ | 数据与位置 | 本地存储值 | 除以 100 | 原始 Landsat DN | 按 USGS 公式换算 |
24
+ |---|---:|---:|---:|---:|
25
+ | Prithvi `T03VXK/obs_0014/r00_c00`,像元 `[128,128]` | -2028 | -20.28°C | 30387 | -20.286626°C |
26
+ | LSTSR `T01WCP_v000_p0000`,4 月 `[128,128]` | -868 | -8.68°C | 33782 | -8.682448°C |
27
+
28
+ ## 其他证据
29
+
30
+ 两套数据已冻结的训练集样本等权均值分别为 2539.23749、2709.74793 个存储单位;除以 100 后分别为 25.39237°C 和 27.09748°C。这只是单位解释的辅助证据,不用于单独证明单位。
31
+
32
+ LSTSR 的 LR 来自 MODIS/061/MOD11A1,其原始温度比例是 0.02 K/DN,见 [官方数据目录](https://developers.google.com/earth-engine/datasets/catalog/MODIS_061_MOD11A1)。既有 2,560 个 sequence 的确定性样本中,1,693,306 个有效 LR 像元的整数值全部是奇数,正好符合 `100 * (0.02 * MODIS_DN - 273.15) = 2 * MODIS_DN - 27315` 的量化特征。它支持 LR 同样保存为摄氏度 × 100,但当前训练范围仅为 HR;不要把 Landsat 原始 DN 公式用于 MODIS。
33
+
34
+ ## 当前统一接口如何用
35
+
36
+ ```python
37
+ import numpy as np
38
+ from eo_data import open_dataset
39
+
40
+ ds = open_dataset('prithvi', 'lst', 'train') # 另一套使用 'lstsr_tb'
41
+ sample = ds[0]
42
+ temperature_c = ds.denormalize(sample['image']) / 100.0
43
+ temperature_c = np.where(sample['reference_mask'], temperature_c, np.nan)
44
+ ```
45
+
46
+ `image` 已是 z-score,不能直接除以 100 当温度;无效位置也要保持 mask。当前 `denormalize()` 返回存储编码值。v1 文件和代码没有在这次单位核验中更改,冻结统计中的未知单位标志是构建时的历史状态。
47
+
48
+ 物理单位恢复与训练标准化分开解释:将存储值、训练均值和标准差同时除以 100,z-score 不变。因此不需要重跑全量处理。物理温度 MAE/RMSE 为存储单位误差除以 100,MSE 除以 10000;沿用原来的有效像元与样本权重。
49
+
50
+ ## 复查入口
51
+
52
+ - [检查脚本](check_lst_encoding.py):读取原文件、已冻结统计及公开原始场景,输出逐点结果。
53
+ - [逐点结果 JSON](lst_encoding_verification.json):含请求参数、原始响应、场景 ID、源文件 SHA-256、失败记录与分母。
54
+ - [检查 notebook](lst_encoding_verification.ipynb):展示结果,并提供重新运行同一检查的入口。
55
+
56
+ 在工作区运行 `python experiments/data/check_lst_encoding.py` 即可重做检查。公开数据服务的未来变化可能导致来源不可用,失败会保留在结果中。
experiments/data/dataset_catalog.json ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "updated": "2026-09-30",
4
+ "source_document": "data_inspection/FINAL_DATASET_SUMMARY.md",
5
+ "scope": "Current dataset working names and versioned split metadata; original source storage and legacy v1 remain unchanged.",
6
+ "terms": {
7
+ "hr": "fine-resolution LST",
8
+ "lr": "coarse-resolution LST",
9
+ "sequence_id": "calendar-month bundle identifier (HLC)",
10
+ "fine_lst_role": "satellite-retrieved reference product",
11
+ "temperature_decode": "stored / 100.0 (degrees Celsius); mask invalid values first",
12
+ "reader_temperature_decode": "ds.denormalize(sample['image']) / 100.0; use reference_mask",
13
+ "resolution_ratio": "256 / 8 = 32 is the array side-length ratio, not independent thermal information gain"
14
+ },
15
+ "datasets": [
16
+ {
17
+ "name": "HLS-LST-Pairs",
18
+ "short_name": "HLP",
19
+ "reader_id": "prithvi",
20
+ "legacy_names": [
21
+ "Prithvi Data",
22
+ "prithvi_data"
23
+ ],
24
+ "record_unit": "HLS/fine LST patch pair",
25
+ "records": 242416,
26
+ "mgrs_tiles": 3094,
27
+ "hls_samples": 242416,
28
+ "fine_lst_samples": 242416,
29
+ "splits": {
30
+ "train": {
31
+ "reader_split": "train",
32
+ "tiles": 2796,
33
+ "hls_samples": 218975,
34
+ "fine_lst_samples": 218975
35
+ },
36
+ "validation": {
37
+ "reader_split": "val",
38
+ "tiles": 147,
39
+ "hls_samples": 11684,
40
+ "fine_lst_samples": 11684
41
+ },
42
+ "test": {
43
+ "reader_split": "test",
44
+ "tiles": 151,
45
+ "hls_samples": 11757,
46
+ "fine_lst_samples": 11757
47
+ }
48
+ },
49
+ "storage": {
50
+ "kind": "zip64_eoz",
51
+ "path": "artifacts/prithvi_data_v1_20260909.zip"
52
+ },
53
+ "prepared_directory": "processed_data/hlp_split_v2_20260914/prithvi",
54
+ "coarse_lst": "not delivered; synthetic degradation required",
55
+ "continuous_time_series": false,
56
+ "legacy_prepared_directory": "processed_data/v1/prithvi",
57
+ "legacy_split_mapping": {
58
+ "train": "train",
59
+ "test": "val"
60
+ },
61
+ "reader_prepared_argument": "processed_data/hlp_split_v2_20260914",
62
+ "split_version": "hlp-tile-validation-v2-20260914",
63
+ "split_summary": "data_inspection/hlp_split_20260914/split_summary.json"
64
+ },
65
+ {
66
+ "name": "HLS-LST-CrossSensor",
67
+ "short_name": "HLC",
68
+ "reader_id": "lstsr_tb",
69
+ "legacy_names": [
70
+ "LSTSR-TB",
71
+ "LSTSR",
72
+ "lstsr_tb_final_upload_20260721"
73
+ ],
74
+ "record_unit": "calendar-month bundle",
75
+ "records": 277808,
76
+ "mgrs_tiles": 2490,
77
+ "hls_samples": 277808,
78
+ "fine_lst_samples": 2892007,
79
+ "splits": {
80
+ "train": {
81
+ "reader_split": "train",
82
+ "hls_samples": 250449,
83
+ "fine_lst_samples": 2608772
84
+ },
85
+ "validation": {
86
+ "reader_split": "val",
87
+ "hls_samples": 13694,
88
+ "fine_lst_samples": 141711
89
+ },
90
+ "test": {
91
+ "reader_split": "test",
92
+ "hls_samples": 13665,
93
+ "fine_lst_samples": 141524
94
+ }
95
+ },
96
+ "storage": {
97
+ "kind": "npz_directory",
98
+ "path": "data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719"
99
+ },
100
+ "prepared_directory": "processed_data/v1/lstsr_tb",
101
+ "coarse_lst": "Terra/MODIS MOD11A1 Collection 6.1; actual same-calendar-day coarse/fine pairs",
102
+ "continuous_time_series": false,
103
+ "full_membership_experiments": [
104
+ {
105
+ "run_id": "hlc-synthetic-full-epoch1-ddp2-io16-20260916-v3",
106
+ "manifest": "experiments/efdiff_hlc/deadline_run_manifest.json",
107
+ "train_fine_lst_months": 2608772,
108
+ "epochs": 1,
109
+ "val_fine_lst_months": 512,
110
+ "test_used": false,
111
+ "input": "synthetic Wald32 coarse LST and associated HLS",
112
+ "split_membership_unchanged": true,
113
+ "status": "complete; each model 2608772 records, 40763 updates, one epoch; 24-hour deadline met",
114
+ "world_size_per_model": 2,
115
+ "deadline_utc": "2026-09-18T04:23:04Z",
116
+ "loader_workers_per_rank": 16,
117
+ "local_full_test": {
118
+ "status": "launched; see run manifest and live pipeline",
119
+ "records": 141524,
120
+ "crop": 224,
121
+ "checkpoint": "fixed_epoch1_ema",
122
+ "test_used_for_selection": false,
123
+ "manifest": "experiments/efdiff_hlc/deadline_run_manifest.json",
124
+ "live_pipeline": "output/efdiff_hlc_epoch1_deadline_io16_20260916/full_test_20260921/pipeline.json"
125
+ }
126
+ },
127
+ {
128
+ "run_id": "hlc-synthetic-full-epoch1-20260916-v1",
129
+ "manifest": "experiments/efdiff_hlc/epoch1_run_manifest.json",
130
+ "train_fine_lst_months": 2608772,
131
+ "epochs": 1,
132
+ "val_fine_lst_months": 512,
133
+ "test_used": false,
134
+ "input": "synthetic Wald32 coarse LST and associated HLS",
135
+ "split_membership_unchanged": true,
136
+ "status": "preparation superseded by deadline DDP2 run; statistics retained"
137
+ }
138
+ ],
139
+ "experimental_subsets": [
140
+ {
141
+ "version": "efdiff-hlc-synthetic-pilot-16384-512-v1",
142
+ "scope": "experiment-only fixed subset; original splits unchanged",
143
+ "summary": "experiments/efdiff_hlc/pilot_membership/summary.json",
144
+ "manifest": "experiments/efdiff_hlc/pilot_run_manifest.json",
145
+ "train_fine_lst_months": 16384,
146
+ "val_fine_lst_months": 512,
147
+ "test_used": false,
148
+ "input": "synthetic Wald32 coarse LST and associated HLS; no actual MODIS input"
149
+ }
150
+ ],
151
+ "new_experiment_spatial_protocol": {
152
+ "protocol": "efdiff-hlc-fixed-center224-no-flip-20260930-v1",
153
+ "definition": "experiments/efdiff_hlc/center_crop_protocol.json",
154
+ "scope": "New synthetic-degradation experiments only; original data, splits and frozen historical training unchanged",
155
+ "shared_across_sequence_months": true,
156
+ "shared_across_epochs": true,
157
+ "crop": [
158
+ 16,
159
+ 240,
160
+ 16,
161
+ 240
162
+ ],
163
+ "random_flip": false
164
+ }
165
+ }
166
+ ]
167
+ }
experiments/data/protocol.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "protocol_id": "eo-independent-reconstruction-v1",
3
+ "status": "defined_not_materialized",
4
+ "training_scope": "independent_datasets",
5
+ "shared_processing_policy": {
6
+ "modalities": ["hls", "lst_hr"],
7
+ "shape": {"hls": [6, 256, 256], "lst_hr": [1, 256, 256]},
8
+ "dtype": "float32",
9
+ "hls_band_order": ["Blue", "Green", "Red", "NIR", "SWIR1", "SWIR2"],
10
+ "hls_fmask_fill": 255,
11
+ "hls_bad_fmask_bits": 14,
12
+ "hls_mask_rule": "source_valid AND all_bands_not_fill AND fmask!=255 AND (fmask&14)==0",
13
+ "lst_mask_rule": "source_valid_if_present AND raw_not_source_fill",
14
+ "remove_zero_as_nodata": false,
15
+ "extra_snow_water_aerosol_exclusion": false,
16
+ "normalization": {
17
+ "method": "fixed_zscore",
18
+ "fit_split": "train",
19
+ "parameter_scope": ["dataset_id", "modality", "split_hash"],
20
+ "hls": "per_band",
21
+ "lst_hr": "one_channel_global",
22
+ "weighting": "equal_training_samples_and_equal_valid_pixels_within_each_sample",
23
+ "per_image_fitting": false,
24
+ "clip": false,
25
+ "invalid_fill_after_normalization": 0.0,
26
+ "train_only": true,
27
+ "physical_unit_required_for_physical_metrics": true
28
+ },
29
+ "augmentation": {"geometric": false, "synthetic_noise": false},
30
+ "sampling": "uniform_shuffle_over_eligible_modality_samples",
31
+ "hls_repeat_per_lst_month_for_independent_training": false,
32
+ "model_specific_resizing_or_normalization": false,
33
+ "prithvi_time_dimension": "length_one_layout_only",
34
+ "loss_reduction": "mean_of_per_sample_valid_element_means",
35
+ "all_invalid_sample": "exclude_for_that_modality_and_log",
36
+ "expose_provenance_to_model_automatically": false
37
+ },
38
+ "datasets": {
39
+ "prithvi": {
40
+ "root": "prithvi_data",
41
+ "index_source": "actual_file_inventory",
42
+ "sample_key": ["source_split", "tile", "obs_idx", "row", "col"],
43
+ "splits": ["train", "val"],
44
+ "hls_array": "bands.npy",
45
+ "hls_fmask": "fmask.npy",
46
+ "hls_scale": 0.0001,
47
+ "hls_fill_candidates": [-9999, -32767, -32768],
48
+ "lst_hr_array": "lst.npy",
49
+ "lst_observed_fill": -32767,
50
+ "lst_recorded_scale_divisor": 100,
51
+ "lst_physical_unit": null,
52
+ "lst_baseline_statistics_space": "raw_int16_as_float_until_physical_decode_confirmed"
53
+ },
54
+ "lstsr_tb": {
55
+ "upload_root": "lstsr_tb_final_upload_20260721",
56
+ "root": "data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719",
57
+ "index_source": "phase4_dataset_manifest.csv",
58
+ "hls_manifest": "hls_l8_conditions_2019_2025_lc08/hls_condition_manifest.csv",
59
+ "splits": ["train", "val", "test"],
60
+ "hls_sample_key": ["sequence_id"],
61
+ "lst_hr_sample_key": ["sequence_id", "available_month"],
62
+ "hls_array_key": "hls_reflectance_i16",
63
+ "hls_valid_key": "hls_valid",
64
+ "hls_fmask_key": "hls_fmask",
65
+ "hls_scale": 0.0001,
66
+ "hls_nodata": -32768,
67
+ "lst_hr_array_key": "hr_lst",
68
+ "lst_hr_valid_key": "hr_valid",
69
+ "lst_nodata": -32768,
70
+ "lst_physical_unit": null,
71
+ "lst_baseline_statistics_space": "raw_int16_as_float_until_physical_decode_confirmed",
72
+ "availability_rule": "manifest_available_months_AND_nonempty_hr_valid",
73
+ "require_complete_twelve_months": false,
74
+ "lst_lr_in_current_baseline": false
75
+ }
76
+ },
77
+ "normalization_profiles": ["prithvi/hls", "prithvi/lst_hr", "lstsr_tb/hls", "lstsr_tb/lst_hr"],
78
+ "model_architectures_per_profile": ["vae", "prithvi_architecture_vae"],
79
+ "run_count": 8,
80
+ "frozen_normalization_files": [],
81
+ "training_started": false
82
+ }
experiments/efdiff_hlc/center_crop_protocol.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "protocol": "efdiff-hlc-fixed-center224-no-flip-20260930-v1",
3
+ "scope": "New HLC synthetic-degradation experiments; frozen historical runs unchanged",
4
+ "dataset": "HLS-LST-CrossSensor",
5
+ "prepared": "processed_data/v1",
6
+ "loader": "experiments/efdiff_hlc/center_data.py:HLCPairs",
7
+ "loader_arguments": {"augment": false},
8
+ "source_size": [256, 256],
9
+ "crop_size": [224, 224],
10
+ "row_slice": [16, 240],
11
+ "column_slice": [16, 240],
12
+ "shared_across_sequence_months": true,
13
+ "shared_across_epochs": true,
14
+ "random_flip": false,
15
+ "modalities": ["fine LST", "HLS", "mask"],
16
+ "synthetic_coarse": "Wald x32 degradation after the shared crop",
17
+ "normalization": "Reuse verified historical full-train center-crop statistics with their original provenance; center_data.check_stats validates them",
18
+ "new_run_requirements": ["Import center_data.HLCPairs and center_data.check_stats", "Pass augment=False", "Record protocol and center_data.py hash in provenance and checkpoint compatibility checks", "Use a new run ID; do not resume historical random-crop checkpoints as a controlled fresh comparison"],
19
+ "launch_status": "loader prepared; no new training launched"
20
+ }
processed_data/v1/lstsr_tb/bundle.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "eo-independent-reconstruction-v1",
3
+ "dataset": "lstsr_tb",
4
+ "status": "ready",
5
+ "scope": "full",
6
+ "backend": "npz",
7
+ "source_root": "data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719",
8
+ "records": 277808,
9
+ "samples": {
10
+ "test/hls": {
11
+ "samples": 13665,
12
+ "index": "indices/test.hls.npy",
13
+ "sha256": "0b9e21fa5139109f5ac6fd8e0c9f3b752b7e471eadb34c9520e891a2a4b755b6"
14
+ },
15
+ "train/hls": {
16
+ "samples": 250449,
17
+ "index": "indices/train.hls.npy",
18
+ "sha256": "cabbca0e1424f84893efa138d0ca6e4dd397c22dd335525bd32a8281ae3f3500"
19
+ },
20
+ "val/hls": {
21
+ "samples": 13694,
22
+ "index": "indices/val.hls.npy",
23
+ "sha256": "d3cc1361a9ff55b3ccf4cb50c39a437eeaa360ebcf93e8f504e7d293a2bad0b6"
24
+ },
25
+ "test/lst_hr": {
26
+ "samples": 141524,
27
+ "index": "indices/test.lst_hr.npy",
28
+ "sha256": "4a94702e7b45c680e144a6b8f81cad51a394fa33369cea07db5f9f1c631b76f0"
29
+ },
30
+ "train/lst_hr": {
31
+ "samples": 2608772,
32
+ "index": "indices/train.lst_hr.npy",
33
+ "sha256": "e1a76a84b8872caab5a8a2a6494b08b67891943677ec3c9f007fab02d29f6715"
34
+ },
35
+ "val/lst_hr": {
36
+ "samples": 141711,
37
+ "index": "indices/val.lst_hr.npy",
38
+ "sha256": "855e7a933dafbc400be01e98912c352aa02133c1f72e5ef5921b0a9b6daace78"
39
+ }
40
+ },
41
+ "normalization": "normalization.json",
42
+ "artifacts": {
43
+ "index.sqlite": "9a256c2395174cd3e53f8cfaf57b6ccac3cf187f161eeb5303d51c805a920f82",
44
+ "normalization.json": "4d19c9c4ec24f5e9bc38ad5a7f466881d8da57e2cec5750f3751df08cb39a260",
45
+ "source_index.jsonl": "320cba48e59dd201c2ec2763bc33fffec5ab31488458fdf1e993090bcc292a3e",
46
+ "source_info.json": "463de81163ea3e7b2a9249cc304f4edbb4e4cab42e9bf6756ec02c01d6f67d5e",
47
+ "protocol.json": "986e5c3210bf3d2e54c9eccedc0775c4724ab475e1bb98ef893d65befe5a3bc8"
48
+ },
49
+ "identity": {
50
+ "protocol_sha256": "b3f6a94d26cfa021334aca031fe445ee7a80dcbe911e17a3728e1b77c025a98d",
51
+ "pipeline_sha256": {
52
+ "codec.py": "7e3f21ca95652919dd69d26b5f448af7da8af7c47a836e900f4c6b01ba340dff",
53
+ "core.py": "7b56ddaa8d037a7acab3fb1f17ea1e294bc21d69187a0efbc43735dbe0d0c513",
54
+ "dataset.py": "c335ab2975f019eccbeefab4b7c443e49867c592169f0c4b0f09be101360af84",
55
+ "prepare.py": "9ba7e9277088591696de88f9ce1b739e23b3b15729d8ea2fab03dc3ddc66c378",
56
+ "verify.py": "0980a434089637c9eb702be95568302589d1786c4aaabe4b8d216442eb772e2f",
57
+ "__init__.py": "b89c5939d137e74d81e82fa90d01f085d3d62d498f380b18770e1e8b42d99b58",
58
+ "__main__.py": "7d8ef47df0580c754b3d581e4024a0924a7e3abd8fb4c67f9cb53fb63aa7a058"
59
+ },
60
+ "source_index_sha256": "320cba48e59dd201c2ec2763bc33fffec5ab31488458fdf1e993090bcc292a3e",
61
+ "zstd_level": 3,
62
+ "limit": null
63
+ },
64
+ "source_manifest_hashes": {
65
+ "data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/phase4_dataset_manifest.csv": "7110aca1ec7ef1d55b3098686e98139d9230577734d45863468a5622af0c253c",
66
+ "data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/hls_l8_conditions_2019_2025_lc08/hls_condition_manifest.csv": "08d8d48d45e592b7e27994bcbc8835c8d493f08cef1f1c851c2d553e602da946"
67
+ },
68
+ "source_bytes": 432655059412,
69
+ "packed_bytes": 0,
70
+ "shards": [],
71
+ "all_packed_records_byte_verified": false,
72
+ "rejected": {},
73
+ "auxiliary": {},
74
+ "elapsed_seconds": 2844.987811088562
75
+ }
processed_data/v1/lstsr_tb/index.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a256c2395174cd3e53f8cfaf57b6ccac3cf187f161eeb5303d51c805a920f82
3
+ size 538554368
processed_data/v1/lstsr_tb/indices/test.hls.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b9e21fa5139109f5ac6fd8e0c9f3b752b7e471eadb34c9520e891a2a4b755b6
3
+ size 328088
processed_data/v1/lstsr_tb/indices/test.lst_hr.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a94702e7b45c680e144a6b8f81cad51a394fa33369cea07db5f9f1c631b76f0
3
+ size 3396704
processed_data/v1/lstsr_tb/indices/train.hls.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cabbca0e1424f84893efa138d0ca6e4dd397c22dd335525bd32a8281ae3f3500
3
+ size 6010904
processed_data/v1/lstsr_tb/indices/train.lst_hr.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1a76a84b8872caab5a8a2a6494b08b67891943677ec3c9f007fab02d29f6715
3
+ size 62610656
processed_data/v1/lstsr_tb/indices/val.hls.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3cc1361a9ff55b3ccf4cb50c39a437eeaa360ebcf93e8f504e7d293a2bad0b6
3
+ size 328784
processed_data/v1/lstsr_tb/indices/val.lst_hr.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:855e7a933dafbc400be01e98912c352aa02133c1f72e5ef5921b0a9b6daace78
3
+ size 3401192
processed_data/v1/lstsr_tb/normalization.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "hls": {
3
+ "mean": [
4
+ 0.06004754034145592,
5
+ 0.09453229605916574,
6
+ 0.10980806300230178,
7
+ 0.2747008017865311,
8
+ 0.24341935169315215,
9
+ 0.17196968451789005
10
+ ],
11
+ "std": [
12
+ 0.0680510125621377,
13
+ 0.07543071016089009,
14
+ 0.09833689281963476,
15
+ 0.10047386303401144,
16
+ 0.12207512634543984,
17
+ 0.11687593558796062
18
+ ],
19
+ "unfloored_std": [
20
+ 0.0680510125621377,
21
+ 0.07543071016089009,
22
+ 0.09833689281963476,
23
+ 0.10047386303401144,
24
+ 0.12207512634543984,
25
+ 0.11687593558796062
26
+ ],
27
+ "std_floor": 1e-06,
28
+ "samples": 250449,
29
+ "valid_spatial_pixels": 16399726473,
30
+ "fit_split": "train",
31
+ "weighting": "equal_samples_then_equal_valid_pixels_within_sample",
32
+ "units": "reflectance",
33
+ "physical_temperature_unit_confirmed": null
34
+ },
35
+ "lst_hr": {
36
+ "mean": [
37
+ 2709.747934379476
38
+ ],
39
+ "std": [
40
+ 1671.9957488981986
41
+ ],
42
+ "unfloored_std": [
43
+ 1671.9957488981986
44
+ ],
45
+ "std_floor": 1e-06,
46
+ "samples": 2608772,
47
+ "valid_spatial_pixels": 170188681574,
48
+ "fit_split": "train",
49
+ "weighting": "equal_samples_then_equal_valid_pixels_within_sample",
50
+ "units": "source_raw_int16_units",
51
+ "physical_temperature_unit_confirmed": false
52
+ }
53
+ }
processed_data/v1/lstsr_tb/progress.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "lstsr_tb",
3
+ "status": "complete",
4
+ "records": 277808,
5
+ "samples": {
6
+ "test/hls": 13665,
7
+ "train/hls": 250449,
8
+ "val/hls": 13694,
9
+ "test/lst_hr": 141524,
10
+ "train/lst_hr": 2608772,
11
+ "val/lst_hr": 141711
12
+ },
13
+ "elapsed_seconds": 2844.987811088562
14
+ }
processed_data/v1/lstsr_tb/protocol.json ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "protocol_id": "eo-independent-reconstruction-v1",
3
+ "status": "defined_not_materialized",
4
+ "training_scope": "independent_datasets",
5
+ "shared_processing_policy": {
6
+ "modalities": [
7
+ "hls",
8
+ "lst_hr"
9
+ ],
10
+ "shape": {
11
+ "hls": [
12
+ 6,
13
+ 256,
14
+ 256
15
+ ],
16
+ "lst_hr": [
17
+ 1,
18
+ 256,
19
+ 256
20
+ ]
21
+ },
22
+ "dtype": "float32",
23
+ "hls_band_order": [
24
+ "Blue",
25
+ "Green",
26
+ "Red",
27
+ "NIR",
28
+ "SWIR1",
29
+ "SWIR2"
30
+ ],
31
+ "hls_fmask_fill": 255,
32
+ "hls_bad_fmask_bits": 14,
33
+ "hls_mask_rule": "source_valid AND all_bands_not_fill AND fmask!=255 AND (fmask&14)==0",
34
+ "lst_mask_rule": "source_valid_if_present AND raw_not_source_fill",
35
+ "remove_zero_as_nodata": false,
36
+ "extra_snow_water_aerosol_exclusion": false,
37
+ "normalization": {
38
+ "method": "fixed_zscore",
39
+ "fit_split": "train",
40
+ "parameter_scope": [
41
+ "dataset_id",
42
+ "modality",
43
+ "split_hash"
44
+ ],
45
+ "hls": "per_band",
46
+ "lst_hr": "one_channel_global",
47
+ "weighting": "equal_training_samples_and_equal_valid_pixels_within_each_sample",
48
+ "per_image_fitting": false,
49
+ "clip": false,
50
+ "invalid_fill_after_normalization": 0.0,
51
+ "train_only": true,
52
+ "physical_unit_required_for_physical_metrics": true
53
+ },
54
+ "augmentation": {
55
+ "geometric": false,
56
+ "synthetic_noise": false
57
+ },
58
+ "sampling": "uniform_shuffle_over_eligible_modality_samples",
59
+ "hls_repeat_per_lst_month_for_independent_training": false,
60
+ "model_specific_resizing_or_normalization": false,
61
+ "prithvi_time_dimension": "length_one_layout_only",
62
+ "loss_reduction": "mean_of_per_sample_valid_element_means",
63
+ "all_invalid_sample": "exclude_for_that_modality_and_log",
64
+ "expose_provenance_to_model_automatically": false
65
+ },
66
+ "datasets": {
67
+ "prithvi": {
68
+ "root": "prithvi_data",
69
+ "index_source": "actual_file_inventory",
70
+ "sample_key": [
71
+ "source_split",
72
+ "tile",
73
+ "obs_idx",
74
+ "row",
75
+ "col"
76
+ ],
77
+ "splits": [
78
+ "train",
79
+ "val"
80
+ ],
81
+ "hls_array": "bands.npy",
82
+ "hls_fmask": "fmask.npy",
83
+ "hls_scale": 0.0001,
84
+ "hls_fill_candidates": [
85
+ -9999,
86
+ -32767,
87
+ -32768
88
+ ],
89
+ "lst_hr_array": "lst.npy",
90
+ "lst_observed_fill": -32767,
91
+ "lst_recorded_scale_divisor": 100,
92
+ "lst_physical_unit": null,
93
+ "lst_baseline_statistics_space": "raw_int16_as_float_until_physical_decode_confirmed"
94
+ },
95
+ "lstsr_tb": {
96
+ "upload_root": "lstsr_tb_final_upload_20260721",
97
+ "root": "data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719",
98
+ "index_source": "phase4_dataset_manifest.csv",
99
+ "hls_manifest": "hls_l8_conditions_2019_2025_lc08/hls_condition_manifest.csv",
100
+ "splits": [
101
+ "train",
102
+ "val",
103
+ "test"
104
+ ],
105
+ "hls_sample_key": [
106
+ "sequence_id"
107
+ ],
108
+ "lst_hr_sample_key": [
109
+ "sequence_id",
110
+ "available_month"
111
+ ],
112
+ "hls_array_key": "hls_reflectance_i16",
113
+ "hls_valid_key": "hls_valid",
114
+ "hls_fmask_key": "hls_fmask",
115
+ "hls_scale": 0.0001,
116
+ "hls_nodata": -32768,
117
+ "lst_hr_array_key": "hr_lst",
118
+ "lst_hr_valid_key": "hr_valid",
119
+ "lst_nodata": -32768,
120
+ "lst_physical_unit": null,
121
+ "lst_baseline_statistics_space": "raw_int16_as_float_until_physical_decode_confirmed",
122
+ "availability_rule": "manifest_available_months_AND_nonempty_hr_valid",
123
+ "require_complete_twelve_months": false,
124
+ "lst_lr_in_current_baseline": false
125
+ }
126
+ },
127
+ "normalization_profiles": [
128
+ "prithvi/hls",
129
+ "prithvi/lst_hr",
130
+ "lstsr_tb/hls",
131
+ "lstsr_tb/lst_hr"
132
+ ],
133
+ "model_architectures_per_profile": [
134
+ "vae",
135
+ "prithvi_architecture_vae"
136
+ ],
137
+ "run_count": 8,
138
+ "frozen_normalization_files": [],
139
+ "training_started": false
140
+ }
processed_data/v1/lstsr_tb/source_index.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:320cba48e59dd201c2ec2763bc33fffec5ab31488458fdf1e993090bcc292a3e
3
+ size 185447541
processed_data/v1/lstsr_tb/source_info.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "lstsr_tb",
3
+ "source_root": "data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719",
4
+ "records": 277808,
5
+ "record_counts": {
6
+ "train": 250449,
7
+ "test": 13665,
8
+ "val": 13694
9
+ },
10
+ "candidate_samples": {
11
+ "train/hls": 250449,
12
+ "train/lst_hr": 2608772,
13
+ "test/hls": 13665,
14
+ "test/lst_hr": 141524,
15
+ "val/hls": 13694,
16
+ "val/lst_hr": 141711
17
+ },
18
+ "source_manifest_hashes": {
19
+ "data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/phase4_dataset_manifest.csv": "7110aca1ec7ef1d55b3098686e98139d9230577734d45863468a5622af0c253c",
20
+ "data_inspection/extracted_metadata/lstsr_tb_final_dataset_20260719/hls_l8_conditions_2019_2025_lc08/hls_condition_manifest.csv": "08d8d48d45e592b7e27994bcbc8835c8d493f08cef1f1c851c2d553e602da946"
21
+ },
22
+ "index_sha256": "320cba48e59dd201c2ec2763bc33fffec5ab31488458fdf1e993090bcc292a3e",
23
+ "auxiliary": {},
24
+ "limit": null
25
+ }
processed_data/v1/lstsr_tb/verification.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "status": "passed",
3
+ "scope": "full",
4
+ "profiles": {
5
+ "test/hls": {
6
+ "samples": 13665,
7
+ "checked": 32,
8
+ "roundtrip_passed": true
9
+ },
10
+ "train/hls": {
11
+ "samples": 250449,
12
+ "checked": 32,
13
+ "roundtrip_passed": true
14
+ },
15
+ "val/hls": {
16
+ "samples": 13694,
17
+ "checked": 32,
18
+ "roundtrip_passed": true
19
+ },
20
+ "test/lst_hr": {
21
+ "samples": 141524,
22
+ "checked": 32,
23
+ "roundtrip_passed": true
24
+ },
25
+ "train/lst_hr": {
26
+ "samples": 2608772,
27
+ "checked": 32,
28
+ "roundtrip_passed": true
29
+ },
30
+ "val/lst_hr": {
31
+ "samples": 141711,
32
+ "checked": 32,
33
+ "roundtrip_passed": true
34
+ }
35
+ },
36
+ "all_compressed_records_verified_during_preparation": false,
37
+ "seconds": 2.1120287000012468
38
+ }
release.json ADDED
The diff for this file is too large to render. See raw diff
 
scripts/restore.py ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Restore a versioned HLP/HLC Hub snapshot without changing frozen indices."""
2
+ import argparse
3
+ import hashlib
4
+ import json
5
+ import os
6
+ from pathlib import Path
7
+ import tarfile
8
+
9
+
10
+ def safe_path(root, relative):
11
+ path = (root / relative).resolve()
12
+ if not path.is_relative_to(root.resolve()):
13
+ raise ValueError(f"Path outside snapshot: {relative}")
14
+ return path
15
+
16
+
17
+ def digest(path):
18
+ h = hashlib.sha256()
19
+ with path.open('rb') as f:
20
+ for block in iter(lambda: f.read(8 * 1024**2), b''):
21
+ h.update(block)
22
+ return h.hexdigest()
23
+
24
+
25
+ def restore(root):
26
+ root = root.resolve()
27
+ release = json.loads((root / 'release.json').read_text(encoding='utf-8'))
28
+ # Validate manifests and reader/indices before trusting their restoration instructions.
29
+ for item in release['files']:
30
+ path = safe_path(root, item['path'])
31
+ if not path.is_file() or path.stat().st_size != item['size']:
32
+ raise ValueError(f"Missing or truncated file: {path}")
33
+ if item['path'].startswith('data/'):
34
+ continue # Every extracted byte is verified below against the member manifest.
35
+ if digest(path) != item['sha256']:
36
+ raise ValueError(f"Checksum mismatch: {path}")
37
+ if release['dataset'] == 'HLP':
38
+ item = next(x for x in release['files'] if x['path'].endswith('.zip'))
39
+ path = safe_path(root, item['path'])
40
+ os.utime(path, ns=(path.stat().st_atime_ns, item['mtime_ns']))
41
+ if path.stat().st_mtime_ns != item['mtime_ns']:
42
+ raise ValueError('Filesystem cannot preserve required nanosecond timestamp')
43
+ print('HLP archive verified; frozen timestamp restored. Use HLP v2 prepared explicitly.')
44
+ return
45
+ restored = 0
46
+ for shard in release['shards']:
47
+ records = {}
48
+ with safe_path(root, shard['members']).open(encoding='utf-8') as stream:
49
+ for line in stream:
50
+ row = json.loads(line)
51
+ if row['path'] in records:
52
+ raise ValueError('Duplicate member')
53
+ records[row['path']] = row
54
+ seen = set()
55
+ with tarfile.open(safe_path(root, shard['path']), 'r|') as archive:
56
+ for member in archive:
57
+ if not member.isfile() or member.name not in records or member.name in seen:
58
+ raise ValueError(f'Unexpected archive member: {member.name}')
59
+ seen.add(member.name)
60
+ row = records[member.name]
61
+ if member.size != row['size']:
62
+ raise ValueError(f'Wrong member size: {member.name}')
63
+ target = safe_path(root, member.name)
64
+ target.parent.mkdir(parents=True, exist_ok=True)
65
+ # Existing restored files are checked, never blindly overwritten.
66
+ if target.exists():
67
+ if target.stat().st_size != row['size'] or digest(target) != row['sha256']:
68
+ raise ValueError(f'Existing file differs: {target}')
69
+ else:
70
+ temporary = target.with_name(target.name + '.hf-restore-partial')
71
+ h = hashlib.sha256()
72
+ with archive.extractfile(member) as source, temporary.open('wb') as dest:
73
+ for block in iter(lambda: source.read(8 * 1024**2), b''):
74
+ dest.write(block)
75
+ h.update(block)
76
+ if h.hexdigest() != row['sha256']:
77
+ raise ValueError(f'Member checksum mismatch: {target}')
78
+ temporary.replace(target)
79
+ os.utime(target, ns=(target.stat().st_atime_ns, row['mtime_ns']))
80
+ if target.stat().st_mtime_ns != row['mtime_ns']:
81
+ raise ValueError(f'Filesystem timestamp precision mismatch: {target}')
82
+ restored += 1
83
+ if seen != records.keys():
84
+ raise ValueError(f'Missing members: {shard["path"]}')
85
+ print(f'Restored and verified {restored} files', flush=True)
86
+ print('HLC restored; use prepared="processed_data/v1".')
87
+
88
+
89
+ if __name__ == '__main__':
90
+ parser = argparse.ArgumentParser(description=__doc__)
91
+ parser.add_argument('--root', type=Path, default=Path(__file__).resolve().parents[1])
92
+ restore(parser.parse_args().root)