Changeset 12332 for trunk/Ohana/src/relastro/src/setMrelFinal.c
- Timestamp:
- Mar 8, 2007, 12:21:18 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relastro/src/setMrelFinal.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/src/setMrelFinal.c
r6808 r12332 1 # include "rel phot.h"1 # include "relastro.h" 2 2 3 3 void setMrelFinal (Catalog *catalog) { … … 11 11 12 12 for (i = 0; i < catalog[0].Naverage; i++) { 13 p = (PhotPrimary) ? &catalog[0].average[i].M : &catalog[0].secfilt[PhotNsec*i+PhotSec].M _PS;13 p = (PhotPrimary) ? &catalog[0].average[i].M : &catalog[0].secfilt[PhotNsec*i+PhotSec].M; 14 14 *p = NO_MAG; 15 p = (PhotPrimary) ? &catalog[0].average[i].dM : &catalog[0].secfilt[PhotNsec*i+PhotSec].dM _PS;15 p = (PhotPrimary) ? &catalog[0].average[i].dM : &catalog[0].secfilt[PhotNsec*i+PhotSec].dM; 16 16 *p = NO_MAG; 17 17 q = (PhotPrimary) ? &catalog[0].average[i].Xm : &catalog[0].secfilt[PhotNsec*i+PhotSec].Xm; … … 22 22 23 23 /* select measurements by photcode */ 24 ecode = GetPhotcodeEquivCodebyCode (catalog[0].measure[m]. source);24 ecode = GetPhotcodeEquivCodebyCode (catalog[0].measure[m].photcode); 25 25 if (ecode != photcode[0].code) continue; 26 26 … … 31 31 } 32 32 33 catalog[0].measure[m].Mcal _PS= 0;33 catalog[0].measure[m].Mcal = 0; 34 34 catalog[0].measure[m].flags &= 0xff00; 35 35 catalog[0].measure[m].flags &= ~ID_MEAS_POOR; … … 97 97 /** never use these measurements (wrong photcode, bad time range) */ 98 98 /* skipped via NOCAL, don't mark as skipped */ 99 ecode = GetPhotcodeEquivCodebyCode (catalog[0].measure[m]. source);99 ecode = GetPhotcodeEquivCodebyCode (catalog[0].measure[m].photcode); 100 100 if (ecode != photcode[0].code) continue; 101 101
Note:
See TracChangeset
for help on using the changeset viewer.
