Changeset 29819
- Timestamp:
- Nov 24, 2010, 12:04:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101103/Ohana/src/relastro/src/GetAstromError.c
r27581 r29819 2 2 3 3 float GetAstromError (Measure *measure, int mode) { 4 4 //BIG HACKXXXXXXXX 5 return 0.1; 5 6 PhotCode *code; 6 7 float dPobs, dPsys, dPtotal, dM, AS, MS; 7 8 8 switch (mode) { 9 9 case ERROR_MODE_RA: … … 19 19 abort(); 20 20 } 21 22 21 /* the astrometric errors are not being carried yet (but should be!) */ 23 22 /* we use the photometric mag error as a weighting term */ … … 28 27 dPsys = code[0].astromErrSys; 29 28 dM = measure[0].dM; 30 31 29 dPtotal = sqrt(SQ(dPsys) + AS*SQ(dPobs) + MS*SQ(dM)); 32 30 … … 35 33 36 34 dPtotal = MAX (dPtotal, MIN_ERROR); 37 38 35 return (dPtotal); 39 36 }
Note:
See TracChangeset
for help on using the changeset viewer.
