This task will update the header of ACS file(s) with the names of the NPOLFILE and D2IMFILE reference files for use with the new C version of MultiDrizzle (astrodrizzle).
updatenpol: Update the header of ACS file(s) with the names of new NPOLFILE and D2IMFILE reference files for use with the C version of MultiDrizzle (astrodrizzle).
License: | |
---|---|
http://www.stsci.edu/resources/software_hardware/pyraf/LICENSE |
|
Usage: | |
This task can be run from the operating system command line with: updatenpol [options] input [refdir] |
|
Command-line Options: | |
|
Warning
It will ask for the names of the NPOLFILE and D2IMFILE for EACH separate INPUT file when the option -i has been specified.
Example: | |
---|---|
1. This command will update all the FLT files in the current directory with the new NPOLFILE and D2IMFILE reference files found in the ‘myjref’ directory as defined in the environment: updatenpol *flt.fits myjref$
|
|
Compatability with MultiDrizzle: | |
The new version of MultiDrizzle (astrodrizzle) and updatewcs only work with the new NPOLFILE reference file for the DGEO correction (to replace the use of DGEOFILE). In fact, astrodrizzle has been extensively modified to prompt the user with a very lengthy explanation on whether it should stop and allow the user to update the header or continue without applying the DGEO correction under circumstances when the NPOLFILE keyword can not be found for ACS. |
Search a list of files for one that matches the detector specified.
Search a list of files for one that matches the configuration of detector and filters used.
Print out syntax help for running updatenpol
Teal interface for running this code.
Updates headers of files given as input to point to the new reference files NPOLFILE and D2IMFILE required with the new C version of MultiDrizzle.
Parameters : | |
---|---|
input : string or list
refdir : string
local : boolean
interactive : boolean
updatewcs : boolean
|
Notes
Warning
This program requires access to the jref$ directory in order to evaluate the DGEOFILE specified in the input image header. This evaluation allows the program to get the information it needs to identify the correct NPOLFILE.
The use of this program now requires that a directory be set up with all the new NPOLFILE and D2IMFILE reference files for ACS (a single directory for all files for all ACS detectors will be fine, much like jref). Currently, all the files generated by the ACS team has initially been made available at:
/grp/hst/acs/lucas/new-npl/
The one known limitation to how this program works comes from confusion if more than 1 file could possibly be used as the new reference file. This would only happen when NPOLFILE reference files have been checked into CDBS multiple times, and there are several versions that apply to the same detector/filter combination. However, that can be sorted out later if we get into that situation at all.
Examples
A set of associated images specified by an ASN file can be updated to use the NPOLFILEs and D2IMFILE found in the local directory defined using the myjref$ environment variable under PyRAF using:
>>>import updatenpol
>>>updatenpol.update('j8bt06010_asn.fits', 'myref$')
Another use under Python would be to feed it a specific list of files to be updated using:
>>> updatenpol.update(['file1_flt.fits','file2_flt.fits'],'myjref$')
Files in another directory can also be processed using:
>>> updatenpol.update('data$*flt.fits','../new/ref/')