summaryrefslogtreecommitdiff
path: root/wcsutil
Commit message (Collapse)AuthorAgeFilesLines
...
* Added a method to update the scaledencheva2011-02-041-0/+7
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11869 fe389314-cf27-0410-b35b-8c050e845b92
* DATE-OBS for STIS is in the SCi extension header, not in the primarydencheva2010-12-171-0/+6
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11452 fe389314-cf27-0410-b35b-8c050e845b92
* Initial fix for #637, will change this later.dencheva2010-12-131-2/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11373 fe389314-cf27-0410-b35b-8c050e845b92
* One version string for the packagedencheva2010-10-141-4/+0
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10536 fe389314-cf27-0410-b35b-8c050e845b92
* More docsdencheva2010-10-111-22/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10521 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected a problem with ext parameterdencheva2010-10-061-7/+6
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10478 fe389314-cf27-0410-b35b-8c050e845b92
* Added documentaiondencheva2010-09-303-62/+94
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10440 fe389314-cf27-0410-b35b-8c050e845b92
* refactored some of the code. Checked in tests for altwcs functionsdencheva2010-09-242-115/+89
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10418 fe389314-cf27-0410-b35b-8c050e845b92
* Made ext a required parameter for all file level functionsdencheva2010-09-231-42/+71
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10382 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed a probelm with converting a PC to a CD matrix in alternate WCS'sdencheva2010-09-231-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10381 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected a mistake in previous checkindencheva2010-09-222-2/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10373 fe389314-cf27-0410-b35b-8c050e845b92
* Refactored wcsutildencheva2010-09-222-325/+347
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10371 fe389314-cf27-0410-b35b-8c050e845b92
* Addresses #610 - functions which work with alternate WCS.dencheva2010-09-221-0/+444
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10370 fe389314-cf27-0410-b35b-8c050e845b92
* Added parameters to updatewcs to allow the primary WCS to be archived under ↵dencheva2010-09-091-1/+2
| | | | | | an arbitrary name. Corrected bugs. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10267 fe389314-cf27-0410-b35b-8c050e845b92
* Wcskey and alternate WCS used now in stwcsdencheva2010-08-311-29/+46
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10201 fe389314-cf27-0410-b35b-8c050e845b92
* Should call repr instead of str which inserts \ndencheva2010-07-161-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9877 fe389314-cf27-0410-b35b-8c050e845b92
* Pywcs was changed not to set the WCS values for a default object (header is ↵dencheva2010-07-141-3/+6
| | | | | | None) and these are the corresponing changes in wcsutil.And some other minor bug fixes. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9839 fe389314-cf27-0410-b35b-8c050e845b92
* - If idc table is not found and idc model cannot be restored from SIP, ↵dencheva2010-01-251-13/+20
| | | | | | | | | | | | idcmodel is always set to None. - Two cases are considered when output_wcs is created and idcmodel for the reference image is None: -- if idcmodel can be found, a RuntimeError will be raised and the user prompted to run 'updatewcs' or pass 'undistort=False' kw. -- if idcmodel cannot be found, the original WCS for the reference object will be returned and used as an output WCS. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8640 fe389314-cf27-0410-b35b-8c050e845b92
* 'from __future__ import division' changesdencheva2009-12-233-1/+5
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8517 fe389314-cf27-0410-b35b-8c050e845b92
* Comments and minor correctionsdencheva2009-12-221-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8515 fe389314-cf27-0410-b35b-8c050e845b92
* Update version numbersdencheva2009-12-221-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8514 fe389314-cf27-0410-b35b-8c050e845b92
* Fix for missing kw CCDCHIP. Covered the case when IDCTAB kw is not present ↵dencheva2009-12-222-11/+47
| | | | | | or is not a valid file or is present but the file is missing on disk, in which case the idcmodel is restored from the SIP coefficients. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8513 fe389314-cf27-0410-b35b-8c050e845b92
* More code cleaningdencheva2009-12-181-24/+6
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8508 fe389314-cf27-0410-b35b-8c050e845b92
* Minor refactoring and cleaning; fixed a problem when ORIENTAT is not present ↵dencheva2009-12-183-60/+118
| | | | | | in the header. Tests against makewcs pass for all instruments. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8507 fe389314-cf27-0410-b35b-8c050e845b92
* Added code which allows to create an HSTWCS object without the requirement ↵dencheva2009-09-243-47/+43
| | | | | | to tie it to an instrument and detector (WCS headerlets). Also better handling of iraf type fits names git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8308 fe389314-cf27-0410-b35b-8c050e845b92
* Removed code related to d2im correction. Changed the type of CDELT to be float.dencheva2009-07-271-12/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8162 fe389314-cf27-0410-b35b-8c050e845b92
* Remove d2im support from stwcs, since it is now part of pywcs.mdroe2009-07-221-178/+48
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8151 fe389314-cf27-0410-b35b-8c050e845b92
* More name changesdencheva2009-04-291-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/stwcs@7979 fe389314-cf27-0410-b35b-8c050e845b92
* These changes allow the HSTWCS object ot be used for transformations and ↵dencheva2009-04-281-2/+7
| | | | | | when updating the headers git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7974 fe389314-cf27-0410-b35b-8c050e845b92
* The detector to image data array is assigned as an attribute of the HSTWCS ↵dencheva2009-04-281-22/+15
| | | | | | object which sppeds up processing many times. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7968 fe389314-cf27-0410-b35b-8c050e845b92
* More formatting correctionsdencheva2009-04-241-4/+20
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7948 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed a problem with formatting inputdencheva2009-04-241-2/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7946 fe389314-cf27-0410-b35b-8c050e845b92
* Added printwcs function to HSTWCS classdencheva2009-04-101-1/+10
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7873 fe389314-cf27-0410-b35b-8c050e845b92
* Added minerr parameter toHSTWCS and D@IMERR kw to primary header. This ↵dencheva2009-03-261-7/+6
| | | | | | allows the detector to image correction to be switched off on the command line git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7820 fe389314-cf27-0410-b35b-8c050e845b92
* Removed wcs_pix2sky method, detector to image correction is not applied in ↵dencheva2009-03-262-37/+82
| | | | | | | | | | | | this case. Added sip2foc method. Added 'minerr' parameter to HSTWCS class to allow switching distortion application off Added docstrings. Changed imports of numpy git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7804 fe389314-cf27-0410-b35b-8c050e845b92
* More on detector to image correctiondencheva2009-03-181-6/+8
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7776 fe389314-cf27-0410-b35b-8c050e845b92
* Added code which populates the science file with information about detector ↵dencheva2009-03-172-4/+8
| | | | | | to image correction - header keywords and a lookup table extension. Cleaned coed. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7770 fe389314-cf27-0410-b35b-8c050e845b92
* Changed the output of pixel to sky methods to be consistent with pywcs.dencheva2009-03-171-21/+30
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7767 fe389314-cf27-0410-b35b-8c050e845b92
* Added detector to image pixel correction. Added a 'minerr' kw as defined by ↵dencheva2009-03-161-12/+26
| | | | | | paper IV CPERR kw git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7765 fe389314-cf27-0410-b35b-8c050e845b92
* If input is not a pyfits.HDUList object close it, otherwise it's the user's ↵dencheva2009-03-161-1/+6
| | | | | | responsibility to close it. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7762 fe389314-cf27-0410-b35b-8c050e845b92
* Initial support for column/row detector 2 image coordinate correctiondencheva2009-03-131-4/+61
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7758 fe389314-cf27-0410-b35b-8c050e845b92
* More changes to pass correctly a pyfits hdu to pywcs without breaking other codedencheva2009-03-101-6/+7
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7731 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed a bug when a pyfits object was not passed correctly to pywcs.dencheva2009-03-091-10/+14
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7726 fe389314-cf27-0410-b35b-8c050e845b92
* Added support for nicmos, stis, wfc3dencheva2009-02-123-17/+141
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7549 fe389314-cf27-0410-b35b-8c050e845b92
* Cleaned code and added commentsdencheva2009-02-101-20/+23
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7535 fe389314-cf27-0410-b35b-8c050e845b92
* Modified the constructor for HSTWCS. Now it can be created given:dencheva2009-02-101-61/+95
| | | | | | | | | | | | - a filename and extension number - fully qualified filename - a pyfits object and an extension number - if given an instrument and detctor parameters, a template HSTWCS object for that instrument will be created. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7534 fe389314-cf27-0410-b35b-8c050e845b92
* Added verison numbers and 'origin' kw to pywcs callsdencheva2009-02-051-0/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7523 fe389314-cf27-0410-b35b-8c050e845b92
* Changed namesdencheva2008-12-221-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7408 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed bugsdencheva2008-12-161-3/+4
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7384 fe389314-cf27-0410-b35b-8c050e845b92
* Forgot to commit a filedencheva2008-12-161-0/+25
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7383 fe389314-cf27-0410-b35b-8c050e845b92