Res: Writing a positive signal ( + ) for temperatures

Fernando Reis nandoreisbr at YAHOO.COM.BR
Fri Aug 28 17:33:53 EDT 2009


Hi Stephen,
Thanks a lot for your
answering.  I liked your exemplo a lot and it's probable that I'll use
it in some place. But I wasn't talking about the contour but about the
number (set gxout grid).
I've attached two images for you. 

model.gif is the image that I want to produce.

reis.png is the image I can do now. The images have different areas but what I want to know is how to do (+ for positives, no sign for negatives, )

I hope I could be clear.

Thanks again.



________________________________
De: Stephen R McMillan <smcmillan at PLANALYTICS.COM>
Para: GRADSUSR at LIST.CINECA.IT
Enviadas: Sexta-feira, 28 de Agosto de 2009 17:04:41
Assunto: Re: Writing a positive signal ( + ) for temperatures

Fernando,

You didn't say, but I assume you're
referring to a contour chart with contour labels.  If so, see if following
sample script does what you had in mind for temperatures.  I've attached
two PNG output images..."airt1" is GrADS default (- for negatives,
no sign for positives), and "airt2" is derived from sample script.
 The "colors" function provides an alternate set of contour
colors.

Let me know if it needs further explanation...good
luck.
Stephen McMillan

'define airt=air-273.16'
#Do negatives:
colors(1)
'd -airt'
#Do positives:
colors(2)
'set clab %+.f'
'd airt'
'draw title Air Temp (C)   Neg = No
sign    Pos = + sign'

function colors(opt)
if(opt=1)
#set colors for absolute of negatives:
 'set rgb 18 130 0 190'
 'set rgb 20 0 0 150'
 'set rgb 22 0 0 255'
 'set rgb 24 0 100 255'
 'set rgb 26 0 170 255'
 'set rgb 28 0 230 255'
 'set rgb 30 130 255 255'
 'set rgb 31 245 245 245'
  'set clevs 0 2 4 6 8 10 12'
  'set ccols 31 30 28 26 24 22 20 18'
else
#set colors for positives:
 'set rgb 32 255 255 130'
 'set rgb 34 255 240 0'
 'set rgb 36 255 195 0'
 'set rgb 38 255 130 0'
 'set rgb 40 255 50 0'
 'set rgb 42 220 0 0'
 'set rgb 44 150 0 0'
 'set clevs 2 4 6 8 10 12'
 'set ccols 32 34 36 38 40 42
44'
endif
return






Fernando Reis <nandoreisbr at YAHOO.COM.BR>
Sent by: GRADSUSR at LIST.CINECA.IT
08/28/2009 10:04 AM
Please respond to
GRADSUSR at LIST.CINECA.IT 
 To GRADSUSR at LIST.CINECA.IT 
cc 
 
Subject Writing a positive signal ( + ) for
temperatures 

 
 
 


Hello folks,

I'd like to produce a chart with temperature and wind. 
When Grads plots Negative temperatures it came with negative signal eg
( -78) and when the temperature is positive it came without signal.

I'd like to do it in a different way bye plotting positive
values with a signal ( + 10 ) and negatives without it. ( 78 ).

Is that possible?

Thanks
 
________________________________

Veja quais são os assuntos do momento no Yahoo! + Buscados: Top
10- Celebridades- Música- Esportes


***************************************************
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.  If you are not the intended recipient, you may not review, copy or distribute this message.  If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
***************************************************



      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090828/8882935b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: model.gif
Type: image/gif
Size: 100044 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090828/8882935b/attachment.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reis.png
Type: image/png
Size: 33012 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090828/8882935b/attachment.png 


More information about the gradsusr mailing list