The functions in this module manage alternate WCS’s in a header.
Copy the primary WCS to the hader as an alternate WCS with wcskey and name WCSNAME. It loops over all extensions in ‘ext’
Parameters : | |
---|---|
fname: string or pyfits.HDUList :
ext: an int, a tuple, a python list of integers or a python list of tuples (e.g.(‘sci’,1)) :
wcskey: string “A”-“Z” or ” “ :
wcsname: string :
clobber: boolean :
|
See also
Copy a WCS with key “WCSKEY” to a primary WCS
Reads in a WCS defined with wcskey and saves it as the primary WCS. If clobber is False, writes out new files whose names are the original names with an attached 3 character string _’WCSKEY’_. Otherwise overwrites the files. Goes sequentially through the list of extensions The WCS is restored from the ‘SCI’ extension but the primary WCS of all extensions with the same EXTVER are updated.
Parameters : | |
---|---|
f: string or pyfits.HDUList object :
ext: an int, a tuple, a python list of integers or a python list :
wcskey: a charater :
wcsname: string (optional) :
clobber: boolean :
|
See also
wcsutil.archiveWCS
Delete an alternate WCS defined with wcskey. If wcskey is ” ” try to get a key from WCSNAME.
Parameters : | |
---|---|
fname: sting or a pyfits.HDUList object : ext: an int, a tuple, a python list of integers or a python list of tuples (e.g.(‘sci’,1)) :
wcskey: one of ‘A’-‘Z’ or ” “ : wcsname: string :
|
Returns a dictionary of wcskey: WCSNAME pairs
Parameters : | |
---|---|
header: pyfits.Header : |
Returns a list of characters used in the header for alternate WCS description with WCSNAME keyword
Parameters : | |
---|---|
hdr: pyfits.Header : |
Returns a list of characters which are not used in the header with WCSNAME keyword. Any of them can be used to save a new WCS.
Parameters : | |
---|---|
header: pyfits.Header : |
Returns next available character to be used for an alternate WCS
Parameters : | |
---|---|
header: pyfits.Header : |
If WCSNAME is found in header, return its key, else return None. This is used to update an alternate WCS repeatedly and not generate new keys every time.
Parameters : | |
---|---|
header: pyfits.Header : wcsname: str :
|