Changeset 15543 for trunk/Ohana/src/getstar/src/write_getstar_ps1_dev_2.c
- Timestamp:
- Nov 9, 2007, 11:14:10 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/getstar/src/write_getstar_ps1_dev_2.c
r15539 r15543 39 39 secfilt = catalog[0].secfilt; 40 40 41 if (Nsec_c0 == -1) {42 fprintf (stderr, "invalid photcode %s\n", photcode[0].name);43 exit (2);44 }45 46 41 // do we skip any of catalog entries? (probably not) 47 42 for (i = 0; i < catalog[0].Naverage; i++) { … … 63 58 output[i].photcode = code_c0; 64 59 65 output[i].mag = secfilt[i*Nsecfilt + Nsec_c0].M;66 67 60 // It is not necessary for the output color terms to be average values. If they are, 68 61 // we grab them quickly & easily from the secfilt table. If not, then we need to scan 69 62 // the list of measures to find the value of interest 63 64 // find primary magnitude 65 if (Nsec_c0 != -1) { 66 output[i].mag = secfilt[i*Nsecfilt + Nsec_c0].M; 67 } else { 68 output[i].mag = NAN; 69 offset = average[i].offset; 70 for (m = 0; m < average[i].Nm; m++) { 71 if (measure[offset + m].photcode == code_c0) { 72 output[i].mag = PhotRel (&measure[offset + m], &average[i], &secfilt[i*Nsecfilt]); 73 break; 74 } 75 } 76 } 70 77 71 78 // find color term 1
Note:
See TracChangeset
for help on using the changeset viewer.
