[gradsusr] Hi - Problem with a script

avi kojokro kojokroavi at gmail.com
Mon Dec 21 09:11:46 EST 2015


Hello to all users of grads.

I created a script that creates an incremental of 6 Maps of rain, for some
reason in the first map the color bar does not work, and I have no idea
why.........
Can anyone help me find the problem?
I attach the script, and a screenshot of the window commands of grads, and
also the map that created.

Thank you

Regards

Avi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20151221/118940bb/attachment-0001.html 
-------------- next part --------------





'set display color white'
'set vpage 0.5 3.55 7.43 10.2'
'set lat 29 34'
'set lon 32 37'
'set gxout shaded'
'set grads off'
'set lev 1000'
'set rgb 81 95 95 95'
'set map 81'
'set rgb 16 217 255 217'
'set rgb 17 195 255 204'
'set rgb 18 177 240 189'
'set rgb 19 144 220 190'
'set rgb 20 121 187 190'
'set rgb 21 105 162 180'
'set rgb 22 95 130 190'
'set rgb 23 38 92 200'
'set rgb 24 70 10 200'
'set rgb 25 139 41 176'
'set rgb 26 175 55 176'
'set rgb 27 175 40 160'
'set rgb 28 180 25 135'
'set rgb 29 202 12 67'
'set rgb 30 228 6 33'
'set rgb 31 255 0 0'
'set rgb 32 255 67 0'
'set rgb 33 255 110 0'
'set rgb 34 255 146 0'
'set rgb 35 255 182 0'
'set rgb 36 255 218 0'
'set rgb 37 255 255 0'
'set clevs 0.2 0.5 1 3 5 7 10 15 20 30 45 60 80 100 125 150 175 200 225 250 275 300'
'set ccols 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37'
'set mpdset hires'
'set xlopts 1 4 0.09'
'set ylopts 1 4 0.09'
'set xlint 0.5'
'set ylint 0.5'
'd sum(apcpsfc,t=13,t=19)'
'cb5'
'set t 13 19'
'q time'
atime = subwrd(result,3)
ahour = substr(atime,1,3)
aday = substr(atime,4,9)
btime = subwrd(result,5)
bhour = substr(btime,1,3)
bday = substr(btime,4,9)


'set string 1'
'set strsiz 0.15 0.15'
'draw title  'aday':'ahour'-'bday':'bhour''
'set vpage off'




'set vpage 4.55 8.05 7.43 10.2'
'set lat 29 34'
'set lon 32 37'
'set gxout shaded'
'set grads off'
'set lev 1000'
'set t 1'
'set rgb 81 95 95 95'
'set map 81'
'set rgb 16 217 255 217'
'set rgb 17 195 255 204'
'set rgb 18 177 240 189'
'set rgb 19 144 220 190'
'set rgb 20 121 187 190'
'set rgb 21 105 162 180'
'set rgb 22 95 130 190'
'set rgb 23 38 92 200'
'set rgb 24 70 10 200'
'set rgb 25 139 41 176'
'set rgb 26 175 55 176'
'set rgb 27 175 40 160'
'set rgb 28 180 25 135'
'set rgb 29 202 12 67'
'set rgb 30 228 6 33'
'set rgb 31 255 0 0'
'set rgb 32 255 67 0'
'set rgb 33 255 110 0'
'set rgb 34 255 146 0'
'set rgb 35 255 182 0'
'set rgb 36 255 218 0'
'set rgb 37 255 255 0'
'set clevs 0.2 0.5 1 3 5 7 10 15 20 30 45 60 80 100 125 150 175 200 225 250 275 300'
'set ccols 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37'
'set mpdset hires'
'set xlopts 1 4 0.09'
'set ylopts 1 4 0.09'
'set xlint 0.5'
'set ylint 0.5'
'd sum(apcpsfc,t=19,t=25)'
'cb5'
'set t 19 25'
'q time'
atime = subwrd(result,3)
ahour = substr(atime,1,3)
aday = substr(atime,4,9)
btime = subwrd(result,5)
bhour = substr(btime,1,3)
bday = substr(btime,4,9)


'set string 1'
'set strsiz 0.15 0.15'
'draw title  'aday':'ahour'-'bday':'bhour''
'set vpage off'




'set vpage 0.5 3.55 3.86 6.63'
'set lat 29 34'
'set lon 32 37'
'set gxout shaded'
'set grads off'
'set lev 1000'
'set t 1'
'set rgb 81 95 95 95'
'set map 81'
'set rgb 16 217 255 217'
'set rgb 17 195 255 204'
'set rgb 18 177 240 189'
'set rgb 19 144 220 190'
'set rgb 20 121 187 190'
'set rgb 21 105 162 180'
'set rgb 22 95 130 190'
'set rgb 23 38 92 200'
'set rgb 24 70 10 200'
'set rgb 25 139 41 176'
'set rgb 26 175 55 176'
'set rgb 27 175 40 160'
'set rgb 28 180 25 135'
'set rgb 29 202 12 67'
'set rgb 30 228 6 33'
'set rgb 31 255 0 0'
'set rgb 32 255 67 0'
'set rgb 33 255 110 0'
'set rgb 34 255 146 0'
'set rgb 35 255 182 0'
'set rgb 36 255 218 0'
'set rgb 37 255 255 0'
'set clevs 0.2 0.5 1 3 5 7 10 15 20 30 45 60 80 100 125 150 175 200 225 250 275 300'
'set ccols 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37'
'set mpdset hires'
'set xlopts 1 4 0.09'
'set ylopts 1 4 0.09'
'set xlint 0.5'
'set ylint 0.5'
'd sum(apcpsfc,t=25,t=31)'
'cb5'
'set t 25 31'
'q time'
atime = subwrd(result,3)
ahour = substr(atime,1,3)
aday = substr(atime,4,9)
btime = subwrd(result,5)
bhour = substr(btime,1,3)
bday = substr(btime,4,9)


'set string 1'
'set strsiz 0.15 0.15'
'draw title  'aday':'ahour'-'bday':'bhour''
'set vpage off'



'set vpage 4.55 8.05 3.86 6.63'
'set lat 29 34'
'set lon 32 37'
'set gxout shaded'
'set grads off'
'set lev 1000'
'set t 1'
'set rgb 81 95 95 95'
'set map 81'
'set rgb 16 217 255 217'
'set rgb 17 195 255 204'
'set rgb 18 177 240 189'
'set rgb 19 144 220 190'
'set rgb 20 121 187 190'
'set rgb 21 105 162 180'
'set rgb 22 95 130 190'
'set rgb 23 38 92 200'
'set rgb 24 70 10 200'
'set rgb 25 139 41 176'
'set rgb 26 175 55 176'
'set rgb 27 175 40 160'
'set rgb 28 180 25 135'
'set rgb 29 202 12 67'
'set rgb 30 228 6 33'
'set rgb 31 255 0 0'
'set rgb 32 255 67 0'
'set rgb 33 255 110 0'
'set rgb 34 255 146 0'
'set rgb 35 255 182 0'
'set rgb 36 255 218 0'
'set rgb 37 255 255 0'
'set clevs 0.2 0.5 1 3 5 7 10 15 20 30 45 60 80 100 125 150 175 200 225 250 275 300'
'set ccols 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37'
'set mpdset hires'
'set xlopts 1 4 0.09'
'set ylopts 1 4 0.09'
'set xlint 0.5'
'set ylint 0.5'
'd sum(apcpsfc,t=31,t=37)'
'cb5'
'set t 31 37'
'q time'
atime = subwrd(result,3)
ahour = substr(atime,1,3)
aday = substr(atime,4,9)
btime = subwrd(result,5)
bhour = substr(btime,1,3)
bday = substr(btime,4,9)


'set string 1'
'set strsiz 0.15 0.15'
'draw title  'aday':'ahour'-'bday':'bhour''
'set vpage off'



'set vpage 0.5 3.55 0.29 3.06'
'set lat 29 34'
'set lon 32 37'
'set gxout shaded'
'set grads off'
'set lev 1000'
'set t 1'
'set rgb 81 95 95 95'
'set map 81'
'set rgb 16 217 255 217'
'set rgb 17 195 255 204'
'set rgb 18 177 240 189'
'set rgb 19 144 220 190'
'set rgb 20 121 187 190'
'set rgb 21 105 162 180'
'set rgb 22 95 130 190'
'set rgb 23 38 92 200'
'set rgb 24 70 10 200'
'set rgb 25 139 41 176'
'set rgb 26 175 55 176'
'set rgb 27 175 40 160'
'set rgb 28 180 25 135'
'set rgb 29 202 12 67'
'set rgb 30 228 6 33'
'set rgb 31 255 0 0'
'set rgb 32 255 67 0'
'set rgb 33 255 110 0'
'set rgb 34 255 146 0'
'set rgb 35 255 182 0'
'set rgb 36 255 218 0'
'set rgb 37 255 255 0'
'set clevs 0.2 0.5 1 3 5 7 10 15 20 30 45 60 80 100 125 150 175 200 225 250 275 300'
'set ccols 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37'
'set mpdset hires'
'set xlopts 1 4 0.09'
'set ylopts 1 4 0.09'
'set xlint 0.5'
'set ylint 0.5'
'd sum(apcpsfc,t=37,t=43)'
'cb5'
'set t 37 43'
'q time'
atime = subwrd(result,3)
ahour = substr(atime,1,3)
aday = substr(atime,4,9)
btime = subwrd(result,5)
bhour = substr(btime,1,3)
bday = substr(btime,4,9)


'set string 1'
'set strsiz 0.15 0.15'
'draw title  'aday':'ahour'-'bday':'bhour''
'set vpage off'



'set vpage 4.55 8.05 0.29 3.06'
'set lat 29 34'
'set lon 32 37'
'set gxout shaded'
'set grads off'
'set lev 1000'
'set t 1'
'set rgb 81 95 95 95'
'set map 81'
'set rgb 16 217 255 217'
'set rgb 17 195 255 204'
'set rgb 18 177 240 189'
'set rgb 19 144 220 190'
'set rgb 20 121 187 190'
'set rgb 21 105 162 180'
'set rgb 22 95 130 190'
'set rgb 23 38 92 200'
'set rgb 24 70 10 200'
'set rgb 25 139 41 176'
'set rgb 26 175 55 176'
'set rgb 27 175 40 160'
'set rgb 28 180 25 135'
'set rgb 29 202 12 67'
'set rgb 30 228 6 33'
'set rgb 31 255 0 0'
'set rgb 32 255 67 0'
'set rgb 33 255 110 0'
'set rgb 34 255 146 0'
'set rgb 35 255 182 0'
'set rgb 36 255 218 0'
'set rgb 37 255 255 0'
'set clevs 0.2 0.5 1 3 5 7 10 15 20 30 45 60 80 100 125 150 175 200 225 250 275 300'
'set ccols 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37'
'set mpdset hires'
'set xlopts 1 4 0.09'
'set ylopts 1 4 0.09'
'set xlint 0.5'
'set ylint 0.5'
'd sum(apcpsfc,t=43,t=49)'
'cb5'
'set t 43 49'
'q time'
atime = subwrd(result,3)
ahour = substr(atime,1,3)
aday = substr(atime,4,9)
btime = subwrd(result,5)
bhour = substr(btime,1,3)
bday = substr(btime,4,9)


'set string 1'
'set strsiz 0.15 0.15'
'draw title  'aday':'ahour'-'bday':'bhour''
'set vpage off'




'set string 1'
'set strsiz 0.15 0.15'
'draw string 1 10.45  rainsum WRF 2.8KM'


'set string 2'
'set strsiz 0.07 0.07'
'draw string 5.5 10.45 made by kojokro avi'


'printim rainsum.png x2000 y1500'
'end'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 11111.png
Type: image/png
Size: 24785 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20151221/118940bb/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rainsum.png
Type: image/png
Size: 44781 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20151221/118940bb/attachment-0003.png 


More information about the gradsusr mailing list