summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* mod for d2to1 installsienkiew2014-03-2517-3328/+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-273-555/+10
| | | | | | | | | | | | | 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
* Handle self-intersecting arcsmdroe2014-02-261-11/+47
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@29971 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 794b284fae2f34108b374230782daa1692cd8ac8
* Turn debugging back offmdroe2014-02-251-1/+1
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@29970 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 3353b4790521a881726a1fa50e629f3b572d5eea
* Fix numerical problem with great circle distancemdroe2014-02-251-2/+3
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@29969 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 71015fdfc54adfd0bd91ec1b225a61dd78e7feb2
* fixed skyline bug, change polygon.to_radec output formatlim2012-07-123-19/+28
| | | | | 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
* skyline member no longer has chip gap to simplify polygon oplim2012-07-112-31/+56
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17820 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4414ce549adc9d1db30e4e0e8627d42ff5ad6444
* lim added temporary workaround for graph sanity check failureslim2012-07-111-9/+78
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17819 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: b5efb39d9d491bba2d8262d9d2f4c192f5511231
* lim updated existing doc and added skyline doclim2012-06-274-209/+232
| | | | | 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
* git-svn-id: ↵lim2012-06-211-2/+22
| | | | | http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17466 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 012f62a226de22cac56716a3b137ff70b6b771e4
* lim added minor skyline doc and finished skyline testslim2012-06-212-27/+104
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17465 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4d99fa976cbdf1fbdf9b23abb8ab899f8fa3043d
* 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
* lim fixed _remove_orphaned_nodes typo in graph.pylim2012-06-211-2/+2
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17446 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 07c568808795ad234c035a67ed6b74f42875eb29
* Add code to remove orphaned nodesmdroe2012-06-211-7/+26
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17445 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 80e3d8ea2af4ca378edcd9a0dc86e8d9f8d06e4e
* lim added stuff to skyline and test_skylinelim2012-06-202-19/+158
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17443 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: b48d0ab71be5ebdcefd8f5315791e16d5c48baa0
* 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-193-26/+222
| | | | | 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
* lim modified Node.equals as mdroe suggestedlim2012-06-181-2/+12
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17427 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 860abb81aeca87d1258684fc6c566acab5b294f6
* SkyLine no longer inherits from SphericalPolygonlim2012-06-121-157/+59
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17327 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 8da35f5ca064d5a042d372c39d121f0812a6f483
* lim fixed some bugs on SkyLinelim2012-06-101-55/+30
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17323 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: ff6e4abb867f8b7ed07fac57736b03f3f0b2d1d6
* lim fixed skyline bugs and cleaned up codeslim2012-06-071-94/+147
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17222 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: bc0798c7dec2e5952a63db27165c2382bea55536
* Make area calculation more accurate by not counting the first point twice ↵mdroe2012-06-072-2/+2
| | | | | | | 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
* Avoid adding duplicated nodes and edges when building the graph. These can ↵mdroe2012-06-073-8/+74
| | | | | | | look like cut lines and get removed in weird ways, so it is better to just not create duplicates in the first place. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17219 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 51d0e8176c7eecdea00e478ef7efaa77c08aab70
* lim removed os import in skylinelim2012-06-061-1/+0
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17218 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: d99e63d01ba47f1249c97a97f9b07352c7c85a7d
* lim cleaned up SkyLine and added a testlim2012-06-062-55/+58
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17217 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 5673edaa81bee2b373f91d5e22336cd696a0584e
* lim added SkyLine codes and added radec to SphericalPolygonlim2012-06-062-50/+120
| | | | | 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
* lim added SkyLine intersection and updated unionlim2012-06-051-37/+49
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17204 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: e94e7c949c6fe3a6e424723bfd715cb0cdf7b896
* 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-054-17/+54
| | | | | 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-0410-47/+57
| | | | | 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-046-109/+175
| | | | | | | | | | | | | | | | | | 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
* lim put more codes on SkyLine -- done for the day 6/1lim2012-06-011-3/+7
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17199 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: f5bf23a34b13c0d435dde59db75e58eb4805e8df
* lim modified SkyLine union to return new instancelim2012-06-011-13/+49
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17198 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 474e7447680df01116b75425b95fa724e7e003bb
* Fix typo in docsmdroe2012-06-011-2/+2
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17197 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: ff32480b3a43d8507e537e843cfa3f4bd6b6c9e0
* lim implemented SkyLine unionlim2012-06-011-14/+32
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17196 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 053bd0b3ced6a75076536f344763fe7aa0c714eb
* Make sure steps are always at least 2mdroe2012-06-011-0/+1
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17195 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: efd4360668c6c220b5737e8db3fa99948c52cd3a
* Use slerp interpolationmdroe2012-06-011-4/+19
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17193 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4354d548cccf590779e982a7eaa5eb227f034ff5
* Fix drawing -- basemap can not handle drawing great circle arcs that go ↵mdroe2012-06-012-11/+38
| | | | | | | 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-312-10/+63
| | | | | 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-314-49/+86
| | | | | 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 added init code to skyline -- under devlim2012-05-301-29/+144
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17087 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: c67bcdd3b992faaa83d7feb5740cdd6545741cc4
* 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
* Fix resolve_image name to work when uncompressed image is not around.mdroe2012-05-211-2/+2
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@16924 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: fa6bffe6aec60a178ef39a39ddcb7376768f7f10
* lim fixed tests that failed because of image de-compression on SVNlim2012-05-215-11/+27
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@16923 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4bf54e5d84f6f6984ce3ad70ed05b1e048de6f02
* lim replaced fits with gz to save spacelim2012-05-218-378/+0
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@16920 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: d4952f9597f2aff8a72724e230e56f6d613280b7
* lim added files to sphere branchlim2012-03-2916-0/+3078
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