[gradsusr] TEMPERATURE AND RH CONTOURS

manu verma verma.manuu at gmail.com
Wed May 8 02:06:34 EDT 2013


but that shaded contours are not smooth i am sending you the image with
this mail


On Tue, May 7, 2013 at 9:15 PM, Goodson,Ron [Edm] <Ron.Goodson at ec.gc.ca>wrote:

>
> sure you can have two shaded fields in one chart.  Obviously, unless one
> is semi-transparent .. the 2nd will cover up the first.  That may be
> fine if you only want to shaded some subset of the 2nd field.  For
> example, I have one chart with "clouds" as greyshades, and precipitation
> > 0.2mm overlaid (also shaded).  So if you only want RH > 50% shaded ..
> then just mask out values < 50% and plot this second.
>
> set your colour table
> draw your first field
> define your mask .. example ...   define mymask = (rh - 50%)
> set your new colour table
> draw your 2nd field .. example ... display maskout(rh, mymask)
>
> easy peasy...
>
> ron
>
>
> -----Original Message-----
> From: gradsusr-bounces at gradsusr.org
> [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Mohsen Soltani
> Sent: May 7, 2013 1:08 AM
> To: GrADS Users Forum
> Subject: Re: [gradsusr] TEMPERATURE AND RH CONTOURS
>
> You can't display two shaded in one chart at the same time! one should
> be shaded and the other one have to be in contour lines, respectively.
>
> However,  'set gxout contour' will produce a contour line, and  'set
> gxout shaded' will produce a shaded chart.
>
> Good luck,
> Mohsen
>
> On 5/6/13, manu verma <verma.manuu at gmail.com> wrote:
> > in this we are overlaying contours on shaded i want both shaded
> >
> >
> > On Mon, May 6, 2013 at 3:36 PM, Mohsen Soltani
> > <soltani.clima at gmail.com>wrote:
> >
> >> Dear Manu,
> >>
> >> The below script might helps you to produce a map of shaded
> >> temperature in the background with R. humidity contours overlay.
> >>
> >>
> >> 'sdfopen .........temperature data........nc'
> >> 'set grads off'
> >> 'set grid off'
> >>     'set lon .. ..'
> >>     'set lat .. ..'
> >> 'set t .....'
> >>
> >> ** please change the following, if needed****
> >>
> >> 'set gxout shaded'
> >>     'set vpage 0.0 11 0.0 8.5'
> >>     'set parea 1.0 10.20 0.60 8.0'
> >>     'set csmooth on'
> >>     'set grid off'
> >>     'set grads off'
> >>     'set xlint 10'
> >>     'set ylint 5'
> >>     'set font 1'
> >> 'set font 1'
> >>     'set cthick 6'
> >>
> >>      'set rgb 19 255 255 160'
> >>      'set rgb 20 255 225 120'
> >>      'set rgb 21 255 192 60'
> >>      'set rgb 22 255 160 0'
> >>      'set rgb 23 255 96 0'
> >>      'set rgb 24 255 50 0'
> >>      'set rgb 60 255 35 0'
> >>      'set rgb 25 225 20 0'
> >>      'set rgb 26 192 0 0'
> >>      'set rgb 27 165 0 0'
> >>      'set rgb 28 130 0 0'
> >>      'set rgb 29 102 0 0'
> >>      'set rgb 30 70 0 0'
> >>
> >>     'set rgb 40 209 228 253'
> >>     'set rgb 42 164 205 236'
> >>     'set rgb 43 125 184 227'
> >>     'set rgb 44 40 179 219'
> >>     'set rgb 45 55 146 213'
> >>     'set rgb 46 119 147 255'
> >>     'set rgb 47 36 88 255'
> >>     'set rgb 48 0 47 236'
> >>     'set rgb 49 0 37 175'
> >>     'set rgb 50 0 37 147'
> >>     'set rgb 51 0 23 117'
> >>     'set rgb 52 0 10 95'
> >>     'set rgb 53 0 5 75'
> >>     'set rgb 54 0 5 55'
> >>     'set rgb 55 0 5 35'
> >>     'set rgb 56 0 5 15'
> >>
> >>     'set clevs -7 -6 -4 -2 0 2 4 6 8 10 12 14 16 18 20'
> >>     'set ccols 48 46 45 44 43 40 0 20 21 22 23 24 25 26 27 28 29 30'
> >>
> >>     'set clab on'
> >>     'set xlopts 1 6 0.19'
> >>     'set ylopts 1 6 0.19'
> >>     'set mpdset mres'
> >>     'set rgb 95 75 75 75'
> >>     'set map 95 1 6'
> >>     'set ccolor 1 1 6'
> >>     'display air-273.14'
> >> **************************
> >>     'run cbarn  1 1 10.3 4.20'
> >>
> >> ***Overlay Contour****************
> >>
> >>
> >>     'set csmooth on'
> >>     'set grid off'
> >>     'set grads off'
> >>     'set clevs -7 -6 -4 -2 0 2 4 6 8 10 12 14 16 18 20'
> >>     'set clskip 2'
> >>     'set font 1'
> >>     'set gxout contour'
> >>     'set cstyle 1'
> >>     'set ccolor 15'
> >>     'set cthick 5'
> >>     'set clab off'
> >>     'set xlopts 1 6 0.19'
> >>     'set ylopts 1 6 0.19'
> >>     'set clopts 1 6 0.10'
> >>     'display air-273.14'
> >> 'set mpdset hires'
> >>
> >> ****the above will produce temperature with a shaded backround +
> >> temperature contours overlay*****
> >>
> >> 'sdfopen .......R.Humidity data.......nc'
> >> 'set dfile 2'
> >> 'set t .....'
> >>
> >> **other functions may be needed, it's up to you!*****
> >>
> >> 'set gxout contour''
> >> 'd rhum (or what you've defined!)'
> >>
> >> 'set cmin 50' *** this function doesn't make values under 50% of Rhum
>
> >> data in the chart*****
> >>
> >> Good Luck,
> >> Mohsen
> >>
> >> On 5/6/13, manu verma <verma.manuu at gmail.com> wrote:
> >> > Dear all
> >> >
> >> > I want to make temperature and rh contours both together on one
> >> > frame and both must be shaded and rh to ne grater that 50 %.
> >> >
> >> >
> >> > PLease help me
> >> >
> >> > Manu
> >> >
> >>
> >>
> >> --
> >> --
> >> some are weather-wise some are otherwise!
> >> --
> >> Best Wishes,
> >> (Mr.) Mohsen Soltani
> >> Climatology Grad Student (M.Sc.),
> >> Faculty of Geography, University of Tehran, Tehran, Iran
> >> Tel: (+98) 9119772934
> >> e-mail: soltani.clima at gmail.com
> >> _______________________________________________
> >> gradsusr mailing list
> >> gradsusr at gradsusr.org
> >> http://gradsusr.org/mailman/listinfo/gradsusr
> >>
> >
>
>
> --
> --
> some are weather-wise some are otherwise!
> --
> Best Wishes,
> (Mr.) Mohsen Soltani
> Climatology Grad Student (M.Sc.),
> Faculty of Geography, University of Tehran, Tehran, Iran
> Tel: (+98) 9119772934
> e-mail: soltani.clima at gmail.com
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130508/3e777d13/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new.jpg
Type: image/jpeg
Size: 174976 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130508/3e777d13/attachment-0003.jpg 


More information about the gradsusr mailing list