cbar

Nikos Mazarakis nickmaz at METEO.NOA.GR
Tue Nov 1 09:35:26 EST 2005


Hello everybody!

I have a problem with cbar.gs 

I want to display gridded flash data. My input  file is like this

0

3

15

.

.

.

18

0 

where 0,3,15,. are the number of flashes for each box (0.1x0.1) for the domain 18E-30E and 34N - 42 N. I have 121*81 box. 

 I use the following code to make the .dat file.

 

open(40,file='flash.dat',form='unformatted',

     +  access='direct',recl=121*81*4)

            write(40,rec=1) ((icountA(j,k),j=1,121),k=1,81)

 

 and the following ctl

 

 

DSET flash.dat

TITLE ZEUS data

UNDEF -9999.

XDEF   121 linear 18 0.10

YDEF   81 linear 34 0.10

ZDEF   1 linear 1000 1000

TDEF   1 linear 00:00Z29OCT2002 1mn

VARS  1

nb   0 10 total precipitation (mm/hr)

ENDVARS

 

The values are between 0 and 20. Grads draws the chart very well but when I use the cbar.gs then the contouring in value bar is made from 0 to 7.00649e-44 with interval 7.00649e-45.

Where am I wrong? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20051101/09649a0d/attachment.html 


More information about the gradsusr mailing list