| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
to the setup_refactoring branch (however, coords, pysynphot, and pywcs are still being pulled from the astrolib setup_refactoring branch. Will have to do that separately then update the svn:externals)
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13225 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
to work on simple FITS images as well as MEF files. WJH
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13141 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
header which resulted in kw duplication after the headerlet was applied. Added code which cleans the primary header before applying the headerlet.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13052 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
allow applying a headerlet without creating and updating a wcscorr table. May be useful not only for testing ...
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13051 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13049 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13048 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13047 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13046 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13000 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
updating a simple FITS file.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12801 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
WCSCORR table to (try to) insure that the last row will always be blank for use in initializing the new empty rows which get added to the old table.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12718 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
rows that gets added each time, and to maintain the same header information from one update to the next.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12715 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- add EXTVER keyword to WCSCORR table extension in 'init_wcscorr()'
- revised how pad rows are defined when creating a WCSCORR table
- added logic to only work with NPOLFILE and D2IMFILE related keywords in input files that have been updated to use those reference files
- added logic to only delete WCS's from IMAGE extensions to avoid problems of trying to delete a WCS from a table extension
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12710 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
initializing the WCSCORR table, and in fact, the entire header by archiving the original WCS values if no WCS with wcskey='O' has already been created. This affects the usage of the 'init_wcscorr()' function.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12589 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
rows (pad_rows) to add to the table when there are not enough to record the new WCS solutions.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12529 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
extension version numbers (I should look into fixing that). This makes sure that each headerlet HDU appended to a file is given a sensible extension version by default.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12459 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
'wcscorr.find_wcscorr_row()' was modified to strip blank characters from the end of each element before comparing. This allows the '==' comparison to actually match a blank string and find the rows to be filled. The fix allows the WFC3/IR demo datasets (8 WFC3/IR images) to be processed by betadrizzle.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12456 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
| |
sensibly. It allows users to specify a name for the headerlet generated from
a file, but if hdrname is not specified a sensible default is still used.
Removed support for the destim arg from `applyHeaderlet()`, as it was not used
anywhere.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12446 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
'update_wcscorr'.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12402 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
| |
of the file's HDU list. And it now also applies the new headerlet to the HDU
list under that, and update's the WCSCORR table with rows for the WCSs in the
new headerlet. This should achieve most of the basic requirements for
headerlet functionality, though I still need to look into reversing the
application of a headerlet...
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12398 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
| |
now apply WCS keywords to the WCSCORR table even from extensions in a different
file from the one containing the WCSCORR table. This might break any existing
code using either it, or `archive_wcs_file()`.`
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12397 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
works what I believe to be 'correctly'--it applies all existing WCSs from the SCI extension headers to the new WCSCORR table in the correct order (wcs_key w/ 'O' first; extver).
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12393 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
| |
distortion model keywords to the header using the '.update()' method instead of extending the header with a CardList. This corrected a problem with the CardList not fully updating the original header making the appended cards unaccessible using the dictionary lookup syntax.
The logic for using the 'readModel()' method of HSTWCS was also improved to not try and read the IDCModel when no 'idctab' had been specified in the header.
Finally, a small bug was fixed in the 'wcscorr' module for recognizing what rows are available for being updated so that the update will actually occur.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12392 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
betadrizzle and moved them into the stwcs.wcsutil package. Also cleaned up some imports and cleaned up some whitespace--might want to view this diff with ignore-whitespace.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12388 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
| |
* Had to add the standard NAXIS, BITPIX, etc. header keywords in order for
pyfits to correctly determine the HeaderletHDU data size.
* Added a monkey patch so that pyfits can recognize the HeaderletHDU type
when opening a FITS file; naturally this module has to be imported for
headerlet support to be available.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12387 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Moved several functions into the Headerlet class
* Started work on the HeaderletHDU class--this is a non-standard extension
HDU type for representing the tarred headerlet file that is appended to a
file that has that headerlet applied to it. I originally wanted the
`HeaderletHDU.data` attribute to transparently return the Headerlet object
itself (rather than a long binary string), but that doesn't work due to the
way pyfits currently writes files. So instead the Headerlet object can be
accessed from the `HeaderletHDU.headerlet` attribute.
* Other miscellaneous cleanup
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12346 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12320 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
issues: namely, makes recognition of non-HST data more general (slightly) and only applies distortion model in all_sky2pix when it is present. The first change should allow HSTWCS to be run on data created with IRAF's artdata package/task.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12216 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12194 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12193 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12192 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12183 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
WCS with this key already exists.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12134 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12074 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12069 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12060 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
'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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12056 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12055 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12053 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12052 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12005 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
| |
observations.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11900 fe389314-cf27-0410-b35b-8c050e845b92
|