- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/addstar/src/calibrate.c
r16810 r27840 2 2 3 3 static int InternalCal; 4 static int Ncal, NCAL, *Nstar; 4 static int Ncal, NCAL; 5 static off_t *Nstar; 5 6 static float *Mobs, *dMobs, *Mref, *dMref, *Minst; 6 7 … … 13 14 NCAL = 1000; 14 15 ALLOCATE (Mobs, float, NCAL); 15 ALLOCATE (dMobs, float, NCAL);16 ALLOCATE (dMobs, float, NCAL); 16 17 ALLOCATE (Mref, float, NCAL); 17 18 ALLOCATE (dMref, float, NCAL); 18 19 ALLOCATE (Minst, float, NCAL); 19 ALLOCATE (Nstar, int,NCAL);20 ALLOCATE (Nstar, off_t, NCAL); 20 21 } 21 22 22 void SaveCalibration (float Mo, float dMo, float Mr, float dMr, float Mi, int N) {23 void SaveCalibration (float Mo, float dMo, float Mr, float dMr, float Mi, off_t N) { 23 24 24 25 Mobs[Ncal] = Mo; … … 37 38 REALLOCATE (dMref, float, NCAL); 38 39 REALLOCATE (Minst, float, NCAL); 39 REALLOCATE (Nstar, int,NCAL);40 REALLOCATE (Nstar, off_t, NCAL); 40 41 } 41 42 } 42 43 43 44 /* use the linked list to navigate the measures; safe for unsorted measures */ 44 void AddToCalibration (Average *average, SecFilt *secfilt, Measure *measure, Measure *new, int *next, int Nstar) {45 void AddToCalibration (Average *average, SecFilt *secfilt, Measure *measure, Measure *new, off_t *next, off_t Nstar) { 45 46 46 47 int i, j, m, Nsec, found0, found1, found2;
Note:
See TracChangeset
for help on using the changeset viewer.
