Changeset 9 for trunk/Ohana/src/imregister/detrend/output.c
- Timestamp:
- Dec 10, 2002, 1:05:35 AM (24 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/imregister/detrend/output.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/imregister/detrend/output.c
r7 r9 49 49 50 50 int DumpFitsTable (char *filename, DetReg *detdata, Match *match, int Nmatch) { 51 # define NL 45352 51 53 52 Header header, theader; … … 56 55 DetReg *newdata; 57 56 FILE *f; 58 char *startstr, *stopstr, *regstr, line[NL], key[33];57 char *startstr, *stopstr, *regstr, *line, key[33]; 59 58 char *filtstr, *typestr, *ccdstr, *datestr, *p; 60 59 int i; … … 105 104 fits_modify (&theader, "TNULL12", "%s", 1, ""); 106 105 107 fits_modify (&theader, "TBNA 1", "%s", 1, "NA");108 fits_modify (&theader, "TBNA 2", "%s", 1, "NA");109 fits_modify (&theader, "TBNA 3", "%s", 1, "NA");110 fits_modify (&theader, "TBNA 4", "%s", 1, "NA");111 fits_modify (&theader, "TBNA 5", "%lf", 1, (float) -2);112 fits_modify (&theader, "TBNA 6", "%s", 1, "NA");113 fits_modify (&theader, "TBNA 7", "%s", 1, "NA");114 fits_modify (&theader, "TBNA 8", "%s", 1, "NA");115 fits_modify (&theader, "TBNA 9", "%d", 1, -2);116 fits_modify (&theader, "TBNA 10", "%d", 1, -2);117 fits_modify (&theader, "TBNA 11", "%s", 1, "NA");118 fits_modify (&theader, "TBNA 12", "%s", 1, "NA");106 fits_modify (&theader, "TBNAN1", "%s", 1, "NA"); 107 fits_modify (&theader, "TBNAN2", "%s", 1, "NA"); 108 fits_modify (&theader, "TBNAN3", "%s", 1, "NA"); 109 fits_modify (&theader, "TBNAN4", "%s", 1, "NA"); 110 fits_modify (&theader, "TBNAN5", "%lf", 1, (float) -2); 111 fits_modify (&theader, "TBNAN6", "%s", 1, "NA"); 112 fits_modify (&theader, "TBNAN7", "%s", 1, "NA"); 113 fits_modify (&theader, "TBNAN8", "%s", 1, "NA"); 114 fits_modify (&theader, "TBNAN9", "%d", 1, -2); 115 fits_modify (&theader, "TBNAN10", "%d", 1, -2); 116 fits_modify (&theader, "TBNAN11", "%s", 1, "NA"); 117 fits_modify (&theader, "TBNAN12", "%s", 1, "NA"); 119 118 120 119 /* create table, add data values */ … … 142 141 filtstr = filterhash[newdata[0].filter]; 143 142 ccdstr = ccds[newdata[0].ccd]; 144 snprintf (line, NL, "%32s%20s%20s%20s%7.1f%10s%10s%7s%3d%3d%64s%256s", 145 key, startstr, stopstr, regstr, newdata[0].exptime, 146 typestr, filtstr, ccdstr, 147 newdata[0].Nentry, newdata[0].Norder, 148 newdata[0].label, newdata[0].filename); 143 144 line = fits_table_print (&table, key, startstr, stopstr, regstr, 145 newdata[0].exptime, typestr, filtstr, ccdstr, 146 newdata[0].Nentry, newdata[0].Norder, 147 newdata[0].label, newdata[0].filename); 148 149 149 fits_add_rows (&table, line, 1, strlen(line)); 150 free (line); 150 151 free (startstr); 151 152 free (stopstr);
Note:
See TracChangeset
for help on using the changeset viewer.
