Changeset 20092 for trunk/FACT++/src/fitsdump.cc
- Timestamp:
- 04/26/21 10:09:09 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsdump.cc
r19946 r20092 1 //**************************************************************** 1 2 //**************************************************************** 2 3 /** @class FitsDumper … … 470 471 { 471 472 cerr << "Could not open root file '" << filename << "'" << endl; 472 return -2;473 return 8; 473 474 } 474 475 } … … 1100 1101 1101 1102 if (conf.Get<bool>("header") || conf.Get<bool>("list") || conf.Get<bool>("filecontent")) 1103 return 0; 1104 1105 // ------------------------------------------------------------ 1106 1107 if (conf.Get<bool>("minmax") && conf.Get<bool>("stat")) 1108 { 1109 cerr << "Invalid combination of options: cannot do stats and minmax." << endl; 1102 1110 return 1; 1103 1104 // ------------------------------------------------------------1105 1106 if (conf.Get<bool>("minmax") && conf.Get<bool>("stat"))1107 {1108 cerr << "Invalid combination of options: cannot do stats and minmax." << endl;1109 return -1;1110 1111 } 1111 1112 if (conf.Get<bool>("stat") && conf.Get<bool>("nozero")) 1112 1113 { 1113 1114 cerr << "Invalid combination of options: nozero only works with minmax." << endl; 1114 return -1;1115 return 2; 1115 1116 } 1116 1117 … … 1118 1119 { 1119 1120 cerr << "Switched --scientific and --fixed are mutually exclusive." << endl; 1120 return -1;1121 return 3; 1121 1122 } 1122 1123 … … 1124 1125 { 1125 1126 cerr << "Switched --% and --%% are mutually exclusive." << endl; 1126 return -1;1127 return 4; 1127 1128 } 1128 1129 … … 1148 1149 { 1149 1150 cerr << "Cannot open output stream " << filename << ": " << strerror(errno) << endl; 1150 return false;1151 return 5; 1151 1152 } 1152 1153 fout.rdbuf(sout.rdbuf()); … … 1180 1181 { 1181 1182 cerr << "Format '" << *it << "' not supported." << endl; 1182 return -1;1183 return 6; 1183 1184 } 1184 1185 } … … 1186 1187 const vector<MyColumn> cols = InitColumns(conf.Vec<string>("col")); 1187 1188 if (cols.empty()) 1188 return false;1189 return 7; 1189 1190 1190 1191 if (conf.Get<bool>("minmax"))
Note:
See TracChangeset
for help on using the changeset viewer.