[gradsusr] Cross section of temperature
Jeff Duda
jeffduda319 at gmail.com
Sat Aug 2 16:35:54 EDT 2014
you have 'set lev 100 1000'
change it to
'set lev 1000 100'
Jeff Duda
On Sat, Aug 2, 2014 at 3:30 PM, Geraldo Deniro <geraldodeniro at hotmail.com>
wrote:
> Hi,
>
> 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:
>
> ''Data request error: Invalid grid coordinates
> varying dimension 2 decreases: 27 to 1
> error occured getting variables 'tmpprs'
> error occured at column 1''
>
> The script:
>
> 'reinit'
> 'open pgrbanl.cdas.ctl'
>
> 'set lat -26'
> 'set lon 270 340'
> 'set lev 100 1000'
>
> temp=1
> while(temp<=12)
> 'set t ' temp
> 'q time'
>
> data=subwrd(result,3)
> day=substr(data,4,2)
> month=substr(data,6,3)
> year=substr(data,9,4)
> time=substr(data,1,3)
>
> 'set display color white'
> 'set mpdset brmap_hires'
> 'set grads off'
> 'set grid off'
> 'set zlog on'
> 'set gxout shaded'
> 'run rgbset.gs'
> 'set clevs 5 10 15 20 25 30 35 40'
> 'set ccols 45 43 42 41 21 23 25 27 28'
> 'd tmpprs-273'
> 'set gxout contour'
> 'd tmpprs-273'
> 'run cbar'
> 'draw title CFSR: CROSS SECTION TEMPERATURE\ '%day' '%month' '%year'
> '%time''
> 'draw ylab PRESSURE LEVELS (hPa)'
> 'draw xlab LATITUDE'
> 'set display color white'
> 'printim TEMP_'%month'_'%day'_'%year'_'%time'.jpg x1600 y1400'
> 'c'
>
> temp=temp+1
> endwhile
> 'quit'
>
> If somebody could help me, i'd be so thankful
>
>
> Geraldo Deniro
> contact: geraldodeniro at ufrj.br
> Graduate Student of Meteorology
> Department of Meteorology
> Institute of Geosciences
> Federal University of Rio de Janeiro
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140802/683efc4b/attachment.html
More information about the gradsusr
mailing list