NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[idvusers] Converting dBZ to Z and then back

I've been getting help from Tom on a script - but I'm a little stuck here being 
new to
VisAD...
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.



Thanks,

-Ben


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

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


  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvusers archives: