| ahedit | astcat | ahedit |
ahedit -- Add wcs and / or standard keywords to the image header
ahedit images imsurveys
Ahedit adds an approximate FITS WCS and / or a standard set of keyword value pair to the list of images images extracted from the image survey imsurveys . If hupdate = no the image edits are listed but not implemented.
If wcsedit = yes then either an existing DSS WCS is converted to a FITS WCS or an approximate FITS WCS is added to the input image. If imsurveys is undefined the current WCS status and WCS information is read from the image surveys configuration file imdb . If imsurveys is undefined the WCS status and coordinate information are read from wcs parameter and the default WCS parameter set awcspars . In both cases the quantities of interest are the values, units, and coordinates system of the reference point wxref , wyref , wraref , wdecref , wraunits , wdecunits , and wsystem , and the image scale, orientation, and projection information wxmag , wymag , wxrot , wyrot , and wproj . For more information on how these quantities are defined in the image surveys configuration file or the awcspars parameter set type "help imsurveys" and / or "help awcspars".
If hdredit = yes then a standard set of keyword equal value pairs are added to the image headers. If imsurveys is defined the standard keyword name and value pairs are read from the image surveys configuration file. If imsurveys is undefined they are read from the standard image keywords parameter set aimpars . In both cases the parameters divide into two groups, those concerned with locating stars in the image and computing accurate pixel centers edatamin , edatamax , egain , and erdnoise , and those required for transforming mean place coordinates to observed plate coordinates, observat , \Iesitelng, esitelat , esitealt , esitetz , emjdobs , ewavlen , etemp , and epress . New keyword values are only added to the header if keywords of the same name do not already exist, and if appropriate values for the keywords exists, i.e. "INDEF" valued parameters will not be added to the header.
If update = yes then the fIawcspars, and aimpars parameter sets are updated at task termination. If verbose = yes then detailed status reports are issued as the task executes.
1. List the header edits required to create a FITS WCS from a DSS WCS for a set of images extracted from the dss1@cadc.
cl> ahedit @imlist dss1@cadc hupdate- wcsedit+ hdredit-
2. Repeat the previous example but actually do the edits.
cl> ahedit @imlist dss2@cadc hupdate+ wcsedit+ hdredit-
3. Repeat the previous example but get the current WCS stats from the user rather than from the image survey configuration file.
cl> ahedit @imlist "" hupdate+ wcsedit+ wcs=dss hdredit-
4. Add an approximate FITS WCS to an image for which the coordinates of the image center in hours and degrees are stored in the keywords RA and DEC, the epoch of the image center coordinates is stored in EQUINOX, the image scale is 0.261" per pixel and east is left and north is down.
cl> ahedit image "" wcsedit+ wcs="none" wraref="RA" wdecref="DEC" \ wxmag=0.26 wymag=0.26 wxrot=270 wyrot=90 wsystem="EQUINOX" hdredit-
5. Add the standard keyword name and values pairs for a list of images extracted from the dss1@cadc.
cl> ahedit @imlist dss1@cadc hupdate+ wcsedit- hdredit+
6. Store the CCD saturation limit in the image header in the EDATAMAX keyword. Set the minimum good data limit at the same time.
cl> ahedit image "" hupdate+ wcsedit- hdredit+ edatamin=-100.0 \ edatamax=32000
aslist, adumpim, aregpars, awcspars, aimpars