diff options
author | mdroe <mdroe@stsci.edu> | 2014-06-13 15:31:02 -0400 |
---|---|---|
committer | mdroe <mdroe@stsci.edu> | 2014-06-13 15:31:02 -0400 |
commit | 99b3bdc918d81c78ed1583804bcfa0d42f123667 (patch) | |
tree | e91c0b0c946968481fa239bb3a5c5a335db59ca3 | |
parent | d323b761917b1c713fbb367a86dac84bfa7e0af6 (diff) | |
download | stsci.sphere-99b3bdc918d81c78ed1583804bcfa0d42f123667.tar.gz |
Update documentation.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32540 fe389314-cf27-0410-b35b-8c050e845b92
Former-commit-id: 3681ec19a41b919d6822476cb122cd373020311e
-rw-r--r-- | doc/source/user.rst | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/doc/source/user.rst b/doc/source/user.rst index a163aa3..d3c2b2f 100644 --- a/doc/source/user.rst +++ b/doc/source/user.rst @@ -13,11 +13,7 @@ Requirements - Numpy 1.4 or later -- PyFITS - -- PyWCS - -- STWCS +- astropy 0.3 or later Coordinate representation ------------------------- @@ -34,7 +30,7 @@ contains functions to convert between (*ra*, *dec*) and (*x*, *y*, While any (*x*, *y*, *z*) triple represents a vector and therefore a location on the sky sphere, a distinction must be made between -normalized coordinates fall exactly on the unit sphere, and +normalized coordinates that fall exactly on the unit sphere, and unnormalized coordinates which do not. A normalized coordinate is defined as a vector whose length is 1, i.e.: @@ -47,10 +43,20 @@ assume that the vectors passed in are already normalized. If this is not the case, `stsci.sphere.vector.normalize_vector` can be used to normalize an array of vectors. -The library allows the user to work in either degrees or radians. All -methods that require or return an angular value have a `degrees` -keyword argument. When `degrees` is `True`, these measurements are in -degrees, otherwise they are in radians. +When not working in Cartesian vectors, the library allows the user to +work in either degrees or radians. All methods that require or return +an angular value have a `degrees` keyword argument. When `degrees` is +`True`, these measurements are in degrees, otherwise they are in +radians. + +.. warning:: + + Due to constraints in the precision of intersection calculations, + points on the sphere that are closer than :math:`2^{-32}` along a + Cartesian axis are automatically merged into a single point. This + prevents intersections from being missed due to floating point + rounding error. There is currently no implemented solution to + deal with points that need to be closer together. Spherical polygons ------------------ @@ -117,7 +123,7 @@ Creating spherical polygons - `SphericalPolygon.from_wcs`: Creates a polygon from the footprint of a FITS image using its WCS header keywords. Takes a FITS - filename or a `pyfits.Header` object. + filename or a `astropy.io.fits.Header` object. Operations on Spherical Polygons ```````````````````````````````` @@ -169,6 +175,9 @@ functions that are useful for dealing with them. - `intersects`: Determines if two great circle arcs intersect. +- `intersects_point`: Determines if a point is along the great circle + arc. + - `angle`: Calculate the angle between two great circle arcs. - `midpoint`: Calculate the midpoint along a great circle arc. |