[SciPy-User] hemisphere function

John washakie at gmail.com
Wed Nov 24 07:00:24 EST 2010


Is there a function in scipy for a hemisphere?

Something like:

def hemisphere(X,Y,a):
    """ hemisphere over 2d X,Y """
    h = np.sqrt(a-X**2-Y**2)


But with improved error checking, and perhaps returning an ma for the
NaN values, etc.??

--john

--



More information about the SciPy-User mailing list