This commit is contained in:
2026-03-10 10:47:34 +08:00
parent 012fa9c6d8
commit ae0e98c9ee
12 changed files with 630883 additions and 8 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash
export DYLD_LIBRARY_PATH=/usr/local/lib:/opt/homebrew/lib:$DYLD_LIBRARY_PATH
exe=./build/bin/drtp
if [[ ${1} == "benchmark" ]]; then
@@ -50,4 +52,24 @@ cat <<- EOF > job.log
taylor-order = 3
EOF
${exe} job.log && ncview data/Inner_Mongolia_Cut/air_mag_inner_mongolia_cut_DRTP.nc
elif [[ ${1} == "mongolia2025" ]]; then
cat <<- EOF > job.log
# 输入网格文件
input-grid = data/Inner_Mongolia_2025/emag2v3_innermongolia_west.nc
output-grid = data/Inner_Mongolia_2025/emag2v3_innermongolia_west_DRTP.nc
grid-para = x,y,z
# 是否调用geomag计算正常场的倾角与偏角
call-geomag = yes
# geomag程序地址
geomag-exe = geomag70_linux/geomag70
# geomag参数
geomag-para = 2019,8,22 D M4000
# geomag输出文件
geomag-output = data/Inner_Mongolia_2025/geomag_inner_mongolia_2025.txt
# IGRF模型
IGRF = geomag70_linux/IGRF13.COF
# Taylor展开阶数
taylor-order = 3
EOF
${exe} job.log && ncview data/Inner_Mongolia_2025/emag2v3_innermongolia_west_DRTP.nc
fi