Install
openclaw skills install @ruiduobao/geoskill-atmospheric-correction对多光谱影像执行 DOS/简化6S 大气校正,将 DN/TOA 转为地表反射率。DOS/simplified-6S atmospheric correction converting DN/TOA to surface reflectance. 支持 Landsat 8/Sentinel-2 传感器元数据,输出地表反射率 GeoTIFF + 校正参数 JSON。
openclaw skills install @ruiduobao/geoskill-atmospheric-correctionPerforms atmospheric correction on multispectral remote sensing imagery, converting the DN values recorded by the sensor or top-of-atmosphere (TOA) reflectance into surface reflectance. Two methods are implemented:
Built-in band metadata for Landsat 8, Sentinel-2 and a generic sensor (central wavelength, exo-atmospheric solar irradiance ESUN). The --synthetic mode generates physically consistent simulated imagery, allowing the pipeline to be validated without network access or real data.
pip install numpy rasterio
python geoskill-atmospheric-correction.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./output
python geoskill-atmospheric-correction.py \
--bbox 116.0 39.0 117.0 40.0 \
--synthetic \
--sensor landsat8 \
--method dos \
--output-dir ./landsat8_dos
python geoskill-atmospheric-correction.py \
--bbox 121.0 31.0 122.0 32.0 \
--synthetic \
--sensor sentinel2 \
--method 6s-simplified \
--output-dir ./s2_6s
python geoskill-atmospheric-correction.py \
--input scene_dn.tif \
--sensor landsat8 \
--method dos \
--dark-percentile 0.5 \
--output-dir ./real_dos
python geoskill-atmospheric-correction.py \
--input scene.tif \
--sensor sentinel2 \
--solar-zenith 45.0 \
--output-dir ./custom_angle
python geoskill-atmospheric-correction.py --bbox 116 39 117 40 --synthetic --sensor landsat8 --method dos --output-dir ./cmp_dos --quiet
python geoskill-atmospheric-correction.py --bbox 116 39 117 40 --synthetic --sensor landsat8 --method 6s-simplified --output-dir ./cmp_6s --quiet
| File | Format | Description |
|---|---|---|
surface_reflectance.tif | GeoTIFF (float32) | Surface reflectance, per-band [0,1], EPSG:4326 |
correction_params.json | JSON | Per-band correction parameters (dark target DN, ρ_dark, ESUN, etc.) |
output-manifest.json | JSON | Run manifest (inputs/outputs/QA/software versions) |
--synthetic mode reads no external dataMIT
对多光谱遥感影像执行大气校正,将传感器记录的 DN 值或大气顶(TOA)反射率 转换为地表反射率(surface reflectance)。实现了两种方法:
内置 Landsat 8、Sentinel-2 和通用传感器的波段元数据(中心波长、太阳大气外
辐照度 ESUN)。支持 --synthetic 模式生成物理一致的模拟影像,无需网络和
真实数据即可验证流程。
pip install numpy rasterio
python geoskill-atmospheric-correction.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./output
python geoskill-atmospheric-correction.py \
--bbox 116.0 39.0 117.0 40.0 \
--synthetic \
--sensor landsat8 \
--method dos \
--output-dir ./landsat8_dos
python geoskill-atmospheric-correction.py \
--bbox 121.0 31.0 122.0 32.0 \
--synthetic \
--sensor sentinel2 \
--method 6s-simplified \
--output-dir ./s2_6s
python geoskill-atmospheric-correction.py \
--input scene_dn.tif \
--sensor landsat8 \
--method dos \
--dark-percentile 0.5 \
--output-dir ./real_dos
python geoskill-atmospheric-correction.py \
--input scene.tif \
--sensor sentinel2 \
--solar-zenith 45.0 \
--output-dir ./custom_angle
python geoskill-atmospheric-correction.py --bbox 116 39 117 40 --synthetic --sensor landsat8 --method dos --output-dir ./cmp_dos --quiet
python geoskill-atmospheric-correction.py --bbox 116 39 117 40 --synthetic --sensor landsat8 --method 6s-simplified --output-dir ./cmp_6s --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
surface_reflectance.tif | GeoTIFF (float32) | 地表反射率,逐波段 [0,1],EPSG:4326 |
correction_params.json | JSON | 逐波段校正参数(暗目标 DN、ρ_dark、ESUN 等) |
output-manifest.json | JSON | 运行清单(输入/输出/QA/软件版本) |
--synthetic 模式不读取任何外部数据MIT