From f27e997778a37177720c6b8247ff4c29d508e6cc Mon Sep 17 00:00:00 2001 From: pi Date: Thu, 22 Mar 2018 14:27:38 -0700 Subject: [PATCH] update file --- gmtsph-regional.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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命令