| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19338 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
'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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@19030 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
for WFPC2 data.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@16948 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@16261 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15729 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15632 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
(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
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15285 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
deep copies of HSTWCS objects.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15196 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
WCSCORR table extension written out by previous versions of this code. The newly formatted table should contain all the previous table's information (as it gets created using init_wcscorr) and will conform to the latest table format (for now and for whatever that may end up being in the future). This will prevent the code from crashing when processing data updated with previous versions of 'updatewcs()' or 'tweakreg' from the drizzlepac package.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15172 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
stwcs.distortion.utils.output_wcs().
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14965 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
update WCSCORR tables when the input image is a simple FITS file.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14693 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
rows to accomodate all WCS solutions recorded in input image header.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14690 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
| |
- removes use of RMS_RA and RMS_Dec in science header WCS keywords in favor of FITS standard keywords CRDER*
- add default WCSNAME keyword to header created from .wcs2header() method of HSTWCS if that keyword did not exist in input image header
- update WCSCORR table to populate RMS_RA and RMS_Dec columns using CRDER* keywords.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14488 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
not yet been updated with updatewcs. The problems arose from 'DISTNAME' not being present in the header of the image to be updated. The changes were tested using the 'apply_headerlet' user interface (through TEAL) on a WFC3/UVIS image prior to running 'updatewcs.updatewcs()' on it.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14461 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
HDUList objects, and should address the issue raised by Ticket #822. Some additional testing, though, will still need to be performed to verify all aspects of #822 are addressed.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14087 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14062 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14061 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14058 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14056 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14051 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14049 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
archive_as_headerlet
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14047 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14046 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14045 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Exception should be raised when both extnum and hdrname are None
- If both hdrname and extnum are given, check if they match and if not, raise an Exception
- use the correct method to write the headerlet to a file; use clobber
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14044 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14043 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14042 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
especially when previous use of (older) updatewcs code did not define the keyword. A default name of 'DEFAULT' now gets defined when this code runs. This code was tested against the WFC3/IR data from the adrizzle test data.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14017 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
This was found by Ray when running 'tweakreg' on ACS/HRC data, with the problem and subsequent fix being verified using ACS/HRC dither box data.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14014 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
the WCSCORR table.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14007 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This works mostly the same way as the old implementation. The differences are
as follows:
* The headerlet data is no longer needlessly encapsulated in a tar file;
instead it's included directly as an embedded FITS file which should work
fine for most FITS readers (though most won't know what to do with it, and
will just treat it as raw data).
* A few new keywords are included in the HeaderletHDU's header--these keywords
(the XINDn keywords) give the offsets of each HDU embedded in the
HeaderletHDU. Howver, this information is not currently used.
* In addition to the `.headerlet` property the `.hdulist` property is
provided, which returns the HeaderletHDU's contents as a normal `HDUList`
object instead of a `Headerlet` object.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13979 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- added fit keywords (rms*,nmatch,catalog) to SIPWCS header in headerlet for use in updating WCSCORR
- changed definition of FIT_KW to get values from SCI header, not PRIMARY
- changed calls to finding blank rows to also use rows with wcs_id='0.0' as a blank row. This also required updating the logic to support multiple selection criteria
- implemented update of WCSCORR by wcskey value
- get FIT keywords from full header, not just HSTWCS header
- only update columns which have been defined (for backward compatiblity with WCSCORR tables with columns that have since been removed from the definition)
These changes have been tested to insure that the RMS values get updated in the WCSCORR table properly from the SCI image as well as from the headerlet. They also make sure the headerlet gets updated with the correct values.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13971 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
updated to reflect the added support for filename input formats provided by 'parseinput'.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13965 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
|
|
| |
- added a check to 'output' par value in TEAL interface to 'write_headerlet'
- implemented use of 'parseinput' in TEAL interface for 'write_headerlet'
- moved 'output' and 'clobber' parameters closer to top of par list in TEAL interface for 'write_headerlet'
- implemented use of 'parseinput' to interpret input filename(s) for 'write_headerlet' and 'extract_headerlet' providing support for additional input modes
- fixed logic problems with defining output filename in 'write_headerlet' and 'extract_headerlet'
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13964 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
|
|
|
| |
right syntax when calling HSTWCS for the alternate WCS.
In addition, implemented support for running 'extract_headerlet' and 'write_headerlet' on a list of input filenames in addition to a single filename or single HDUList.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13962 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
WCSNAME is missing from the image PRIMARY WCS. This required adding a new function to define the default WCSNAME value based on the IDCTAB so that it could be called upon initialization of the table, and when updating it if WCSNAME is missing.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13961 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
| |
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13941 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
extension instead of looping over all extensions
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13940 fe389314-cf27-0410-b35b-8c050e845b92
|
|
|
|
|
|
| |
when attach is true
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13938 fe389314-cf27-0410-b35b-8c050e845b92
|