[gradsusr] plot

Davide Sacchetti davide.sacchetti at arpal.gov.it
Thu Dec 22 02:43:37 EST 2016


"if()" syntax is completely different, eg.:
'd if(t2,>,20,a,-u)'
(it means IF (T2>20) THEN PLOT cape ELSE PLOT UNDEF)
bye bye
Davide

Il giorno gio, 22/12/2016 alle 12.25 +0530, Nibin Gopi ha scritto:
> when i plot the following code i get error messeage
> 
> 'open cnt_2012-12-04_d03.ctl'
> 
> 'define a=cape'  ( just define a variable which is in the ctl file )
> 
> if((t2>20 & t2<25)|(rh2>50 & rh2<60)|(rainc+rainnc>75 &
> rainc+rainnc<175))
> 
>  'a=1'
> else
>  'a=0'
> endif
> 
> 'd a'
> 
> 'set clevs 0 1'
> 
> 'set colrs 2 3'
> ~                                                                    
>                                                                      
>          
> ~                                                                    
>                                                                      
>          
> ~            
> 
> 
> this is the error
> 
> 
> 
> numeric args to numeric operation, Error occurred on line In file
> nibin.gs
> 
> 
> i want to plot only zeros and ones in my plot going throgh the
> condition
> 
> is there any solution to this?
>                                                                      
>                                                                  
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr



More information about the gradsusr mailing list