Changeset 12707 for trunk/Mars
- Timestamp:
- 12/06/11 15:58:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/fits.h
r12626 r12707 229 229 const string id = Get<string>("TTYPE"+num.str()); 230 230 const string fmt = Get<string>("TFORM"+num.str()); 231 const string unit = Get<string>("TUNIT"+num.str(), "");231 const string unit = "Empty";//Get<string>("TUNIT"+num.str()); 232 232 233 233 istringstream sin(fmt); … … 416 416 vec.push_back(string("END = '' / ")); 417 417 } 418 else 419 { 420 char value = str[0]; 421 int valuei = (int)(value); 422 } 423 //Would have liked to do it with a string comparison, but could not figure out the character for value 32... 424 bool isNULL = true; 425 for (int j=0;j<80;j++) 426 if (int(str[j]) != 32) 427 isNULL = false; 428 if (isNULL) 429 { 430 if (!endtag) 431 cout << "WARNING: END keyword missing. Loaded data may be corrupted" << endl; 432 433 endtag = true; 434 435 if (vec.size()%36==0) 436 vec.push_back(string("END = '' / ")); 437 } 418 438 419 439 if (endtag)
Note:
See TracChangeset
for help on using the changeset viewer.