pointsOnASphere (version 0.1)
index
/Users/schwehr/Desktop/JillWranglesPython/pointsOnASphere.py

Program from Lisa to Jill to Kurt.  Generate random points on a sphere.
 
run this command to get help with the command line options:
 
  ./pointsOnASphere.py --help
 
Sample run from 300 to 310 points:
 
  ./pointsOnASphere.py -s 300 -e 310 -b testrun

 
Functions
       
cos(...)
cos(x)
 
Return the cosine of x (measured in radians).
makePoints(filename, N=1000)
Generate N random points on a sphere.  Uses the default python
random number generator.
 
filename - file to write out the results to
N - number of points
sin(...)
sin(x)
 
Return the sine of x (measured in radians).
sqrt(...)
sqrt(x)
 
Return the square root of x.

 
Data
        __author__ = 'Bunch of people including Lisa and Kurt'
__version__ = '0.1'
argv = ['/sw/bin/pydoc', '-w', 'pointsOnASphere']
myparser = <optparse.OptionParser instance>
pi = 3.1415926535897931

 
Author
        Bunch of people including Lisa and Kurt