<div dir="ltr">Can you give an example of how it's not working the way you'd like it?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 24, 2013 at 8:06 AM, Nimrod Micael <span dir="ltr"><<a href="mailto:nmicael@aggies.ncat.edu" target="_blank">nmicael@aggies.ncat.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">I am trying to display on where it says Forecast Valid: </span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">
Date: Month: Yr Time: with the Z at the end of it. But there's issues with it displaying the minutes. </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Can you find out what the problem is? Also I would like the output file where the printim image to be in the format of:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Date_Month_Yr_Time: with the Z at the end of it.<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">My Code: </div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">''reinit'<div>'clear'</div><div>'open 20110416_d03.ctl'</div><div>'set display color white'</div><div>'set map 1 1 5'</div>
<div>'set annot 1 6'</div><div>'set xlopts 1 6 .17'</div><div>'set ylopts 1 6 .16'</div><div>'set mpdset hires'</div><div>*'set lon -105 -60'</div><div>*'set lat 24 54'</div>
<div>'set clab on'</div><div>'set grid off'</div><div>'set timelab off'</div><div>'set gxout grfill'</div><div><br></div><div><br></div><div><br></div><div><br></div><div>***************************************************</div>
<div>* Begin loop for levels and time</div><div>**************************************************</div><div><br></div><div><br></div><div>tt=170</div><div>while (tt<=190)</div><div>'clear'</div><div>
'set grads off'</div><div>'set t 'tt</div><div>'q time'</div><div>time1=subwrd(result,3)</div><div>say time1</div><div><br></div><div>hour=substr(time1,1,2)</div><div>say hour</div><div><br></div>
<div>
day=substr(time1,5,2)</div><div>say day</div><div><br></div><div>mon=substr(time1,6,3)</div><div><br></div><div>if (JAN = mon) ; mon = 01 ; endif</div><div>if (FEB = mon) ; mon = 02 ; endif</div><div>if (MAR = mon) ; mon = 03 ; endif</div>
<div>if (APR = mon) ; mon = 04 ; endif</div><div>if (MAY = mon) ; mon = 05 ; endif</div><div>if (JUN = mon) ; mon = 06 ; endif</div><div>if (JUL = mon) ; mon = 07 ; endif</div><div>if (AUG = mon) ; mon = 08 ; endif</div>
<div>
if (SEP = mon) ; mon = 09 ; endif</div><div>if (OCT = mon) ; mon = 10 ; endif</div><div>if (NOV = mon) ; mon = 11 ; endif</div><div>if (DEC = mon) ; mon = 12 ; endif</div><div><br></div><div>say mon</div><div><br></div><div>
year=substr(time1,9,5)</div><div>say year</div><div><br></div><div>date = year''mon''day'_'hour''</div><div>say date</div><div><br></div><div>time1=subwrd(result,3)</div><div>say time1</div>
<div>timeA=substr(time1,3,11)</div><div>timeB=substr(time1,7,16)</div><div>timeC=substr(time1,1,6)</div><div>'q dims'</div><div>lev1=subwrd(result,37)</div><div><br></div><div>********************************************************</div>
<div>*</div><div>* Color Shades </div><div>*******************************************************</div><div><br></div><div>*Black To white</div><div>'set rgb 59 0 0 0'</div><div>'set rgb 60 15 15 15'</div>
<div>'set rgb 61 30 30 30'</div><div>'set rgb 62 45 45 45'</div><div>'set rgb 63 60 60 60'</div><div>'set rgb 64 75 75 75'</div><div>'set rgb 65 90 90 90'</div><div>'set rgb 66 105 105 105'</div>
<div>'set rgb 67 120 120 120'</div><div>'set rgb 68 135 135 135'</div><div>'set rgb 69 150 150 150'</div><div>'set rgb 70 165 165 165'</div><div>'set rgb 71 180 180 180'</div><div>
'set rgb 72 195 195 195'</div>
<div>'set rgb 73 210 210 210'</div><div>'set rgb 74 225 225 225'</div><div>'set rgb 75 245 245 245'</div><div>'set rgb 76 255 255 255'</div><div><br></div><div><br></div><div>*light yellow to dark red</div>
<div>'set rgb 21 255 250 170'</div><div>'set rgb 22 255 232 120'</div><div>'set rgb 23 255 192 60'</div><div>'set rgb 24 255 160 0'</div><div>'set rgb 25 255 96 0'</div><div>
'set rgb 26 255 50 0'</div>
<div>'set rgb 27 225 20 0'</div><div>'set rgb 28 192 0 0'</div><div>'set rgb 29 165 0 0'</div><div><br></div><div>*light blue to dark blue</div><div>'set rgb 41 225 255 255'</div>
<div>'set rgb 42 180 240 250'</div><div>'set rgb 43 150 210 250'</div><div>'set rgb 44 120 185 250'</div><div>'set rgb 45 80 165 245'</div><div>'set rgb 46 60 150 245'</div><div>
'set rgb 47 40 130 240'</div>
<div>'set rgb 48 30 110 235'</div><div>'set rgb 49 20 100 210'</div><div><br></div><div>*light green to dark green</div><div>'set rgb 31 230 255 225'</div><div>'set rgb 32 200 255 190'</div>
<div>'set rgb 33 180 250 170'</div><div>'set rgb 34 150 245 140'</div><div>'set rgb 35 120 245 115'</div><div>'set rgb 36 80 240 80'</div><div>'set rgb 37 55 210 60'</div><div>
'set rgb 38 30 180 30'</div>
<div>'set rgb 39 15 160 15'</div><div>*set rgb 39 5 150 5</div><div><br></div><div>*light pink to dark rose </div><div>'set rgb 101 255 230 230'</div><div>'set rgb 102 255 200 200'</div><div>
'set rgb 103 248 160 160'</div><div>'set rgb 104 230 140 140'</div><div>'set rgb 105 230 112 112'</div><div>'set rgb 106 230 80 80' </div><div>'set rgb 107 200 60 60' </div>
<div>'set rgb 108 180 40 40'</div><div>'set rgb 109 164 32 32'</div><div><br></div><div>'set xlint 3'</div><div>********************************</div><div>* Winds Speed Plot (shaded)</div>
<div>
********************************</div><div>'set gxout shaded'</div><div>'set clevs 0 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80'</div><div>'set ccols 76 41 43 44 35 36 37 38 21 22 23 24 25 26 27 28 106 104 102 42 44 46'</div>
<div>'d max_dbz'</div><div><br></div><div>**************************************</div><div>*</div><div>* Settings for contour plot</div><div>***************************************</div><div>'set gxout contour'</div>
<div>'set clab masked'</div><div>'set cthick 12'</div><div>'set clevs 32'</div><div>'set ccolor 1'</div><div><br></div><div><br></div><div><br></div><div>'set gxout vector'</div><div>
'set cthick 5'</div><div>'set ccolor 1'</div><div>'set arrscl 0.15'</div><div>'d skip(u10m,4,4);v10m'</div><div><br></div><div><br></div><div><br></div><div><br></div><div>*********************************************</div>
<div>* Draw Title, Run Cbar, Draw Map</div><div>**********************************************</div><div>'draw map'</div><div>'run cbarn'</div><div>'draw shp c_02ap13'</div><div><br></div><div>
'set t 1'</div><div>'q time'</div><div>time2=subwrd(result,3)</div><div><br></div><div>'set string 1 tl 5'</div><div>'set strsiz 0.17'</div><div>'draw string 1.9 8.2 `14km, GFS Initialization: 'time2''</div>
<div>'draw string 1.9 8 `1Reflectivity and Surface Winds'</div><div><br></div><div><br></div><div>'set string 1 tr 5'</div><div>'set strsiz 0.12'</div><div>'draw string 10.9 0.2 `1WRFV3.3.1'</div>
<div><br></div><div><br></div><div>'set string 1 tl 6'</div><div>'set strsiz 0.17'</div><div>'draw string 1.9 8.4 `1Forecast Valid:'timeB' 'timeC''</div><div><br></div><div><br></div>
<div>***********************************************</div><div>* Print picture file</div><div>***********************************************</div><div>'printim 'timeB '_reflectivity_sfc_wind.png x1000 y800'</div>
<div><br></div><div>"</div><div><br></div><div>Thanks! <div style="margin:2px 0px 0px"><div><img></div></div><span class="HOEnZb"><font color="#888888">
</font></span></div></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br>Nimrod Micael
</font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</div>