summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Updated API for stwcs.wcsutil.hstwcs.HSTWCS.all_sky2pix() to accept both 1-D ↵hack2013-11-181-1/+29
| | | | | | | | | arrays for Ra,Dec and a single 2-D array to be consistent with pywcs.WCS.all_pix2sky(). This resolves #1076. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@27470 fe389314-cf27-0410-b35b-8c050e845b92
* Very minor/simple update to HSTWCS.all_sky2pix() method to not update output ↵hack2013-10-301-4/+4
| | | | | | values based on an increasingly bad inversion. This only affects positions at an extreme distance outside the frame where the distortion model breaks down and becomes unstable. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@27118 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed a bug introduced in r26987 to the headerlet module that caused ↵hack2013-10-241-8/+9
| | | | | | headerlet.apply_as_primary to fail when the headerlet was created directly using the Headerlet class and an HDUList as input. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@26990 fe389314-cf27-0410-b35b-8c050e845b92
* STWCS v1.1.2: This update only includes changes to the headerlet module and ↵hack2013-10-235-46/+115
| | | | | | | | | | | | related TEAL interface modules. The changes include: - Fix calls to PyFITS to allow writing of headerlet out to files - Implement support for multiple file inputs for apply_header, delete_headerlet and attach_headerlet TEAL tasks and their underlying Python interfaces. (Ticket #1063) The docstrings for all updated headerlet functions were updated to reflect the new input capabilities. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@26987 fe389314-cf27-0410-b35b-8c050e845b92
* Interface with 'new' PyFITS (>v3.1.x) and its writeto() method were ↵hack2013-10-171-16/+38
| | | | | | corrected with this change. This allows the Headerlet class to work again to create new headerlets. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@26877 fe389314-cf27-0410-b35b-8c050e845b92
* Problems with using apply_headerlet_as_primary() on WFPC2 data have been ↵hack2013-08-281-2/+5
| | | | | | corrected in this revision. These included counting the D2IM arrays correctly and eliminating a typo for a variable. These changes were tested using both a WFPC2 image and the same ACS image that demonstrated the previous bug. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@26500 fe389314-cf27-0410-b35b-8c050e845b92
* The apply_as_primary() method of the Headerlet class was revised to look for ↵hack2013-08-271-5/+8
| | | | | | | | | the correct WCSDVARR (and D2IMARR) extensions from the headerlet. This finished the process where the PyWCS generated object was updated to include the image-specific EXTVER values for each of the WCSDVARR and D2IMARR extensions. These changes were successfully tested (manually) on the regression test case where the problem was first reproduced after being alerted to this problem by Shireen when trying to document the apply_headerlet_as_primary() function. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@26499 fe389314-cf27-0410-b35b-8c050e845b92
* Replace hdu._extver' with 'ext.ver' because of changes to pyfits' API.dencheva2013-08-121-67/+67
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@26284 fe389314-cf27-0410-b35b-8c050e845b92
* Updated the return value from coeff_converter.sid2idc so that it returns a ↵hack2013-06-111-1/+1
| | | | | | pair of None values when no OCX/OCY keywords are found in the image header. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@25262 fe389314-cf27-0410-b35b-8c050e845b92
* This update removes all references to .has_key() method, including those for ↵hack2013-04-3011-24/+24
| | | | | | list and dict comprehension, but primarily to work with PyFITS 3.2.dev checked in on 29-Apr-2013. [Trac Ticket #1007] git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24552 fe389314-cf27-0410-b35b-8c050e845b92
* Remove a hardcoded version stringdencheva2013-04-221-1/+0
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24443 fe389314-cf27-0410-b35b-8c050e845b92
* Add support for binned images and subarrays to D2IM and NPOL correctionsdencheva2013-04-172-23/+30
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24316 fe389314-cf27-0410-b35b-8c050e845b92
* The update failed when a new idctab was provided because it tried to remove ↵dencheva2013-04-171-4/+9
| | | | | | a WCS with wkey=' ' and wcsname=' '. Fixed. Also write the name of d2imfile used to the sci extension. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24315 fe389314-cf27-0410-b35b-8c050e845b92
* When creating a WCS object with NPOl or D2IM correction Pywcs does not keep ↵dencheva2013-04-111-5/+20
| | | | | | track of DPi.EXTVER of the lookup table. In order to recover this information a create_headerlet looks at the header of the science file. However, in the case of a science file with 'old style' D2IM format these keywords are not used , so when writing out headerlets for such file, create_headerlet converts them to the 'new style' and makes up the values for the D2IMi.EXTVER keywords. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24211 fe389314-cf27-0410-b35b-8c050e845b92
* fix bugs in headerlet related to d2im correctiondencheva2013-03-191-32/+22
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@23830 fe389314-cf27-0410-b35b-8c050e845b92
* Merging d2im changes into trunkdencheva2013-03-183-135/+228
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@23819 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed a problem in wcscorr with updating the WCSCORR table for drizzled ↵hack2013-02-251-1/+1
| | | | | | images with no SIPNAME. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@23439 fe389314-cf27-0410-b35b-8c050e845b92
* Added '__version__' to stwcs.__init__ module as patch for new IRAFX build.hack2013-01-301-0/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@21888 fe389314-cf27-0410-b35b-8c050e845b92
* fixing variable problems from import ordersienkiew2013-01-291-11/+7
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@21885 fe389314-cf27-0410-b35b-8c050e845b92
* new installsienkiew2013-01-111-19/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@21558 fe389314-cf27-0410-b35b-8c050e845b92
* minor documentation correctiondencheva2013-01-111-2/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@21532 fe389314-cf27-0410-b35b-8c050e845b92
* Adding a WCS diff function to the packagedencheva2013-01-082-136/+150
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@21420 fe389314-cf27-0410-b35b-8c050e845b92
* Update TEAL interface to write_headerlet to support a blank value for ↵hack2012-12-051-7/+1
| | | | | | 'output' to result in a headerlet filename of <rootname>_hlet.fits. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@20684 fe389314-cf27-0410-b35b-8c050e845b92
* Minor change to insure that NPOL WCSDVARR extensions ALWAYS get written out ↵hack2012-11-091-6/+5
| | | | | | as Float32 datatype, as some NPOL file reference files may have Float64 input arrays which cause PyWCS to choke. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@20341 fe389314-cf27-0410-b35b-8c050e845b92
* Adding support for NPOL correction to WFC3 in updatewcs.hack2012-11-051-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@20240 fe389314-cf27-0410-b35b-8c050e845b92
* fix docstring indentationdencheva2012-10-291-121/+124
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@20130 fe389314-cf27-0410-b35b-8c050e845b92
* fix a typodencheva2012-10-251-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@20030 fe389314-cf27-0410-b35b-8c050e845b92
* Added 'catalog' to the write_headerlet TEAL interface. It already existed ↵hack2012-10-223-7/+9
| | | | | | in the headerlet API, so no changes were needed in the headerlet code itself. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@20022 fe389314-cf27-0410-b35b-8c050e845b92
* update docstringsdencheva2012-10-191-10/+25
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@20019 fe389314-cf27-0410-b35b-8c050e845b92
* Make sure CRDER* keywords go into the headerlet and remove RMS* keywords ↵dencheva2012-10-021-4/+8
| | | | | | from primary header git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19785 fe389314-cf27-0410-b35b-8c050e845b92
* part of the refactoring, missed this changedencheva2012-10-021-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19781 fe389314-cf27-0410-b35b-8c050e845b92
* Refactored headerlet code works with pywcs.WCS objects now. Also works iwth ↵dencheva2012-10-014-579/+704
| | | | | | non-HST files git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19777 fe389314-cf27-0410-b35b-8c050e845b92
* fixed a bug in populating cperror keywordsdencheva2012-09-101-7/+11
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19338 fe389314-cf27-0410-b35b-8c050e845b92
* Write out the correct keyword name for error values in wcsdvarr extensions, ↵dencheva2012-09-061-3/+2
| | | | | | 'CPERR', instead of 'CPERROR', and populate the keyword with values from the data arrays. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19145 fe389314-cf27-0410-b35b-8c050e845b92
* do not attempt to make a correction if idcmodel is Nonedencheva2012-08-302-0/+6
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19030 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed a problem with headerlet.apply_as_primary that arose from changes from ↵hack2012-06-202-2/+2
| | | | | | | | | r17090 (adding support for simple FITS files) as reported in Ticket #910. This should allow all regression tests for STWCS.WCSUTIL.headerlet to pass, based on the fact that the test now passes when run manually with these changes. This resolves the last of the critical issues for STWCS prior to its release with AstroDrizzle, so the version ID was incremented to 1.0.0 as well. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@17442 fe389314-cf27-0410-b35b-8c050e845b92
* Problems with attaching headerlets to drizzled images in simple FITS format ↵hack2012-05-312-54/+89
| | | | | | have finally been resolved. This included changes to the interpretation of the sciext parameter to write_headerlet and create_headerlet functions to make them more general. It also removed the last(?) explicit reference to 'sci,1' extension. In addition, updates to WCSCORR tables have been turned off when working with drizzled images in simple FITS format. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@17090 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed problems with updatewcs not finding single filter usage case in IDCTAB ↵hack2012-05-241-14/+14
| | | | | | for WFPC2 data. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@16948 fe389314-cf27-0410-b35b-8c050e845b92
* fixed a problem with archiving a WCS in simple fits when wcsname is missingdencheva2012-04-181-1/+4
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@16261 fe389314-cf27-0410-b35b-8c050e845b92
* Modified a few print statements in altwcs to make 'updatewcs' a little less ↵hack2012-04-171-7/+7
| | | | | | disconcerting for users to address an issue raised in astrodrizzle testing. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@16258 fe389314-cf27-0410-b35b-8c050e845b92
* Based on a report by Andy, a bug was fixed in the headerlet code that had ↵hack2012-04-111-4/+6
| | | | | | resulted in duplication of entries in the WCSCORR table when updating an image with a headerlet. The 'attach_to_file' method of the Headerlet class was modified to only update the WCSCORR table upon request, as it gets called by other routines which are already updating WCSCORR. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@16151 fe389314-cf27-0410-b35b-8c050e845b92
* fix to archiveWCSdencheva2012-03-161-1/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15729 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected a typo in one of the updatewcs parameter comments.hack2012-03-151-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15632 fe389314-cf27-0410-b35b-8c050e845b92
* The primary wcs can have a WCSNAME, so if wcsname=' ' in the call to ↵dencheva2012-03-151-1/+3
| | | | | | archiveWCS, set wcsname to the one in the primary WCS git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15625 fe389314-cf27-0410-b35b-8c050e845b92
* deleteWCS did not detect the case of a data array in the primary hdu when ↵dencheva2012-03-151-7/+2
| | | | | | the file is not simple fits. The file checking is more robust now. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15624 fe389314-cf27-0410-b35b-8c050e845b92
* Update to STWCS.WCSUTIL.wcscorr to turn off initialization of WCSCORR table ↵hack2012-03-132-2/+3
| | | | | | for simple FITS files. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15608 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed the last two minor errors in stwcs--these are mainly just typos ↵embray2012-02-271-3/+3
| | | | | | (k.key->c.keyword, and removed stray end of line commas that were causing tuple values to be treated as a 1-tuple containing a tuple. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15287 fe389314-cf27-0410-b35b-8c050e845b92
* Don't assume that there are definitely any HISTORY cards.embray2012-02-241-2/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15285 fe389314-cf27-0410-b35b-8c050e845b92
* Fixes a few more problems with the new Header API encountered in stwcs. ↵embray2012-02-231-11/+13
| | | | | | This fix relies on r1384 from pyfits. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15202 fe389314-cf27-0410-b35b-8c050e845b92
* Should fix most problems in stwcs due to pyfits Header updates. The main ↵embray2012-02-2212-442/+450
| | | | | | issue that caused incompatibility is that slices of headers (including by wildcard patterns) now returns a new Header rather than a list of cards. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15198 fe389314-cf27-0410-b35b-8c050e845b92