Ignore:
Timestamp:
May 25, 2006, 9:25:03 AM (19 years ago)
Author:
sexton
Message:

update to velocity calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/smf.py

    r2945 r2965  
    360360        z = zeros(N, Float)
    361361        maxz = 0.0
     362        minz = 0.0
    362363        print 'here i am about to calculate z with dx = ', dx
    363364        for i in range(N):
    364365            try:
    365                 z[i] =  -am / ((cosh(kappa*(yr[i]-y0)/(wi+wa)))**2) \
     366                z[i] =  -am / (amin*(cosh(kappa*(yr[i]-y0)/(wi+wa)))**2) \
    366367                            * (exp(-((xr[i]-x0)/wa)**2) - \
    367368                                kappad*exp(-((xr[i]-dx-x0)/wa)**2))
    368369                if z[i] > maxz: maxz = z[i]
     370                if z[i] < minz: minz = z[i]
    369371            except OverflowError:
    370372                pass
    371373       
    372374        print 'maximum of Double Gaussian function', maxz
     375        print 'minimum of Double Gaussian function', minz
    373376        return z
    374377
Note: See TracChangeset for help on using the changeset viewer.