Changeset 1707 for trunk/MagicSoft/Simulation/Detector/Starfield
- Timestamp:
- 01/14/03 13:48:11 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Starfield/star.cxx
r342 r1707 29 29 char c8[9]; 30 30 31 strncpy(c2+2, "\0", 1); 32 strncpy(c3+3, "\0", 1); 33 strncpy(c6+6, "\0", 1); 34 strncpy(c7+7, "\0", 1); 35 strncpy(c8+8, "\0", 1); 36 31 37 pos = catline; 32 38 … … 38 44 39 45 pos = catline + 27; 46 47 40 48 strncpy(c8, pos, 8); 41 49 sscanf(c8, "%d", &icatnum); … … 73 81 pos = catline + 231; 74 82 strncpy(c6, pos, 6); 75 sscanf(c6, "%f", &vmag); 83 if (sscanf(c6, "%f", &vmag) < 1) 84 vmag = -999.;; 76 85 77 86 pos = catline + 251; 78 87 strncpy(c6, pos, 6); 79 sscanf(c6, "%f", &bmag); 88 if (sscanf(c6, "%f", &bmag) < 1) 89 bmag = -999.; 80 90 81 91 pos = catline + 271; 82 92 strncpy(c6, pos, 6); 83 sscanf(c6, "%f", &umag); 93 if (sscanf(c6, "%f", &umag) < 1) 94 umag = -999.; 84 95 85 96 ra_h = ira_hours + ira_min/60. + ra_sec/3600.;
Note:
See TracChangeset
for help on using the changeset viewer.