add +Uk to psscale command

This commit is contained in:
2018-05-03 11:55:09 -07:00
parent b97bee5eae
commit 13b60a3d7e
2 changed files with 14 additions and 4 deletions

View File

@@ -146,8 +146,13 @@ else
gmt pscoast -R${range} -JL -W0.25p -Dc -A5000 -K -O -P >> $psfile
fi
#-C${cptfile}+Uk 使用km色标单位除1000
gmt psscale -Dx${pagePara[1]}+w${pagePara[2]}+h -C${cptfile} -Bx${bartick} -By+l${unit} -O >> $psfile
#-C${cptfile}+Uk 使用km色标单位除1000
#如果unit等于km则在cptfile后面添加+Uk
if [[ ${unit} == 'km' ]]; then
gmt psscale -Dx${pagePara[1]}+w${pagePara[2]}+h -C${cptfile}+Uk -Bx${bartick} -By+l${unit} -O >> $psfile
else
gmt psscale -Dx${pagePara[1]}+w${pagePara[2]}+h -C${cptfile} -Bx${bartick} -By+l${unit} -O >> $psfile
fi
gmt psconvert $psfile -A -TEG -E300
# 删除临时文件 使用linux终端rm命令
rm $psfile gmt.history gmt.conf