diff --git a/gmtsph-regional.sh b/gmtsph-regional.sh index f100310..8f993e3 100755 --- a/gmtsph-regional.sh +++ b/gmtsph-regional.sh @@ -135,7 +135,7 @@ else fi if [[ $plotgrad == 1 ]]; then - gradfile=usergradient.nc + gradfile=${data%.*}Grad.nc gmt grdgradient ${data} -G${gradfile} -Nt -A0/45 gmt grdimage ${data} -R${range} -C${cptfile} -I${gradfile} -Bx${axistick[0]}g+l"${labels[0]}" -By${axistick[1]}g+l"${labels[1]}" -JL${plot_para[0]}/${plot_para[1]}/${plot_para[2]}/${plot_para[3]}/${pagePara[0]} -K -P > $psfile else