Changeset 1816 in Sophya for trunk/SophyaExt/FitsIOServer/datacirclefits.cc
- Timestamp:
- Dec 16, 2001, 11:32:07 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/datacirclefits.cc
r1815 r1816 5 5 Class used to recover the circles and measures involved in a mission. The parameters needful to create a circle and the number of samples on this circle are read from a FITS data array. In addition, a function returns the measurement at a given angular position psi on the circle. 6 6 */ 7 8 /* La fonction nint(double) n'existe pas partout ! */ 9 static long l_ft_nint(double x) 10 { 11 return ( (x < 0.) ? (long)(x-0.5) : (long)(x+0.5) ) ; 12 } 13 7 14 8 15 DataCircleFits::DataCircleFits() : … … 83 90 84 91 double dtab; 85 int ibin= nint(psi*_NMeasurements/(2.*M_PI));92 int ibin= l_ft_nint(psi*_NMeasurements/(2.*M_PI)); 86 93 //cout << " ibin= " << ibin << ", " << psi << endl; 87 94 … … 128 135 exit(0); 129 136 } 130 int ibin= nint(psi*_NMeasurements/(2.*M_PI));137 int ibin= l_ft_nint(psi*_NMeasurements/(2.*M_PI)); 131 138 return _mesures[ibin]; 132 139 }
Note:
See TracChangeset
for help on using the changeset viewer.