Changeset 9
- Timestamp:
- Dec 10, 2002, 1:05:35 AM (23 years ago)
- Location:
- trunk/Ohana/src/imregister
- Files:
-
- 4 edited
-
detrend/args.detsearch.c (modified) (1 diff)
-
detrend/criteria.c (modified) (1 diff)
-
detrend/output.c (modified) (4 diffs)
-
include/detrend.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/imregister/detrend/args.detsearch.c
r3 r9 160 160 remove_argument (N, &argc, argv); 161 161 base.LabelSelect = TRUE; 162 } 163 base.NameSelect = FALSE; 164 if (N = get_argument (argc, argv, "-name")) { 165 remove_argument (N, &argc, argv); 166 base.Name = strcreate (argv[N]); 167 remove_argument (N, &argc, argv); 168 base.NameSelect = TRUE; 162 169 } 163 170 -
trunk/Ohana/src/imregister/detrend/criteria.c
r3 r9 21 21 if (criteria[i].EntrySelect && (image[0].Nentry != criteria[i].Entry)) continue; 22 22 if (criteria[i].LabelSelect && (strcasecmp (image[0].label, criteria[i].Label))) continue; 23 if (criteria[i].NameSelect && (strstr (image[0].filename, criteria[i].Name) == (char *) NULL)) continue; 23 24 24 25 if (criteria[i].TimeSelect && (image[0].tstart > criteria[i].tstop)) continue; -
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); -
trunk/Ohana/src/imregister/include/detrend.h
r3 r9 24 24 int EntrySelect; int Entry; 25 25 int LabelSelect; char *Label; 26 int NameSelect; char *Name; 26 27 int ExptimeSelect; float Exptime; 27 28 int TimeSelect; unsigned long tstart, tstop;
Note:
See TracChangeset
for help on using the changeset viewer.
