IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 93


Ignore:
Timestamp:
Jul 23, 2003, 3:36:31 PM (23 years ago)
Author:
eugene
Message:

update to convert old-style photometry file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/photreg/output.c

    r90 r93  
    9696  fits_define_table_column (&theader, "A12",  "C1_NAME",    "filter 1 for color",        "");
    9797  fits_define_table_column (&theader, "A12",  "C2_NAME",    "filter 2 for color",        "");
     98  fits_define_table_column (&theader, "I6",   "NSTARS",     "number of stars used",      "");
     99  fits_define_table_column (&theader, "I6",   "NTIMES",     "number of unique images",   "");
    98100  fits_define_table_column (&theader, "A12",  "FILTER",     "filter",                    "");
    99101  fits_define_table_column (&theader, "A70",  "LABEL",      "data label",                "");
     
    109111  fits_modify (&theader, "TNULL8",  "%s", 1, "NULL");  /* C1_NAME    */
    110112  fits_modify (&theader, "TNULL9",  "%s", 1, "NULL");  /* C2_NAME    */
    111   fits_modify (&theader, "TNULL10", "%s", 1, "NULL");  /* FILTER     */
    112   fits_modify (&theader, "TNULL11", "%s", 1, "NULL");  /* LABEL      */
     113  fits_modify (&theader, "TNULL10", "%s", 1, "NULL");  /* NSTARS     */
     114  fits_modify (&theader, "TNULL11", "%s", 1, "NULL");  /* NTIMES     */
     115  fits_modify (&theader, "TNULL12", "%s", 1, "NULL");  /* FILTER     */
     116  fits_modify (&theader, "TNULL13", "%s", 1, "NULL");  /* LABEL      */
    113117
    114118  fits_modify (&theader, "TNVAL1",  "%s", 1, "Inf");   /* ZP_OBS     */
     
    121125  fits_modify (&theader, "TNVAL8",  "%s", 1, "NA");    /* C1_NAME    */
    122126  fits_modify (&theader, "TNVAL9",  "%s", 1, "NA");    /* C2_NAME    */
    123   fits_modify (&theader, "TNVAL10", "%s", 1, "NA");    /* FILTER     */
    124   fits_modify (&theader, "TNVAL11", "%s", 1, "NA");    /* LABEL      */
     127  fits_modify (&theader, "TNVAL10", "%s", 1, "NA");    /* NSTARS     */
     128  fits_modify (&theader, "TNVAL11", "%s", 1, "NA");    /* NTIMES     */
     129  fits_modify (&theader, "TNVAL12", "%s", 1, "NA");    /* FILTER     */
     130  fits_modify (&theader, "TNVAL13", "%s", 1, "NA");    /* LABEL      */
    125131
    126132  /* create table, add data values */
     
    141147    line = fits_table_print (&table, newdata[0].ZP, newdata[0].ZPo, newdata[0].dZP,
    142148              newdata[0].K, newdata[0].X, startstr, stopstr,
    143               c1, c2, code, newdata[0].label);
     149              c1, c2, newdata[0].Nmeas, newdata[0].Ntime, code, newdata[0].label);
    144150    if (!fits_add_rows (&table, line, 1, strlen(line))) escape (IGNORE, (FILE *) NULL, (char *) NULL, NULL, "error writing dataline");
    145151
Note: See TracChangeset for help on using the changeset viewer.