diff --git a/gmtsph-regional.sh b/gmtsph-regional.sh index a5d4730..e0c9737 100755 --- a/gmtsph-regional.sh +++ b/gmtsph-regional.sh @@ -107,10 +107,13 @@ else gmt psscale -Dx0.3i/-0.3i+w1.85i/0.08i+h -C${cptfile} -Bxa -By+l${unit} -O >> $psfile gmt psconvert $psfile -A -TEG -E300 # 删除临时文件 使用linux终端rm命令 - rm $cptfile $psfile gmt.history gmt.conf + rm $psfile gmt.history gmt.conf if [[ $plotgrad == 1 ]]; then rm $gradfile fi + if [[ $nocpt == 0 ]]; then + rm $cptfile + fi # 在终端显示图像 此命令需要imgcat.sh脚本和iTerm终端 #imgcat $jpgfile # 打开图片文件 此命令使用MacOS终端open命令