summaryrefslogtreecommitdiff
path: root/lib/polygon.py
Commit message (Collapse)AuthorAgeFilesLines
* mod for d2to1 installsienkiew2014-03-251-831/+0
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@30670 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 91667828b7e01b5aae55679093564473a976e8a9
* Restored the old implementation of the SphericalPolygon.__init__(...) for ↵mcara2014-02-271-1/+7
| | | | | | | | | | | | | the case of empty list of points which was designed to remove a RuntimeWarning at the first run of the code (see Ticket # 1079). For unknown reasons, this change was lost during last commit by Mike. Moved point vector-normalization from the add_node method to Node.__init__(...) in graph.py. Removed skyline.py from the 'sphere' module. The original implementation of skyline.py did not work correctly (see, e.g., tickets #1080, #1081, #1082) and overall it makes sense to separate image processing and statistical analysis from "pure" geometric operations handled by the 'sphere'. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@29976 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 82f06f5b25c8cc262bfbc0b57e3e774d320bcf47
* fixed skyline bug, change polygon.to_radec output formatlim2012-07-121-5/+4
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17822 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 80e7a2f26582c697cb6faf47418b58e879f94de0
* Intersection with an empty polygon should return an empty polygon.mdroe2012-07-111-4/+7
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17821 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 1db96e6bd2b7525c07e2a73832c142f74730a635
* lim updated existing doc and added skyline doclim2012-06-271-5/+8
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17584 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 1dbb501e8e1337077abc2595bf43226e34d57153
* lim corrected doc in unique_points and sorted_pointslim2012-06-211-5/+6
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17464 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 3dc459c25c7775a9fd3d79246c724e11aa6e8cd7
* lim added option to preserve order in unique_points and sorted_pointslim2012-06-211-17/+42
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17463 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 08f6e1e0ed29c9b82ec288fca25139a6457ba7fe
* reverted a change that broke testslim2012-06-201-2/+4
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17441 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 880c0abbff3ea814281a0c46505ed494447d8230
* lim added final touches to skyline and polygon, and added skyline testslim2012-06-191-7/+90
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17428 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 7d98dcd06a908e74b9c69699ee813e23d468dad3
* Make area calculation more accurate by not counting the first point twice ↵mdroe2012-06-071-1/+1
| | | | | | | when doing centroid calculation git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17220 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 1da94015b873da448961df3bc950a6b1a5cd51ae
* lim added SkyLine codes and added radec to SphericalPolygonlim2012-06-061-0/+12
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17216 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 07652822dd48be9bdf7eaf006de25d8bb6c37fff
* Fix bug with serial intersection where the intersection is null.mdroe2012-06-051-0/+4
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17203 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 18f248eb618623cad24c535ad787f818f5c76a09
* Some tweaks to the area calculation.mdroe2012-06-051-9/+18
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17202 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 07101e1f3d5f37ea231b64b33283b8864ac1a0fc
* Python 3.x fixesmdroe2012-06-041-16/+16
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17201 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 645db247912b7d5985ab878bd3c7fb5e9574f05d
* Use an entirely different method for area computation. It first transforms ↵mdroe2012-06-041-40/+41
| | | | | | | | | | | | | | | | | | to a 2D plane by interpolating the great circle arcs through a Lambert azimuthal equal area projection. Then a standard 2D polygon area method is used. Make sure the polygons always go clockwise to aid in area computation. Fix union calculation -- it should be removing interior edges, not interior nodes. Fix some numerical out-of-range problems in great_circle_arc.py Remove the serial method for multi_union -- it no longer generates polygons that are compatible with calculating the area. Make debugging images more explanatory by putting a meaningful title at the top. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17200 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: fb841a481025150f631be6d64cf995dda592ecbc
* Fix drawing -- basemap can not handle drawing great circle arcs that go ↵mdroe2012-06-011-11/+15
| | | | | | | around the edges of the domain. The solution is to do the interpolation in the quaternion space and then pass little snippets of that to basemap. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17192 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: dc807419ae1618c42af6434f6e63c7f0cb3bf36e
* lim changed SphericalPolygon.__copy__ and added methods to SkyLinelim2012-05-311-2/+2
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17093 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4e5e26af63393082e5a9baae4f37704f99cd4227
* lim replaced relative imports and updated skylinelim2012-05-311-4/+5
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17091 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 7238698a4856c8b46a93aafb4960c90e3f44fe92
* lim fixed plot_args dict init buglim2012-05-301-2/+1
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17083 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: fa5dd948c0f9ed7bf8d051c6d5b01225e95b801e
* lim added files to sphere branchlim2012-03-291-0/+679
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@15878 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: b51412b5b545598ae101152eeaed470b08616176