Changeset 6683 for trunk/Ohana/src/opihi/dvo/gstar.c
- Timestamp:
- Mar 26, 2006, 10:46:32 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/gstar.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/gstar.c
r6642 r6683 72 72 catalog.filename = skylist[0].filename[0]; 73 73 switch (lock_catalog (&catalog, LCK_SOFT)) { 74 case 2:75 unlock_catalog (&catalog);76 case 0:77 return (FALSE);74 case 2: 75 unlock_catalog (&catalog); 76 case 0: 77 return (FALSE); 78 78 } 79 79 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; … … 92 92 /* stars are not guaranteed to be sorted in RA or in DEC, so first sort the list */ 93 93 for (i = 0; i < Nstars; i++) { 94 RA[i] = catalog.average[i].R _PS;95 DEC[i] = catalog.average[i].D _PS;94 RA[i] = catalog.average[i].R; 95 DEC[i] = catalog.average[i].D; 96 96 N1[i] = i; 97 97 } … … 138 138 k = N1[i]; 139 139 if (!QUIET) { 140 fprintf (GetOutfile(), "star: %d\n", k);141 fprintf (GetOutfile(), "%9.5f %9.5f %3d of %3d %4.1f %5d\n", catalog.average[k].R_PS, catalog.average[k].D_PS,142 catalog.average[k].Nm, catalog.average[k].Nn + catalog.average[k].Nm,143 0.01*catalog.average[k].Xp, catalog.average[k].code);140 fprintf (GetOutfile(), "star: %d\n", k); 141 fprintf (GetOutfile(), "%9.5f %9.5f %3d of %3d %4.1f %5d\n", catalog.average[k].R, catalog.average[k].D, 142 catalog.average[k].Nm, catalog.average[k].Nn + catalog.average[k].Nm, 143 0.01*catalog.average[k].Xp, catalog.average[k].code); 144 144 145 /* filter names -- primary code is 0 in this function */146 for (j = 0; j < Nsec + 1; j++) {147 code = GetPhotcodebyNsec (j);148 fprintf (GetOutfile (), "%s ", code[0].name);149 }150 fprintf (GetOutfile (), "\n");151 152 /* average mags */153 print_value (GetOutfile(), catalog.average[k].M_PS, catalog.average[k].M_PS);154 for (j = 0; j < Nsec; j++) print_value (GetOutfile(), catalog.secfilt[j + Nsec*k].M_PS, catalog.secfilt[j + Nsec*k].M_PS);155 fprintf (GetOutfile(), "\n");156 157 /* average mag errors */158 print_value (GetOutfile(), catalog.average[k].dM_PS, catalog.average[k].dM_PS);159 for (j = 0; j < Nsec; j++) print_value (GetOutfile(), catalog.secfilt[j + Nsec*k].dM_PS, catalog.secfilt[j + Nsec*k].dM_PS);160 fprintf (GetOutfile(), "\n");161 162 /* average mag chisq */163 print_value (GetOutfile(), pow (10.0, 0.01*catalog.average[k].Xm), catalog.average[k].Xm);164 for (j = 0; j < Nsec; j++) print_value (GetOutfile(), pow (10.0, 0.01*catalog.secfilt[j + Nsec*k].Xm), catalog.secfilt[j + Nsec*k].Xm);165 fprintf (GetOutfile(), "\n");145 /* filter names -- primary code is 0 in this function */ 146 for (j = 0; j < Nsec + 1; j++) { 147 code = GetPhotcodebyNsec (j); 148 fprintf (GetOutfile (), "%s ", code[0].name); 149 } 150 fprintf (GetOutfile (), "\n"); 151 152 /* average mags */ 153 print_value (GetOutfile(), catalog.average[k].M, catalog.average[k].M); 154 for (j = 0; j < Nsec; j++) print_value (GetOutfile(), catalog.secfilt[j + Nsec*k].M_PS, catalog.secfilt[j + Nsec*k].M_PS); 155 fprintf (GetOutfile(), "\n"); 156 157 /* average mag errors */ 158 print_value (GetOutfile(), catalog.average[k].dM, catalog.average[k].dM); 159 for (j = 0; j < Nsec; j++) print_value (GetOutfile(), catalog.secfilt[j + Nsec*k].dM_PS, catalog.secfilt[j + Nsec*k].dM_PS); 160 fprintf (GetOutfile(), "\n"); 161 162 /* average mag chisq */ 163 print_value (GetOutfile(), pow (10.0, 0.01*catalog.average[k].Xm), catalog.average[k].Xm); 164 for (j = 0; j < Nsec; j++) print_value (GetOutfile(), pow (10.0, 0.01*catalog.secfilt[j + Nsec*k].Xm), catalog.secfilt[j + Nsec*k].Xm); 165 fprintf (GetOutfile(), "\n"); 166 166 } 167 167
Note:
See TracChangeset
for help on using the changeset viewer.
