- Timestamp:
- 05/10/11 15:02:56 (14 years ago)
- Location:
- trunk/src
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/LineCatalog.cpp
r1534 r2163 99 99 } 100 100 } else { 101 if ( row < table_.nrow() ) {101 if ( row < int(table_.nrow()) ) { 102 102 oss << std::right << setw(7) << row << setw(2) << ""; 103 103 oss << std::left << setw(20) << getName(row); -
trunk/src/MathUtils.cpp
r2127 r2163 133 133 const Vector<Float>& in, const Vector<Bool>& mask, 134 134 Bool relaxed, Bool ignoreOther) { 135 (void) ignoreOther; //suppress unused warning 135 136 Vector< Vector<Float> > weights(8); 136 137 Vector<Float> vals(3); … … 181 182 float width) 182 183 { 183 Int hwidth = Int(width+0.5);184 Int fwidth = hwidth*2+1;184 uInt hwidth = Int(width+0.5); 185 uInt fwidth = hwidth*2+1; 185 186 out.resize(in.nelements()); 186 187 outflag.resize(flag.nelements()); … … 189 190 Float medval = ms.add(const_cast<Vector<Float>& >(in)(sl), 190 191 const_cast<Vector<Bool>& >(flag)(sl)); 192 (void) medval;//suppress unused warning 191 193 uInt n = in.nelements(); 192 194 for (uInt i=hwidth; i<(n-hwidth); ++i) { … … 208 210 float width, int order) 209 211 { 210 Int hwidth = Int(width+0.5);211 Int fwidth = hwidth*2+1;212 uInt hwidth = Int(width+0.5); 213 uInt fwidth = hwidth*2+1; 212 214 out.resize(in.nelements()); 213 215 outmask.resize(mask.nelements()); -
trunk/src/PKSFiller.cpp
r1916 r2163 257 257 fseek( fp, 640, SEEK_SET ) ; 258 258 char buf[81] ; 259 fread( buf, 80, 1, fp ) ; 259 size_t tmp = fread( buf, 80, 1, fp ) ; 260 (void) tmp; 260 261 buf[80] = '\0' ; 261 262 if ( strstr( buf, "NRAO_GBT" ) != NULL ) { -
trunk/src/PKSFiller.h
r1904 r2163 24 24 #include "Scantable.h" 25 25 26 class casa::Record;27 26 class PKSreader; 28 27 -
trunk/src/STAsciiWriter.cpp
r1819 r2163 138 138 // stable.molecules().getRestFrequency(rec.asuInt("MOLECULE_ID") )); 139 139 addLine(of, "Rest Freq.", restfreqs[0]); 140 for ( unsignedint i=1; i<nf; ++i) {140 for ( int i=1; i<nf; ++i) { 141 141 addLine(of, " ", restfreqs[i]); 142 142 } -
trunk/src/STAttr.cpp
r1618 r2163 52 52 } 53 53 54 STAttr::STAttr(const STAttr& other) 55 { 54 STAttr::STAttr(const STAttr& other): 55 Logger() 56 { 57 (void) other; //suppress unused warning 56 58 initData(); // state just private 'static' data 57 59 } -
trunk/src/STFiller.cpp
r1841 r2163 307 307 **/ 308 308 309 #ifdef HAS_ALMA 309 310 Double min = 0.0; 310 311 Double max = nInDataRow; 311 #ifdef HAS_ALMA312 312 ProgressMeter fillpm(min, max, "Data importing progress"); 313 313 #endif … … 320 320 fseek( fp, 640, SEEK_SET ) ; 321 321 char buf[81] ; 322 fread( buf, 80, 1, fp ) ; 322 size_t tmpret = fread( buf, 80, 1, fp ) ; 323 (void) tmpret; 323 324 buf[80] = '\0' ; 324 325 if ( strstr( buf, "NRAO_GBT" ) != NULL ) { … … 883 884 char buf[9] ; 884 885 char buf2[80] ; 885 fread( buf, 4, 1, fp ) ; 886 size_t tmpret; 887 tmpret = fread( buf, 4, 1, fp ) ; 886 888 buf[4] = '\0' ; 887 889 fseek( fp, 640, SEEK_SET ) ; 888 fread( buf2, 80, 1, fp ) ; 890 tmpret = fread( buf2, 80, 1, fp ) ; 891 (void) tmpret; //suppress unused warning 889 892 if ( ( strncmp( buf, "RW", 2 ) == 0 ) || ( strstr( buf2, "NRO45M" ) != NULL ) ) { 890 893 bval = true ; -
trunk/src/STFitter.cpp
r2047 r2163 101 101 } 102 102 } 103 for (uInt j=m_.nelements()-1; j>=0;--j) { 103 // use Int to suppress compiler warning 104 for (Int j=m_.nelements()-1; j>=0;--j) { 104 105 if (m_[j]) { 105 106 mx = j; -
trunk/src/STLineFinder.cpp
r2081 r2163 94 94 const casa::Float& getLinMean() const throw(AipsError); 95 95 const casa::Float& getLinVariance() const throw(AipsError); 96 c onst casa::Float aboveMean() const throw(AipsError);96 casa::Float aboveMean() const throw(AipsError); 97 97 int getChannel() const throw(); 98 98 … … 505 505 } 506 506 507 c onst casa::Float RunningBox::aboveMean() const throw(AipsError)507 casa::Float RunningBox::aboveMean() const throw(AipsError) 508 508 { 509 509 DebugAssert(cur_channel<edge.second, AipsError); -
trunk/src/STMath.cpp
r2143 r2163 318 318 319 319 CountedPtr< Scantable > 320 320 STMath::averageChannel( const CountedPtr < Scantable > & in, 321 321 const std::string & mode, 322 322 const std::string& avmode ) 323 323 { 324 (void) mode; // currently unused 324 325 // check if OTF observation 325 326 String obstype = in->getHeader().obstype ; … … 836 837 /// modes should be "nearest", "pair" 837 838 // make this operation non insitu 839 (void) mode; //currently unused 838 840 const Table& tin = in->table(); 839 841 Table ons = tin(tin.col("SRCTYPE") == Int(SrcType::PSON)); … … 1405 1407 1406 1408 1409 (void) scans; //currently unused 1407 1410 STSelector sel; 1408 1411 CountedPtr< Scantable > ws = getScantable(s, false); … … 2714 2717 mask, timeCol(i), !first, 2715 2718 interp, False); 2719 (void) ok; // unused stop compiler nagging 2716 2720 // back into scantable 2717 2721 flagOut.resize(maskOut.nelements()); … … 4259 4263 CountedPtr<Scantable> STMath::almacalfs( const CountedPtr<Scantable>& s ) 4260 4264 { 4265 (void) s; //currently unused 4261 4266 CountedPtr<Scantable> out ; 4262 4267 … … 4711 4716 string antname ) 4712 4717 { 4718 (void) cold; //currently unused 4713 4719 string reftime = on->getTime( index ) ; 4714 4720 vector<int> ii( 1, on->getIF( index ) ) ; … … 4805 4811 int index ) 4806 4812 { 4813 (void) cold; //currently unused 4807 4814 string reftime = sig->getTime( index ) ; 4808 4815 vector<int> ii( 1, sig->getIF( index ) ) ; … … 4843 4850 int index ) 4844 4851 { 4852 (void) cold; //currently unused 4845 4853 string reftime = sig->getTime( index ) ; 4846 4854 vector<int> ii( 1, sig->getIF( index ) ) ; -
trunk/src/STPol.h
r1586 r2163 66 66 virtual casa::Vector<casa::Float> getLinear( casa::uInt index ) = 0; 67 67 68 virtual void rotatePhase( casa::Float phase) {}69 virtual void rotateLinPolPhase( casa::Float phase) {}68 virtual void rotatePhase( casa::Float ) {} 69 virtual void rotateLinPolPhase( casa::Float) {} 70 70 71 virtual void invertPhase( casa::Float phase) {}71 virtual void invertPhase( casa::Float ) {} 72 72 73 73 casa::uInt nspec() const { return basespectra_.ncolumn(); } -
trunk/src/STPolLinear.cpp
r1189 r2163 30 30 Vector<Float> asap::STPolLinear::getStokes( uint index ) 31 31 { 32 if ( index < 0 || index >4 ) throw(AipsError("Stokes index out of range"));32 if ( index > 4 ) throw(AipsError("Stokes index out of range")); 33 33 Vector<Float> out; 34 34 Float phase = getTotalPhase(); … … 61 61 throw(AipsError("You must have 4 linear polarizations to run this function")); 62 62 } 63 if ( index < 0 || index>4 ) throw(AipsError("LinPol index out of range"));63 if ( index >4 ) throw(AipsError("LinPol index out of range")); 64 64 Vector<Float> out,q,u; 65 65 if ( nspec() == 4) { … … 129 129 { 130 130 // phase isnt used, just ro keep interface the same for all pol operations 131 (void) phase; 131 132 if (nspec() != 4) { 132 133 throw(AipsError("You must have 4 linear polarizations to run this function")); -
trunk/src/STWriter.h
r1819 r2163 42 42 43 43 class PKSwriter; 44 class casa::Table;45 44 46 45 namespace asap { -
trunk/src/Scantable.cpp
r2162 r2163 137 137 << "Data will be loaded from " << outname << " instead of " 138 138 << name << LogIO::POST ; 139 system( exec.c_str() ) ; 139 int tmp = system( exec.c_str() ) ; 140 (void) tmp; 140 141 tab = Table(outname, Table::Update ) ; 141 142 //os << "tab.tableName()=" << tab.tableName() << LogIO::POST ; … … 178 179 */ 179 180 180 Scantable::Scantable( const Scantable& other, bool clear ) 181 Scantable::Scantable( const Scantable& other, bool clear ): 182 Logger() 181 183 { 182 184 // with or without data … … 986 988 987 989 988 std::string Scantable::headerSummary( bool verbose)990 std::string Scantable::headerSummary() 989 991 { 990 992 // Format header info … … 1035 1037 oss << setw(15) << "Abcissa:" << getAbcissaLabel(0) << endl; 1036 1038 oss << selector_.print() << endl; 1037 /// @todo implement verbose mode1038 1039 return String(oss); 1039 1040 } 1040 1041 1041 std::string Scantable::summary( bool verbose)1042 std::string Scantable::summary() 1042 1043 { 1043 1044 ostringstream oss; … … 1048 1049 1049 1050 // Format header info 1050 oss << headerSummary( verbose);1051 oss << headerSummary(); 1051 1052 oss << endl; 1052 1053 … … 1112 1113 ++iter; 1113 1114 } 1114 /// @todo implement verbose mode1115 1115 return String(oss); 1116 1116 } … … 1282 1282 void Scantable::setRestFrequencies( const vector<std::string>& name ) 1283 1283 { 1284 (void) name; // suppress unused warning 1284 1285 throw(AipsError("setRestFrequencies( const vector<std::string>& name ) NYI")); 1285 1286 ///@todo implement … … 2684 2685 2685 2686 2686 std::string Scantable::formatBaselineParamsHeader(int whichrow, const std::string& masklist, bool verbose) const 2687 std::string Scantable::formatBaselineParamsHeader(int whichrow, 2688 const std::string& masklist, 2689 bool verbose) const 2687 2690 { 2688 2691 ostringstream oss; … … 2719 2722 } 2720 2723 2721 std::string Scantable::formatBaselineParams(const std::vector<float>& params, const std::vector<bool>& fixed, float rms, const std::string& masklist, int whichrow, bool verbose, int start, int count, bool resetparamid) const 2724 std::string Scantable::formatBaselineParams(const std::vector<float>& params, 2725 const std::vector<bool>& fixed, 2726 float rms, 2727 const std::string& masklist, 2728 int whichrow, 2729 bool verbose, 2730 int start, int count, 2731 bool resetparamid) const 2722 2732 { 2723 2733 int nParam = (int)(params.size()); -
trunk/src/Scantable.h
r2161 r2163 372 372 { historyTable_.append(otherhist); } 373 373 374 std::string headerSummary( bool verbose=false);375 std::string summary( bool verbose=false);374 std::string headerSummary(); 375 std::string summary(); 376 376 //std::string getTime(int whichrow=-1, bool showdate=true) const; 377 377 std::string getTime(int whichrow=-1, bool showdate=true, casa::uInt prec=0) const; -
trunk/src/ScantableWrapper.h
r2161 r2163 218 218 219 219 std::string summary(bool verbose=false) const { 220 return table_->summary( verbose);220 return table_->summary(); 221 221 } 222 222 223 223 std::string listHeader(bool verbose=false) const { 224 return table_->headerSummary( verbose);225 } 226 227 std::vector<std::string> getHistory() const224 return table_->headerSummary(); 225 } 226 227 std::vector<std::string> getHistory() const 228 228 { return table_->getHistory(); } 229 229 -
trunk/src/python_asap.h
r1974 r2163 32 32 #define PYTHON_ASAP_H 33 33 34 class casa::AipsError;35 36 34 namespace asap { 37 35 namespace python {
Note:
See TracChangeset
for help on using the changeset viewer.