[gradsusr] Legend missing when no shading information

Ricardo Hallak ricardo.hallak at iag.usp.br
Thu Oct 1 17:35:53 EDT 2020


Hi Miquel and Davide,

maybe you can use query shades:

'd var'
'q shades'
test1=subwrd(result,1)
if (test1 = 'None')
'c'
*here you do a different display
else
*you do the default display (legends,title, cbarn, etc)
endif

Hope this helps!
-- 
Prof. Ricardo Hallak
Laboratório de Meteorologia de Mesoescala - LMM
Departamento de Ciências Atmosféricas
Instituto de Astronomia, Geofísica e Ciências Atmosféricas
Universidade de São Paulo

Phone: +55(11)3091-4698


Em qui., 1 de out. de 2020 às 11:38, Davide Sacchetti <
davide.sacchetti at arpal.liguria.it> escreveu:

> it is not a simple answer and the solution is not trivial
> what I do is to modify cbar.gs in order to it can manage global variables
> (I call them _CLEVS and _CCOLS) instead of the output of 'q shades'
> Then I define _CLEVS and _CCOLS: now cbar.gs does not mind if there is or
> not shading info ...
>
> hoping it could help
> Bye
> Davide
>
> * From: * Miquel Bernis <bernisfeina at gmail.com>
> * To: * GrADS Users Forum <gradsusr at gradsusr.org>
> * Sent: * 10/1/2020 3:56 PM
> * Subject: * [gradsusr] Legend missing when no shading information
>
> Hi everyone,
>
> I'm trying to avoid the fact that when there's no shading info, map legend
> isn't shown, using cbar.gs. Also titles and map info appear different and
> uglier. I know it seems stupid, but on an animation makes video look no
> nice and seems like an error. Does anyone know how to avoid that?
>
> Thank you very much,
> Miquel
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> Attenzione ARPAL ha cambiato indirizzi digitali, i nuovi indirizzi di
> e-mail sono composti dall'attuale nome.cognome seguito da @
> arpal.liguria.it, quindi nome.cognome at arpal.liguria.it
> _______________________________________________
> 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/20201001/220a254a/attachment.html>


More information about the gradsusr mailing list