<div dir="ltr"><div><div>you have 'set lev 100 1000'<br><br></div>change it to<br><br></div>'set lev 1000 100'<br><br>Jeff Duda<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 2, 2014 at 3:30 PM, Geraldo Deniro <span dir="ltr"><<a href="mailto:geraldodeniro@hotmail.com" target="_blank">geraldodeniro@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><div>Hi,</div><div><br></div><div><div>I wanted to create a script to plot a cross section of temperature of 100hPa until 1000hPa of the CFSR (Climate Forecast System Reanalysis) 4x daily but I'm not getting, when i created the script to plot the cross section of the zonal wind, the script worked perfectly but in this case it did not work. I really don't know how to do it, the script that was used to try to create is below but GrADS says:</div>
<div><br></div><div>''Data request error: Invalid grid coordinates</div><div>varying dimension 2 decreases: 27 to 1</div><div>error occured getting variables 'tmpprs'</div><div>error occured at column 1''</div>
<div><br></div><div>The script:</div></div><div><br></div><div><div>'reinit'</div><div>'open pgrbanl.cdas.ctl'</div><div><br></div><div>'set lat -26'</div><div><span style="font-size:12pt">'set lon 270 340'</span></div>
<div>'set lev 100 1000'</div><div><br></div><div>temp=1</div><div><span style="font-size:12pt">while(temp<=12)</span></div><div><span style="font-size:12pt">'set t ' temp</span></div><div><span style="font-size:12pt">'q time'</span></div>
<div><br></div><div>data=subwrd(result,3)</div><div><span style="font-size:12pt">day=substr(data,4,2)</span></div><div><span style="font-size:12pt">month=substr(data,6,3)</span></div><div><span style="font-size:12pt">year=substr(data,9,4)</span></div>
<div><span style="font-size:12pt">time=substr(data,1,3)</span></div><div><br></div><div>'set display color white'</div><div>'set mpdset brmap_hires'</div><div>'set grads off'</div><div>'set grid off'</div>
<div>'set zlog on'</div><div>'set gxout shaded'</div><div>'run <a href="http://rgbset.gs" target="_blank">rgbset.gs</a>'</div><div>'set clevs 5 10 15 20 25 30 35 40'</div><div>'set ccols 45 43 42 41 21 23 25 27 28'</div>
<div>'d tmpprs-273'</div><div>'set gxout contour'</div><div>'d tmpprs-273'</div><div>'run cbar'</div><div>'draw title CFSR: CROSS SECTION TEMPERATURE\ '%day' '%month' '%year' '%time''</div>
<div>'draw ylab PRESSURE LEVELS (hPa)'</div><div>'draw xlab LATITUDE'</div><div>'set display color white'</div><div>'printim TEMP_'%month'_'%day'_'%year'_'%time'.jpg x1600 y1400'</div>
<div><span style="font-size:12pt">'c'</span></div><div><br></div><div>temp=temp+1</div><div><span style="font-size:12pt">endwhile</span></div><div>'quit'</div></div><div><br></div><div>If somebody could help me, i'd be so thankful</div>
<span class="HOEnZb"><font color="#888888"><br><br><div>Geraldo Deniro </div><div>contact: <a href="mailto:geraldodeniro@ufrj.br" target="_blank">geraldodeniro@ufrj.br</a> </div><div>Graduate Student of Meteorology </div>
<div>Department of Meteorology </div><div>Institute of Geosciences </div><div>Federal University of Rio de Janeiro</div>                                            </font></span></div></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>