Re: [idvusers] Converting dBZ to Z and then back

BTW, I did find the comment from Tom about log10(val) not being a valid 

but log(val)/log(10) gives me that error...

so I tried his log(val/2.3025....) and that seems to work.


Ben Kamen wrote:
I've been getting help from Tom on a script - but I'm a little stuck here being 
new to
I'm getting this error:

 TypeError: log(): 1st arg can't be coerced to visad.Data

from this routine:

def Z2dBz (Z):
  """ This converts Z back to dBz
  dBz = ( log(Z)/log(10) ) * 10
  return dBz

trying to pass a Level-II data point into here to convert it back to dBz.



Ben Kamen - O.D.T., S.P.
Email: bkamen AT benjammin DOT net              Web:

As seen somewhere on the net: My other computer is your Windows Server.