[gradsusr] Color bar

RafaelCB rafael.ciram at gmail.com
Tue Jun 19 08:30:41 EDT 2012


Hi Emma,

Usually when we use the color bar to the command "set gxout shaded", then
"set gxout contour" to put values ​​on the boundary.

usually "ccols" is greater than the "clevs", example:
set clevs 4 6 8 10 12 14 16 18             (8)
set ccols 9 14 11 13 10 12 2 6 4         (9)
to enter the "CBAR" is necessary to put the "RUN"
example: 'run cbarn.gs 0.8 0.0'


general example:
'define temp=tsh-273.16'
'set cint 1'
'set gxout shaded'
'set csmooth on'
'set clevs -5 -3 -1 0  2  4  6  8 10 12 14 16 18 20 22 24 26 28 30 32 34 36'
'set ccols 0 9 14 49 48 47 46 45 44 43 42 41 40 20 21 22 23 24 25 26 27 28
29'
'd temp'
'set ccolor 1'
'set gxout contour'
'set clevs -5 -3 -1 0 2  4  6  8 10 12 14 16 18 20 22 24 26 28 30 32 34 36'
'd temp'
'run /home/meteop/rafael/reanalysis/cbarn_new.gs 0.8 0.0'

Cheers!

-- 
Rafael Censi Borges
Meteorologia - Epagri/Ciram
+55 (48)3239-8064/8066
http://ciram.epagri.sc.gov.br




2012/6/19 EMMA SCANLON <EMMA.SCANLON.2012 at nuim.ie>

> I just have a question regarding a color bar showing contours for wind
> speed in GrADS.
> I've been using the following commands
>  "ga-> set gxout contour
> ga-> set clevs 4 6 8 10 12 14 16 18
> Number of clevs = 8
> ga-> set ccols 9 14 11 13 10 12 2 6
> Number of ccols = 8
> ga-> set cstyle 2
> cstyle = 2
> ga-> set cthick 4
> cthick = 4
> ga-> d wspd
> Contouring at clevs =  4 6 8 10 12 14 16 18
> ga-> d contours
> Syntax Error:  Invalid Operand"
>
> However, it's not displaying the color bar. Am I doing something wrong
> with the "cstyle" or "cthick"
>
> Any advice would be greatly appreciated.
>
> Emma.
>
>
> ---------- Mensagem encaminhada ----------
> From: EMMA SCANLON <EMMA.SCANLON.2012 at nuim.ie>
> To: esrl.psd.data at noaa.gov
> Cc:
> Date: Tue, 19 Jun 2012 11:04:23 +0100
> Subject: Re: Opening netcdf
> I just have a question regarding a color bar showing contours for wind
> speed in GrADS.
> I've been using the following commands
>  "ga-> set gxout contour
> ga-> set clevs 4 6 8 10 12 14 16 18
> Number of clevs = 8
> ga-> set ccols 9 14 11 13 10 12 2 6
> Number of ccols = 8
> ga-> set cstyle 2
> cstyle = 2
> ga-> set cthick 4
> cthick = 4
> ga-> d wspd
> Contouring at clevs =  4 6 8 10 12 14 16 18
> ga-> d contours
> Syntax Error:  Invalid Operand"
>
> However, it's not displaying the color bar. Am I doing something wrong
> with the "cstyle" or "cthick"
>
> Any advice would be greatly appreciated.
>
> Emma.
>
>
>
>
> ----- Original Message -----
> From: esrl.psd.data at noaa.gov
> Date: Wednesday, June 6, 2012 1:03 pm
> Subject: Re: Opening netcdf
> To: EMMA.SCANLON.2012 at nuim.ie
> Cc: esrl.psd.data at noaa.gov
>
> > Emma Scanlon,
> >
> > The GrADS command you need to be using on these files is "sdfopen",
> > not "open".
> >
> > Good luck with your research.
> >
> > On 06/06/2012 05:39 AM, EMMA SCANLON wrote:
> > > Hello,
> > >
> > > I'm currently conducting a thesis showing the changes in SST
> > along the
> > > west coast of Ireland. As part of my research I am using SST data
> > > gathered from the ICOADS. As part of this I am using ubuntu
> > and GrADS to
> > > interpret the data.
> > > I'm having some issues opening the SST .nc files within this.
> > > When in grads I am using the command "ga-> open sst.mean.nc"
> > (bearing in
> > > mind I am in the correct directory)
> > >
> > > The following message is showing : canning description file:
> > sst.mean.nc> Open Error: Unknown keyword in description file
> > > --> The invalid description file record is:
> > > --> CDF
> > > The data file was not opened.
> > > I know this may be a little out of your way to assist me on
> > this topic
> > > but any information/help would be greatly appreciated.
> > >
> > > Kind regards,
> > >
> > > Emma Scanlon.
> >
> > --
> > Don Hooper, replying for esrl.psd.data at noaa.gov.
> > Please don't over-ride the Reply-To: address; I
> > read esrl.psd.data at noaa.gov, too.
> _______________________________________________
> 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/20120619/727a6553/attachment-0003.html 


More information about the gradsusr mailing list