Changeset 5144 for trunk/Ohana/doc/www/html/DVO/addstar.htm
- Timestamp:
- Sep 27, 2005, 7:43:49 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/doc/www/html/DVO/addstar.htm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/doc/www/html/DVO/addstar.htm
r4726 r5144 1 <meta name=file content=addstar> 2 <meta name=title content=addstar> 3 <meta name=page content=addstar> 4 5 <p> 6 This program takes a photometry file, with astrometry, provided by 7 earlier routines and incorporates the stellar measurements into the 8 photometry database. This routine does NOT try to calibrate or check 9 the photometry, nor does it try to improve the coordinate 10 determinations or calculate chisquares for position or photometry - 11 those tasks are performed by other routines. 12 13 <p> 14 Addstar starts by loading in the photometry file and converting the 15 pixel coordinates to sky coordinates using the astrometry information 16 in the header of the file. It also gets the detection limits and 17 stores the image astrometry information. 18 19 <p> 20 Next, addstar determines which of all the previous images overlaps 21 with this image and also which of the catalog regions overlaps with 22 this image. 23 24 <p> 25 Addstar considers each catalog region in turn, and compares the 26 positions of stars in the catalog with stars in the image. If a 27 catalog star is detected, a new measurement is added to the catalog. 28 If a catalog star is not detected, but is in the field of view of this 29 image, the detection limit for this image is added to the list of 30 measurements as an upper limit. If the image contains a star which is 31 not already included in the catalog, the star is added to the catalog, 32 and all previous images are checked to see if they included this 33 location. If so, upper limits are added to the list of measurements. 34 35 <p> 36 To deal with blended images, we have taken the philosophy that all 37 measurements compatible with the coordinates of a given star should be 38 included in the list of measurements. This assumes that programs or people 39 downstream will figure out which is the "correct" measurement. To 40 this end, if a catalog star is consistent with multiple measurements, 41 they are all added to the catalog measurement and the measurements are 42 given a flag to say that there was blending in the catalog (ie, it is 43 probably the catalog star which is a blend). If multiple catalog 44 stars are consistent with the same image star, that measurement is 45 added to each catalog star, and given a flag to say that there was 46 blending on the image. 47 48 <p> 49 After all catalogs have been checked, updated, and written to disk, 50 the image is added to the database of images. 51 52 <p> 53 see <a href=database.html> DVO database </a> for discussion of the 54 database storage format. 55 56 <hr> 57 58 <h2> Usage </h2> 59 60 <pre> 61 addstar (filename) 62 addstar -cat (catalog) 63 addstar -ref (filename) 64 </pre> 65 66 <p> 67 In the first form, addstar loads the photometry information for a 68 single image into the database. The file must be in one of the Elixir 69 cmp/smp/smf formats, and must have been astrometrized (eg, with 70 gastro, gastro2, and/or mosastro). The file must also be provided 71 with a valid photcode in the header (keyword PHOTCODE) or the photcode 72 must be supplied as an option to addstar (see below). The photcode 73 must be listed in the photcode table (see config variable 74 PHOTCODE_FILE). In the case that the image has been astrometrized 75 with mosastro (two-level mosaic astrometry), the corresponding mosaic 76 header unit must be supplied as an option (see below). 77 78 <p> 79 In the second form, addstar will load photometry from the specified 80 reference catalog, located in a known location, and will load it into 81 the database. Allowed catalog names are: <tt> USNO, GSC, 2MASS, 82 2MASS-ALLSKY, 2MASS-DR </tt>. Note that USNO corresponds to the 83 USNO-A catalog, 2MASS corresponds to the 2MASS-ALLSKY catalog. It is 84 necessary to have defined an appropriate photcode for the given 85 catalog. The following photcodes are expected to exist: 86 87 <table> 88 <tr><th> catalog </th><th> allowed photcodes </th></tr> 89 <tr><td> GSC </td><td> GSC_M </th></tr> 90 <tr><td> USNO </td><td> USNO_RED, USNO_BLUE </th></tr> 91 <tr><td> 2MASS* </td><td> 2MASS_J, 2MASS_H, 2MASS_K </th></tr> 92 </table> 93 94 When more than one photcode is allowed, one must be selected; there 95 are no defaults in that case. <em>It is advised that addstar -cat be 96 used with a restricted region of the sky; the default behavior will 97 load the reference catalog for the entire sky into the DB!</em> 98 99 <p> 100 In the third form, addstar will load data from the specified ASCII 101 text file with a fixed format. The file must contain lines with one 102 line per star. The first four columns must contain the values RA, 103 DEC, Magnitude, Magnitude error. The RA and DEC must be in J2000 104 decimal degrees. Blank lines are allowed, and lines may be commented 105 with the hash sign (#). The provided photometry must all be for a 106 single photcode, which must be provided as a command-line option. 107 108 <h2> Additional Options </h2> 109 110 <pre> 111 -region ra ra dec dec : only add data in specified region (-ref mode only) 112 -p (photcode) : specify photcode (override header) 113 -time (YYYY/MM/DD,HH:MM:SS) : specify date/time (override header) 114 -mosaic (filename) : identify associated mosaic frame for chip image 115 -fits : input file is FITS table, not TEXT table 116 -existing-regions : only add measurements to existing catalog files 117 -only-match : only add measurements to existing objects 118 -missed : skipped 'missed' entries 119 -replace : replace time/photcode measurements (no duplication) 120 -image : only insert image data 121 -cal : perform zero-point calibration 122 -skyprobe : specify skyprobe mode 123 -2massquality : define 2MASS quality flags to keep 124 -accept : accept bad astrometry from header 125 -force : force read of database with inconsistent info 126 -v : verbose mode 127 -dump (mode) : output test data 128 -help : print this list 129 -h : print this list 130 </pre> 131 132 133 <h2> Elixir Configuration Data </h2> 134 135 addstar uses the following Elixir configuration variables: 136 137 <ul> 138 <li> EXPTIME-KEYWORD : header keyword defining exposure time 139 <li> DATE-KEYWORD : header keyword defining the date 140 <li> DATE-MODE : mode for header date information: use a combination 141 of Ys, Ms, Ds to specify order. If only 2 digits are specified for 142 the year, numbers greater than 50 are assumed in the 1900s, less than 143 in the 2000s. eg YYYY/MM/DD 144 <li> UT-KEYWORD : header keyword defining UT 145 <li> MJD-KEYWORD : header keyword defining MJD 146 <li> JD-KEYWORD : header keyword defining JD 147 <li> AIRMASS-KEYWORD 148 <li> CCDNUM-KEYWORD 149 <li> ST-KEYWORD 150 151 <li> RADIUS : radius for matches; may have the value "header", in which 152 case the astrometric error listed in the header, along with 153 <tt>NSIGMA</tt> is used to define a match. Otherwise, defines a 154 radius in arcseconds. 155 156 <li> NSIGMA : number of astrometric error sigma to use for match 157 radius (see <tt>RADIUS</tt>). 158 159 <li> XOVERSCAN : used to define valid pixels in the image. subtracted 160 from image NAXIS1 value to define image box. 161 162 <li> YOVERSCAN : used to define valid pixels in the image. subtracted 163 from image NAXIS2 value to define image box. 164 165 <li> ADDSTAR_XMIN : this value, and the following three, are used to 166 define a region on the image where the photometry is considered 167 reliable. Stars outside this region are marked as having poor 168 measurements. 169 170 <li> ADDSTAR_XMAX : see <tt>ADDSTAR_XMIN</tt> 171 <li> ADDSTAR_YMIN : see <tt>ADDSTAR_XMIN</tt> 172 <li> ADDSTAR_YMAX : see <tt>ADDSTAR_XMIN</tt> 173 174 <li> MIN_SN_FSTAT : only include objects in the DB with S/N greater 175 than this value. 176 177 <li> GSCDIR : location of the HST Guide Star Catalog 178 <li> USNO_CDROM : location of the USNO-A data 179 <li> 2MASS_DIR_AS : location of the 2MASS allsky data 180 <li> 2MASS_DIR_DR2 : location of the 2MASS DR2 data 181 182 2MASS, USNO, and GSC are all loaded from their idiosyncratic formats. 183 184 <li> GSCFILE : location of the GSC layout file (for GSC and ptolemy) 185 <li> CATDIR : location of the ptolemy data 186 <li> IMAGE_CATALOG : location of the image database table 187 188 <li> CATMODE : storage mode for the database. may be one of RAW, 189 MEF, SPLIT, MYSQL. SPLIT and MYSQL are currently unsupported. This 190 defines the output format for new tables; the input format is auto-detected. 191 192 <li> CATFORMAT : data format for the database. may be one of LONEOS, 193 ELIXIR, PANSTARRS. 194 195 <li> PHOTCODE_FILE : location of the photcode file describing the 196 photometry system of interest. 197 198 <li> OBSERVATORY-LATITUDE : hard-wired observatory latitude. used for 199 precision airmass for skyprobe. <em> should be replaced with a more 200 sophisticated approach</em> 201 202 <li> SUBPIX_DATAFILE : table for subpixel structure corrections (skyprobe) 203 204 <li> IMAGE_CATALOG_TEMPLATE : deprecated, was used to supply a FITS 205 header template 206 <li> CATALOG_TEMPLATE : deprecated, was used to supply a FITS 207 header template 208 </ul>
Note:
See TracChangeset
for help on using the changeset viewer.
