Skip to content

fix: SHUD服务器环境 baseline Step1-3 运行验证#33

Merged
DankerMu merged 1 commit into
mainfrom
fix/server-env-baseline-run
Feb 13, 2026
Merged

fix: SHUD服务器环境 baseline Step1-3 运行验证#33
DankerMu merged 1 commit into
mainfrom
fix/server-env-baseline-run

Conversation

@DankerMu
Copy link
Copy Markdown
Owner

背景

在 SHUD 服务器环境首次运行 baseline Step1-3,发现并修复了两个问题。

改动

1. AutoSHUD 子模块更新 (DankerMu/AutoSHUD#11)

Fun.Soil_Geol.Rraster::projectRaster 与 terra 1.8.x 不兼容,替换为 terra::project。同时修正投影方向(原 PCS→PCS no-op,应为 PCS→GCS)。

2. BUG_REPORT.md Appendix B

记录出口河段边界条件标记 Down=-4-3 问题:

  • 2022 原始文件手动设置 Down=-4(critical depth boundary)
  • slope bug 修复重跑 shud.river() 后被覆盖为默认 -3(zero-depth-gradient)
  • rSHUD 所有版本 sp.RiverDown() 默认 rep(-3, nsp),无 -4 支持

验证(SHUD 服务器环境)

  • R 4.3.1 + terra 1.8.86 + raster 3.6-26
  • rSHUD 从子模块安装到 ~/R/library~/.Renviron 配置 R_LIBS_USER
  • AutoSHUD Step1-3 baseline profile 全部通过
  • qhh.sp.riv MD5 可复现 (78763f08)
  • slope vs DEM 真值 cor=1.0,端点偏差 <0.5m(100% <1m)

- 更新 AutoSHUD 子模块 (Fun.Soil_Geol.R terra 兼容性修复)
- BUG_REPORT.md 追加 Appendix B: 出口边界条件标记 -4→-3 问题记录

验证环境: R 4.3.1 + terra 1.8.86, rSHUD 从子模块安装
验证结果: Step1-3 全部通过, qhh.sp.riv MD5 可复现 (78763f08)
@DankerMu
Copy link
Copy Markdown
Owner Author

Review

两处改动:

  1. AutoSHUD 子模块更新 — terra 兼容性修复(已通过 fix: terra compat — replace raster::projectRaster in Fun.Soil_Geol AutoSHUD#11 合并)
  2. BUG_REPORT.md Appendix B — 出口边界条件标记问题记录

CI 全部通过,SHUD 服务器环境 Step1-3 验证通过。

@DankerMu DankerMu merged commit 2848cc5 into main Feb 13, 2026
5 checks passed
@DankerMu DankerMu deleted the fix/server-env-baseline-run branch February 13, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant