|
| 1 | +rmsname=NewNC-Lmax134-subs30-collectAll |
| 2 | +optJ=679 #614 |
| 3 | +optJval=1.9551 #1.9720 |
| 4 | +#optJ=614 #679 #614 |
| 5 | +#optJval=1.9720 #1.9551 #1.9720 |
| 6 | +otherJ=938 |
| 7 | +otherJval=1.9134 |
| 8 | +Jrng=323/2500 |
| 9 | +Jstep=500 |
| 10 | +modprefix=${rmsname} |
| 11 | +figname=NewNorthCalorisJandModels-Lmax134-subs30-index12-Poster # This one for 679 |
| 12 | +#figname=NewNorthCalorisJandModels-Lmax134-subs30-index10 # This one for 614 |
| 13 | + |
| 14 | +# Don/t know what this is.... |
| 15 | +#otherJ=1157 |
| 16 | +#otherJval=1.89094 |
| 17 | + |
| 18 | + |
| 19 | +# rmsname=NewNC-Lmax134-subs50-collect10 |
| 20 | +# optJ=647 #679 #614 |
| 21 | +# optJval=1.9660 #1.9551 #1.9720 |
| 22 | +# otherJ=905 |
| 23 | +# otherJval=1.9243 |
| 24 | +# Jrng=323/2500 |
| 25 | +# Jstep=500 |
| 26 | +# modprefix=${rmsname} |
| 27 | +# figname=NewNorthCalorisJandModels-Lmax134-subs50-index6-Poster |
| 28 | + |
| 29 | +# rmsname=NewNC-Lmax134-subs15-collect10 |
| 30 | +# optJ=647 #679 #614 |
| 31 | +# optJval=1.9742 #1.9551 #1.9720 |
| 32 | +# otherJ=905 |
| 33 | +# otherJval=1.9307 |
| 34 | +# Jrng=323/2500 |
| 35 | +# Jstep=500 |
| 36 | +# modprefix=${rmsname} |
| 37 | +# figname=NewNorthCalorisJandModels-Lmax134-subs15-index6-Poster |
| 38 | + |
| 39 | + |
| 40 | +gmt begin ../GMTfigs/${figname} #-index12 |
| 41 | + |
| 42 | +gmt set FONT 15p |
| 43 | + |
| 44 | +# For the models |
| 45 | +maxcol=44 |
| 46 | + |
| 47 | + |
| 48 | +# Select J fig |
| 49 | +minval=1.8 |
| 50 | +maxval=2.35 |
| 51 | +#optJval=2.006 |
| 52 | +placelabel=2.39 |
| 53 | + |
| 54 | + |
| 55 | +#bmsize=10c/5.17c |
| 56 | +bmsize=10c/4.69c |
| 57 | + |
| 58 | + |
| 59 | +gmt basemap -JX${bmsize} -R${Jrng}/${minval}/${maxval} -Bnews |
| 60 | +for i in {1..100} |
| 61 | +do |
| 62 | + gmt plot ../GMTdata/solutions/rms/${rmsname}/rms${i}.txt -Wgray |
| 63 | +done |
| 64 | +gmt plot ../GMTdata/solutions/rms/${rmsname}/meanrms.txt -Wthick,black -Bxa$Jstep -Bya0.1 -BneSW -Bx+l"number @[J@[ of Slepian functions" -By+l"rmse [nT]" |
| 65 | + |
| 66 | +gmt plot -Sc0.2c -Wthick <<EOF |
| 67 | +$optJ $optJval |
| 68 | +EOF |
| 69 | +gmt plot -BnSeW -Wblack <<EOF |
| 70 | +$optJ ${maxval} |
| 71 | +$optJ $optJval |
| 72 | +EOF |
| 73 | +gmt text -N --FONT=13 <<EOF |
| 74 | +${optJ} ${placelabel} ${optJ} |
| 75 | +${otherJ} ${placelabel} ${otherJ} |
| 76 | +EOF |
| 77 | +# A tick mark |
| 78 | +gmt plot -N -Sy5p <<EOF |
| 79 | +$optJ ${maxval} |
| 80 | +EOF |
| 81 | +gmt plot -N -Sy5p <<EOF |
| 82 | +$otherJ ${maxval} |
| 83 | +EOF |
| 84 | +# Show also other solutions |
| 85 | +gmt plot -Wblack <<EOF |
| 86 | +${otherJ} ${maxval} |
| 87 | +${otherJ} ${otherJval} |
| 88 | +EOF |
| 89 | +# Label for letter |
| 90 | +gmt text -JX${bmsize} --FONT=20 -R0/1/0/1 <<EOF |
| 91 | +0.05 0.88 a |
| 92 | +EOF |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | +## Models |
| 97 | +lolaOld=125/30/255/52.5r |
| 98 | +lola=120/27/260/47.5r |
| 99 | + |
| 100 | +gmt set FORMAT_FLOAT_OUT %.0f |
| 101 | +col=../GMTstuff/colors/Merc_surface.cpt |
| 102 | +gmt makecpt -C${col} -T-${maxcol}/${maxcol} |
| 103 | +lowlat=30 |
| 104 | + |
| 105 | +#### Selected model |
| 106 | +#name=Lmax130-${subs}pct-J515 |
| 107 | + |
| 108 | +modname=${modprefix}J${optJ}_cmp1 |
| 109 | +lab=nesW |
| 110 | + |
| 111 | +gmt grdimage -Y-6.5c ../GMTdata/solutions/${modname}.nc -R${lola} -JA170/59/10c -Bxa90g30 -Bya15g15 -E600 -B${lab} |
| 112 | +#gmt plot ../GMTstuff/SmoothPlains/SP_edit.dat -A -W0.6p,170 #-A |
| 113 | +#gmt plot ../GMTstuff/SmoothPlains/SP.dat -A -W0.6p,170 |
| 114 | +gmt plot ../GMTdata/Caloris.txt -W2p,80,-- |
| 115 | +gmt plot ../GMTdata/Newregion.txt -Am -W2p,black #or -Ap |
| 116 | +gmt plot ../GMTdata/NewregionSmallerlo10la3.txt -Am -W2p,black,- |
| 117 | +# Label for letter |
| 118 | +gmt text -JX${bmsize} --FONT=20 -R0/1/0/1 -Gwhite -C0.2c <<EOF |
| 119 | +0.05 0.88 b |
| 120 | +EOF |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | +#### Other models |
| 125 | +#name=Lmax130-${subs}pct-J799 |
| 126 | +modname=${modprefix}J${otherJ}_cmp1 |
| 127 | +#modname=Lmax130-subs${subs}-findBestJ-ToSf4p5-fullCollect-ind11-17-22J799_cmp1 |
| 128 | +lab=nesW |
| 129 | + |
| 130 | + |
| 131 | +gmt grdimage -Y-5.3c ../GMTdata/solutions/${modname}.nc -R${lola} -JA170/59/10c -Bxa30g30 -Bya15g15 -E600 -B${lab} |
| 132 | +#gmt plot ../GMTstuff/SmoothPlains/SP_edit.dat -A -W0.6p,170 #-A |
| 133 | +#gmt plot ../GMTstuff/SmoothPlains/SP.dat -A -W0.6p,170 |
| 134 | +gmt plot ../GMTdata/Caloris.txt -W2p,80,-- |
| 135 | +gmt plot ../GMTdata/Newregion.txt -Am -W2p,black #or -Ap |
| 136 | +gmt plot ../GMTdata/NewregionSmallerlo10la3.txt -Am -W2p,black,- |
| 137 | +# Label for letter |
| 138 | +gmt text -JX${bmsize} --FONT=20 -R0/1/0/1 -Gwhite -C0.2c <<EOF |
| 139 | +0.05 0.88 c |
| 140 | +EOF |
| 141 | + |
| 142 | + |
| 143 | +#### Diff |
| 144 | +#name=Lmax130-${subs}pct-J799-515 |
| 145 | +#modname=Lmax130-subs${subs}-findBestJ-ToSf4p5-fullCollect-ind11-17-22J515-799_cmp1 |
| 146 | +modname=${modprefix}J${optJ}-${otherJ}_cmp1 |
| 147 | +lab=neSW |
| 148 | + |
| 149 | +gmt grdimage -Y-5.3c ../GMTdata/solutions/${modname}.nc -R${lola} -JA170/59/10c -Bxa30g30 -Bya15g15 -E600 -B${lab} |
| 150 | +#gmt plot ../GMTstuff/SmoothPlains/SP_edit.dat -A -W0.6p,170 #-A |
| 151 | +#gmt plot ../GMTstuff/SmoothPlains/SP.dat -A -W0.6p,170 |
| 152 | +gmt plot ../GMTdata/Caloris.txt -W2p,80,-- |
| 153 | +gmt plot ../GMTdata/Newregion.txt -Am -W2p,black #or -Ap |
| 154 | +gmt plot ../GMTdata/NewregionSmallerlo10la3.txt -Am -W2p,black,- |
| 155 | +# Label for letter |
| 156 | +gmt text -JX${bmsize} --FONT=20 -R0/1/0/1 -Gwhite -C0.2c <<EOF |
| 157 | +0.05 0.88 d |
| 158 | +EOF |
| 159 | + |
| 160 | +#### Colorbar |
| 161 | + |
| 162 | +col=../GMTstuff/colors/Merc_surface.cpt |
| 163 | +gmt makecpt -C${col} -T-${maxcol}/${maxcol} |
| 164 | + |
| 165 | +gmt colorbar -C -D+w10c/0.4c+e+h+o-0c/-1.3c -Np -L -S+x"<math>\mathbf{B}_r</math> [nT]" --FONT=19 |
| 166 | + |
| 167 | + |
| 168 | +gmt end show |
0 commit comments