<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17117" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=058211115-08052013><FONT face=Arial
color=#0000ff size=2>the maskout function will use the grid-spacing of however
your grid is defined (xdef,ydef). So you may need to interpolate to a
higher resolution grid with a bi-linear interpolation to get rid of the
blockiness.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=058211115-08052013><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=058211115-08052013><FONT face=Arial
color=#0000ff size=2>ron</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=058211115-08052013><FONT
face=Arial><STRONG></STRONG></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> gradsusr-bounces@gradsusr.org
[mailto:gradsusr-bounces@gradsusr.org] <B>On Behalf Of </B>manu
verma<BR><B>Sent:</B> May 8, 2013 2:33 AM<BR><B>To:</B> GrADS Users
Forum<BR><B>Subject:</B> Re: [gradsusr] TEMPERATURE AND RH
CONTOURS<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>no i have already used that but it is not smoothening
it.<BR><BR>Manu<BR></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Wed, May 8, 2013 at 12:57 PM, Mohsen Soltani <SPAN
dir=ltr><<A href="mailto:soltani.clima@gmail.com"
target=_blank>soltani.clima@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">set
this function to smooth the contours: 'set csmooth on'<BR>
<DIV class=HOEnZb>
<DIV class=h5><BR><BR><BR>On 5/7/13, manu verma <<A
href="mailto:verma.manuu@gmail.com">verma.manuu@gmail.com</A>>
wrote:<BR>> but that shaded contours are not smooth i am sending you the
image with<BR>> this mail<BR>><BR>><BR>> On Tue, May 7, 2013 at
9:15 PM, Goodson,Ron [Edm]<BR>> <<A
href="mailto:Ron.Goodson@ec.gc.ca">Ron.Goodson@ec.gc.ca</A>>wrote:<BR>><BR>>><BR>>>
sure you can have two shaded fields in one chart. Obviously, unless
one<BR>>> is semi-transparent .. the 2nd will cover up the first.
That may be<BR>>> fine if you only want to shaded some subset of
the 2nd field. For<BR>>> example, I have one chart with "clouds"
as greyshades, and precipitation<BR>>> > 0.2mm overlaid (also
shaded). So if you only want RH > 50% shaded ..<BR>>> then just
mask out values < 50% and plot this second.<BR>>><BR>>> set
your colour table<BR>>> draw your first field<BR>>> define your
mask .. example ... define mymask = (rh - 50%)<BR>>> set your new
colour table<BR>>> draw your 2nd field .. example ... display
maskout(rh, mymask)<BR>>><BR>>> easy
peasy...<BR>>><BR>>> ron<BR>>><BR>>><BR>>>
-----Original Message-----<BR>>> From: <A
href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</A><BR>>>
[mailto:<A
href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</A>]
On Behalf Of Mohsen Soltani<BR>>> Sent: May 7, 2013 1:08 AM<BR>>>
To: GrADS Users Forum<BR>>> Subject: Re: [gradsusr] TEMPERATURE AND RH
CONTOURS<BR>>><BR>>> You can't display two shaded in one chart at
the same time! one should<BR>>> be shaded and the other one have to be
in contour lines, respectively.<BR>>><BR>>> However, 'set
gxout contour' will produce a contour line, and 'set<BR>>> gxout
shaded' will produce a shaded chart.<BR>>><BR>>> Good
luck,<BR>>> Mohsen<BR>>><BR>>> On 5/6/13, manu verma <<A
href="mailto:verma.manuu@gmail.com">verma.manuu@gmail.com</A>>
wrote:<BR>>> > in this we are overlaying contours on shaded i want
both shaded<BR>>> ><BR>>> ><BR>>> > On Mon, May 6,
2013 at 3:36 PM, Mohsen Soltani<BR>>> > <<A
href="mailto:soltani.clima@gmail.com">soltani.clima@gmail.com</A>>wrote:<BR>>>
><BR>>> >> Dear Manu,<BR>>> >><BR>>> >>
The below script might helps you to produce a map of shaded<BR>>>
>> temperature in the background with R. humidity contours
overlay.<BR>>> >><BR>>> >><BR>>> >>
'sdfopen .........temperature data........nc'<BR>>> >> 'set grads
off'<BR>>> >> 'set grid off'<BR>>> >>
'set lon .. ..'<BR>>> >> 'set lat .. ..'<BR>>>
>> 'set t .....'<BR>>> >><BR>>> >> ** please
change the following, if needed****<BR>>> >><BR>>> >>
'set gxout shaded'<BR>>> >> 'set vpage 0.0 11 0.0
8.5'<BR>>> >> 'set parea 1.0 10.20 0.60
8.0'<BR>>> >> 'set csmooth on'<BR>>> >>
'set grid off'<BR>>> >> 'set grads
off'<BR>>> >> 'set xlint 10'<BR>>> >>
'set ylint 5'<BR>>> >> 'set font
1'<BR>>> >> 'set font 1'<BR>>> >> 'set
cthick 6'<BR>>> >><BR>>> >> 'set
rgb 19 255 255 160'<BR>>> >> 'set rgb 20 255
225 120'<BR>>> >> 'set rgb 21 255 192
60'<BR>>> >> 'set rgb 22 255 160
0'<BR>>> >> 'set rgb 23 255 96 0'<BR>>>
>> 'set rgb 24 255 50 0'<BR>>> >>
'set rgb 60 255 35 0'<BR>>> >>
'set rgb 25 225 20 0'<BR>>> >> 'set rgb
26 192 0 0'<BR>>> >> 'set rgb 27 165 0
0'<BR>>> >> 'set rgb 28 130 0 0'<BR>>>
>> 'set rgb 29 102 0 0'<BR>>> >>
'set rgb 30 70 0 0'<BR>>> >><BR>>> >>
'set rgb 40 209 228 253'<BR>>> >> 'set
rgb 42 164 205 236'<BR>>> >> 'set rgb 43 125 184
227'<BR>>> >> 'set rgb 44 40 179 219'<BR>>>
>> 'set rgb 45 55 146 213'<BR>>> >>
'set rgb 46 119 147 255'<BR>>> >> 'set rgb 47
36 88 255'<BR>>> >> 'set rgb 48 0 47
236'<BR>>> >> 'set rgb 49 0 37 175'<BR>>>
>> 'set rgb 50 0 37 147'<BR>>> >>
'set rgb 51 0 23 117'<BR>>> >> 'set rgb 52 0
10 95'<BR>>> >> 'set rgb 53 0 5 75'<BR>>>
>> 'set rgb 54 0 5 55'<BR>>> >>
'set rgb 55 0 5 35'<BR>>> >> 'set rgb 56 0 5
15'<BR>>> >><BR>>> >> 'set clevs -7 -6
-4 -2 0 2 4 6 8 10 12 14 16 18 20'<BR>>> >> 'set
ccols 48 46 45 44 43 40 0 20 21 22 23 24 25 26 27 28 29 30'<BR>>>
>><BR>>> >> 'set clab on'<BR>>> >>
'set xlopts 1 6 0.19'<BR>>> >> 'set
ylopts 1 6 0.19'<BR>>> >> 'set mpdset
mres'<BR>>> >> 'set rgb 95 75 75 75'<BR>>>
>> 'set map 95 1 6'<BR>>> >>
'set ccolor 1 1 6'<BR>>> >> 'display
air-273.14'<BR>>> >> **************************<BR>>>
>> 'run cbarn 1 1 10.3 4.20'<BR>>>
>><BR>>> >> ***Overlay Contour****************<BR>>>
>><BR>>> >><BR>>> >> 'set csmooth
on'<BR>>> >> 'set grid off'<BR>>> >>
'set grads off'<BR>>> >> 'set clevs -7
-6 -4 -2 0 2 4 6 8 10 12 14 16 18 20'<BR>>> >> 'set
clskip 2'<BR>>> >> 'set font 1'<BR>>> >>
'set gxout contour'<BR>>> >> 'set
cstyle 1'<BR>>> >> 'set ccolor 15'<BR>>>
>> 'set cthick 5'<BR>>> >> 'set
clab off'<BR>>> >> 'set xlopts 1 6 0.19'<BR>>>
>> 'set ylopts 1 6 0.19'<BR>>> >>
'set clopts 1 6 0.10'<BR>>> >> 'display
air-273.14'<BR>>> >> 'set mpdset hires'<BR>>>
>><BR>>> >> ****the above will produce temperature with a
shaded backround +<BR>>> >> temperature contours
overlay*****<BR>>> >><BR>>> >> 'sdfopen
.......R.Humidity data.......nc'<BR>>> >> 'set dfile
2'<BR>>> >> 'set t .....'<BR>>> >><BR>>>
>> **other functions may be needed, it's up to you!*****<BR>>>
>><BR>>> >> 'set gxout contour''<BR>>> >> 'd
rhum (or what you've defined!)'<BR>>> >><BR>>> >> 'set
cmin 50' *** this function doesn't make values under 50% of
Rhum<BR>>><BR>>> >> data in the chart*****<BR>>>
>><BR>>> >> Good Luck,<BR>>> >>
Mohsen<BR>>> >><BR>>> >> On 5/6/13, manu verma <<A
href="mailto:verma.manuu@gmail.com">verma.manuu@gmail.com</A>>
wrote:<BR>>> >> > Dear all<BR>>> >>
><BR>>> >> > I want to make temperature and rh contours both
together on one<BR>>> >> > frame and both must be shaded and rh
to ne grater that 50 %.<BR>>> >> ><BR>>> >>
><BR>>> >> > PLease help me<BR>>> >>
><BR>>> >> > Manu<BR>>> >> ><BR>>>
>><BR>>> >><BR>>> >> --<BR>>> >>
--<BR>>> >> some are weather-wise some are otherwise!<BR>>>
>> --<BR>>> >> Best Wishes,<BR>>> >> (Mr.)
Mohsen Soltani<BR>>> >> Climatology Grad Student
(M.Sc.),<BR>>> >> Faculty of Geography, University of Tehran,
Tehran, Iran<BR>>> >> Tel: (+98) 9119772934<BR>>> >>
e-mail: <A
href="mailto:soltani.clima@gmail.com">soltani.clima@gmail.com</A><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>>> ><BR>>><BR>>><BR>>> --<BR>>>
--<BR>>> some are weather-wise some are otherwise!<BR>>>
--<BR>>> Best Wishes,<BR>>> (Mr.) Mohsen Soltani<BR>>>
Climatology Grad Student (M.Sc.),<BR>>> Faculty of Geography, University
of Tehran, Tehran, Iran<BR>>> Tel: (+98) 9119772934<BR>>> e-mail:
<A
href="mailto:soltani.clima@gmail.com">soltani.clima@gmail.com</A><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>>>
_______________________________________________<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>><BR><BR><BR>--<BR>--<BR>some
are weather-wise some are otherwise!<BR>--<BR>Best Wishes,<BR>(Mr.) Mohsen
Soltani<BR>Climatology Grad Student (M.Sc.),<BR>Faculty of Geography,
University of Tehran, Tehran, Iran<BR>Tel: (+98) 9119772934<BR>e-mail: <A
href="mailto:soltani.clima@gmail.com">soltani.clima@gmail.com</A><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></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>