summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Updated the definition of a headerlet to reflect the latest discussions and ↵dencheva2011-03-031-33/+14
| | | | | | agreement. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12076 fe389314-cf27-0410-b35b-8c050e845b92
* more docstringsdencheva2011-03-021-1/+22
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12074 fe389314-cf27-0410-b35b-8c050e845b92
* Added a function which compares two WCS solutions. The list of criteria to ↵dencheva2011-03-021-52/+192
| | | | | | meet in order to apply a headerlet has shrunk to 1 - the roootname (file name, if rootname is missing), should match the headerlet's destim kw. Added documenation, made cosmetic changes. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12070 fe389314-cf27-0410-b35b-8c050e845b92
* More changes to go with r12056dencheva2011-03-021-3/+8
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12069 fe389314-cf27-0410-b35b-8c050e845b92
* some of the IDC model kw are not used, do not store them in the header. Do ↵dencheva2011-03-012-5/+7
| | | | | | not archive ORIENTAT in alternate WCSs but recompute it every time a WCS is restored. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12062 fe389314-cf27-0410-b35b-8c050e845b92
* bugfixesdencheva2011-02-281-16/+34
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12060 fe389314-cf27-0410-b35b-8c050e845b92
* wcslib.wcsini populates the WCS struct which includes 'RESTFRQ' and ↵dencheva2011-02-281-0/+5
| | | | | | 'RESTWAV'. Remove them when writing it to headerhstwcs.py git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12057 fe389314-cf27-0410-b35b-8c050e845b92
* Add some IDC model parameters to header. Use header.ascard instead of cardList()dencheva2011-02-281-9/+15
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12056 fe389314-cf27-0410-b35b-8c050e845b92
* Make some attempt to write the WCS kw in the WCS group in the headerdencheva2011-02-281-5/+19
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12055 fe389314-cf27-0410-b35b-8c050e845b92
* one more file to go with headerletsdencheva2011-02-281-2/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12053 fe389314-cf27-0410-b35b-8c050e845b92
* headerletsdencheva2011-02-282-0/+316
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12052 fe389314-cf27-0410-b35b-8c050e845b92
* Closes #674: updatewcs adds a keyword UPWCSVER to the primary header of the ↵dencheva2011-02-242-5/+5
| | | | | | flt file to record the version of STWCS used in the updates. In addition removed the __version__ string from hstwcs - we have decided to have only one version string for the entire package. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12011 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed(?) circular import introduced into the HSTWCS module. hack2011-02-221-1/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12005 fe389314-cf27-0410-b35b-8c050e845b92
* Made the new 'all_sky2pix()' method in HSTWCS dramatically faster, by ↵hack2011-02-221-15/+20
| | | | | | performing the fit in the linear pixel space rather than in decimal degrees on the sky. This allows the method to use a simple (limited) for loop for the iterations instead of a potentially infinite while loop, while generally requiring much fewer than 10 iterations as opposed to over 350 for the fit on the sky. The added complication, though, is that this method now relies on a linear WCS derived using the 'utils.output_wcs()' function. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12004 fe389314-cf27-0410-b35b-8c050e845b92
* The HSTWCS class of STWCS has been updated with a new method: all_sky2pix(). ↵hack2011-02-211-1/+84
| | | | | | This new method implements an iterative solution using the full distortion model to convert sky positions into pixel positions. The algorithm used was based on the code from drizzle's task 'tranback'. This method has been checked using WFC/IR image with SIP and ACS/HRC image with SIP+NPOLFILE such that the RA/Dec positions for a few random positions can be returned to within a delta close to the error limit (<<0.001 pixels). This also addresses Ticket #673. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12003 fe389314-cf27-0410-b35b-8c050e845b92
* Pulled the code which deals with input into a separate module. Changes to ↵dencheva2011-02-162-58/+88
| | | | | | the HSTWCS module are related to using it with headerlets, as well as with observations from other telescopes. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11958 fe389314-cf27-0410-b35b-8c050e845b92
* Added the option to provide an output tangent plane for the virtual mosaic. ↵dencheva2011-02-101-23/+33
| | | | | | Added an option to provide a reference observation from which to calculate the mosaic's tangent plane git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11907 fe389314-cf27-0410-b35b-8c050e845b92
* Added a tool to create a virtual mosaic based on the WCS of the input ↵dencheva2011-02-081-0/+172
| | | | | | observations. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11900 fe389314-cf27-0410-b35b-8c050e845b92
* Make a copy of the output WCS before using it.dencheva2011-02-041-2/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11870 fe389314-cf27-0410-b35b-8c050e845b92
* 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
* Added parameter description to utils module.dencheva2011-02-021-1/+27
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11829 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected a sign-error in 'utils.output_wcs()' in STWCS.distortion. hack2011-01-251-1/+2
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11786 fe389314-cf27-0410-b35b-8c050e845b92
* A couple of updates were made to 'stwcs.distortion.utils.output_wcs()' to ↵hack2011-01-241-8/+26
| | | | | | make the results more consistent with the MultiDrizzle output by default. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11782 fe389314-cf27-0410-b35b-8c050e845b92
* Sphinx version 1 changesdencheva2010-12-226-18/+7
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11499 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
* Make sure the input to checkFiles is a listdencheva2010-12-171-0/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11451 fe389314-cf27-0410-b35b-8c050e845b92
* Initial fix for #637, will change this later.dencheva2010-12-132-3/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11373 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed getNrefchip for instruments which don't have CCDCHIP keyword. Tested ↵dencheva2010-12-131-40/+46
| | | | | | for all instrument/detector configurations git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11372 fe389314-cf27-0410-b35b-8c050e845b92
* Added a check for instrument/detector kw when reading tdd coeffs, so that it ↵dencheva2010-11-191-1/+5
| | | | | | does not print out a wrong warning to the screen. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11211 fe389314-cf27-0410-b35b-8c050e845b92
* Reworked getNrefchip to make it independent of the order of the fits extensionsdencheva2010-11-191-18/+42
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11210 fe389314-cf27-0410-b35b-8c050e845b92
* Marked tsr docs as 'DRAFT'dencheva2010-11-042-10/+11
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11031 fe389314-cf27-0410-b35b-8c050e845b92
* Corrected a math blockdencheva2010-11-031-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11025 fe389314-cf27-0410-b35b-8c050e845b92
* Added first draft of 'FITS Conventions' tsrdencheva2010-11-035-0/+301
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11024 fe389314-cf27-0410-b35b-8c050e845b92
* One version string for the packagedencheva2010-10-144-7/+3
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10536 fe389314-cf27-0410-b35b-8c050e845b92
* Changed format again - fits stuff goes in double back ticksdencheva2010-10-141-64/+64
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10535 fe389314-cf27-0410-b35b-8c050e845b92
* Mark up changesdencheva2010-10-141-27/+27
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10534 fe389314-cf27-0410-b35b-8c050e845b92
* The NPOLFILE TSR has been updated to include more testing results. ↵hack2010-10-137-40/+113
| | | | | | Modifications were also made to the figures (cropped extraneous whitespace from the edges) and how they were included to produce a better formatted output. Revisions to the use of math were also made to generate properly formatted equations. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10531 fe389314-cf27-0410-b35b-8c050e845b92
* Added npol tsrdencheva2010-10-1211-2/+244
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10530 fe389314-cf27-0410-b35b-8c050e845b92
* Fixed conf filedencheva2010-10-121-1/+1
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10529 fe389314-cf27-0410-b35b-8c050e845b92
* Updates were made to the headerlet definition to turn it into a TSR when ↵hack2010-10-124-16/+42
| | | | | | creating PDF output and address comments discussed with Nadia. The index for the headerlet tsr was also moved so that it can turned into a TSR PDF while allowing the remainder of the STWCS docs to be turned into a manual. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10528 fe389314-cf27-0410-b35b-8c050e845b92
* Headerlet definition updatesdencheva2010-10-121-6/+24
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10527 fe389314-cf27-0410-b35b-8c050e845b92
* Add more documentationdencheva2010-10-114-11/+67
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10524 fe389314-cf27-0410-b35b-8c050e845b92
* An initial draft of a document defining the headerlet and how it will be ↵hack2010-10-112-0/+136
| | | | | | used has been added to the STWCS Sphinx docs directory. The index was also updated to add this new document to those that get created when Sphinx is run. WJH git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10523 fe389314-cf27-0410-b35b-8c050e845b92
* Delete build directorydencheva2010-10-110-0/+0
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10522 fe389314-cf27-0410-b35b-8c050e845b92
* More docsdencheva2010-10-118-64/+102
| | | | 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-304-43/+61
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10441 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
* Adding documentationdencheva2010-09-309-0/+214
| | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10439 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