diff options
author | sienkiew <sienkiew@stsci.edu> | 2014-03-25 10:53:08 -0400 |
---|---|---|
committer | sienkiew <sienkiew@stsci.edu> | 2014-03-25 10:53:08 -0400 |
commit | 5d00dcb1a0123389d9759698a5c42828e17af9bc (patch) | |
tree | ecef07881ea7b6b661ee5f59847b00dafecf3409 /lib/test/test_util.py | |
parent | 64be292044c4428b5908acf5cc2dda6693ed1afb (diff) | |
download | stsci.sphere-5d00dcb1a0123389d9759698a5c42828e17af9bc.tar.gz |
mod for d2to1 install
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@30670 fe389314-cf27-0410-b35b-8c050e845b92
Former-commit-id: 91667828b7e01b5aae55679093564473a976e8a9
Diffstat (limited to 'lib/test/test_util.py')
-rw-r--r-- | lib/test/test_util.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/test/test_util.py b/lib/test/test_util.py deleted file mode 100644 index 6dc0393..0000000 --- a/lib/test/test_util.py +++ /dev/null @@ -1,14 +0,0 @@ -import os - -import numpy as np -from .. import vector - -ROOT_DIR = os.path.join(os.path.dirname(__file__), 'data') - -def get_point_set(density=25): - points = [] - for i in np.linspace(-85, 85, density, True): - for j in np.linspace(-180, 180, np.cos(np.deg2rad(i)) * density): - points.append([j, i]) - points = np.asarray(points) - return np.dstack(vector.radec_to_vector(points[:,0], points[:,1]))[0] |