Added fast version of mangle.py for dealing with mangle polygons.

Added mangle_orig.py, the orignal version from Martin White, for
comparison testing.

Added test_mangle.py, a test class for mangle.py (requires polyid to
be in $PATH).



git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@115910 b00c9580-4927-0410-8824-811d448ea4c7
Added __getitem__ to mangle.  It works well for mask arrays and
slices, but not for individual element access when the data originally
came from a fits file, where it returns crazy values.


git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@116417 b00c9580-4927-0410-8824-811d448ea4c7
Added __getitem__(idx), which returns a new mangle instance containing
only those polygons referenced by idx.


git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@116583 b00c9580-4927-0410-8824-811d448ea4c7
Added framework for pixelized masks. Cannot do calculations with them
yet.


git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@116797 b00c9580-4927-0410-8824-811d448ea4c7
Commented as-yet unused pixel lines in mangle.py

New slicing test case in test_mangle.py

Added spectra_browse.py to open a browser window of a spectrum given
PLATE, FIBER, MJD.


git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@119653 b00c9580-4927-0410-8824-811d448ea4c7
Added mangle_utils and related files.

mangle_utils.pyx has a fast, cythonized version of Mangle.incap_vec

mangle_utils.c is the cython output of the mangle_utils.pyx, ready for
compiling.

setup.py will build mangle_utils.so from mangle_utils.c

README.txt describes how to build mangle_utils.

Modified mangle.py to use mangle_utils if available.

Some tweaks to test_mangle.py, including better handling of
commandline mangle output.


git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@122358 b00c9580-4927-0410-8824-811d448ea4c7
Significant documentation updates to mangle.py and __getitem__ bugfix.


git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@122361 b00c9580-4927-0410-8824-811d448ea4c7
Force float64 conversion in Mangle.get_polyids() for ra/dec.


git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@122952 b00c9580-4927-0410-8824-811d448ea4c7
BUGFIX in mangle.py - area and weight were being written in reverse
order in writeply.  Also replaced loop with in-place sum in totalarea()

test_mangle.py updated to include a write test.


git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@123486 b00c9580-4927-0410-8824-811d448ea4c7
Added Adrian's windows db table loading and some variable name tweaks.


git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@124705 b00c9580-4927-0410-8824-811d448ea4c7
Added various fits and ascii i/o support to mangle.py --Molly Swanson

git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@127208 b00c9580-4927-0410-8824-811d448ea4c7
Added support for variable length array columns in mangle.py, fixed some bugs --Molly Swanson

git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@127214 b00c9580-4927-0410-8824-811d448ea4c7
added support to read and write extra columns in ascii format --Molly

git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@128145 b00c9580-4927-0410-8824-811d448ea4c7
adding matplotlib/basemap mangle polygon plotting functions to mangle python code --Molly

git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@128661 b00c9580-4927-0410-8824-811d448ea4c7
adding matplotlib/basemap mangle polygon plotting functions to mangle python code --Molly

git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@128662 b00c9580-4927-0410-8824-811d448ea4c7
adding matplotlib/basemap mangle polygon plotting functions to mangle python code --Molly

git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@128663 b00c9580-4927-0410-8824-811d448ea4c7
updated documentation for mangle.py and graphmask.py --Molly

git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@128726 b00c9580-4927-0410-8824-811d448ea4c7
Updates to python mangle wrapper: added capability to use long doubles as in the real*10 version of mangle, added sortpolys function --Molly

git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@128971 b00c9580-4927-0410-8824-811d448ea4c7
Update to mangle python wrapper - added documentation for longdouble_utils and sortpolys --Molly

git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@128987 b00c9580-4927-0410-8824-811d448ea4c7
updates to mangle python wrapper: added which_pixel function and incorporated it into polyid and get_polyids --Molly

git-svn-id: svn+ssh://sdss3.org/repo/boss/bosslss/trunk/python@129007 b00c9580-4927-0410-8824-811d448ea4c7