Changeset 414


Ignore:
Timestamp:
02/11/05 17:50:42 (19 years ago)
Author:
mar637
Message:

cerr to cout changes were appropriate.

Location:
trunk/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile

    r356 r414  
    88
    99CXXFLAGS := -O -fPIC
    10 #CXXFLAGS += -fpermissive # This should be removed.
     10
    1111#CXXFLAGS += -ansi
    1212CXXFLAGS += -pedantic -Wno-long-long
  • trunk/src/MathUtils.h

    r384 r414  
    3939// Add new entry to list
    4040template <class T>
    41 casa::uInt addEntry (casa::Vector<T>& list, T val);
     41casa::uInt addEntry(casa::Vector<T>& list, T val);
    4242
    4343// Find the scan boundaries from a list of ScanIDs
     
    5353
    5454// Generate specified statistic
    55 float statistics (const casa::String& which,  const casa::MaskedArray<casa::Float>& data);
     55float statistics(const casa::String& which, 
     56                 const casa::MaskedArray<casa::Float>& data);
    5657
    5758// Replace masked value by zero
    58 void replaceMaskByZero (casa::Vector<casa::Float>& data, const casa::Vector<casa::Bool>& mask);
     59void replaceMaskByZero(casa::Vector<casa::Float>& data,
     60                        const casa::Vector<casa::Bool>& mask);
    5961};
    6062
  • trunk/src/SDAsciiWriter.cc

    r215 r414  
    175175//
    176176   of.close();
    177    cerr << "Wrote " << nRows << " rows into file " << fileName << endl;
     177   cout << "Wrote " << nRows << " rows into file " << fileName << endl;
    178178//   
    179179   return True;
  • trunk/src/SDContainer.cc

    r396 r414  
    520520      cerr << "Source    ID" << endl;   
    521521      for (uInt i=0; i<n_; i++) {
    522          cerr << setw(11) << source_(i) << ID_(i) << endl;
     522         cout << setw(11) << source_(i) << ID_(i) << endl;
    523523      }
    524524   }
  • trunk/src/SDFITSImageWriter.cc

    r389 r414  
    117117   Directory dir(dirName2);
    118118   dir.create(True);
    119    cerr << "Created directory '" << dirName2 << "' for output files" << endl;
     119   cout << "Created directory '" << dirName2 << "' for output files" << endl;
    120120
    121121// Temps
     
    229229         String tS(oss);
    230230         String fileName = dirName2 + String("/") + tS;
    231          if (verbose) cerr << "Writing row " << iRow
     231         if (verbose) cout << "Writing row " << iRow
    232232                           << " into file '" << tS << "'" << endl;
    233233//
     
    249249//
    250250   if (!verbose) {
    251       cerr << "Wrote " << nRows << " into individual FITS files" << endl;
     251      cout << "Wrote " << nRows << " into individual FITS files" << endl;
    252252   }
    253253//   
  • trunk/src/SDMath.cc

    r410 r414  
    10891089  Double cFac = 1.0;   
    10901090  if (fluxUnit==JY) {
    1091      cerr << "Converting to K" << endl;
     1091     cout << "Converting to K" << endl;
    10921092//
    10931093     Quantum<Double> t(1.0,fluxUnit);
     
    10981098     sh.fluxunit = "K";
    10991099  } else if (fluxUnit==K) {
    1100      cerr << "Converting to Jy" << endl;
     1100     cout << "Converting to Jy" << endl;
    11011101//
    11021102     Quantum<Double> t(1.0,fluxUnit);
     
    11211121     if (toKelvin) factor = 1.0 / JyPerK;
    11221122//
    1123      cerr << "Applying supplied conversion factor = " << factor << endl;
     1123     cout << "Applying supplied conversion factor = " << factor << endl;
    11241124     Vector<Float> factors(in.nRow(), factor);
    11251125     correctFromVector (pTabOut, in, doAll, factors);
     
    11301130     }
    11311131//
    1132      cerr << "Applying supplied conversion factor = " << factor << endl;
     1132     cout << "Applying supplied conversion factor = " << factor << endl;
    11331133     Vector<Float> factors(in.nRow(), factor);
    11341134     correctFromVector (pTabOut, in, doAll, factors);
     
    11401140// change per integration.
    11411141
    1142      cerr << "Looking up conversion factors" << endl;
     1142     cout << "Looking up conversion factors" << endl;
    11431143     convertBrightnessUnits (pTabOut, in, toKelvin, cFac, doAll);
    11441144  }
     
    12041204     }
    12051205//
    1206      cerr << "Making polynomial correction with " << msg << " coefficients" << endl;
     1206     cout << "Making polynomial correction with " << msg << " coefficients" << endl;
    12071207     const uInt nRow = in.nRow();
    12081208     Vector<Float> factor(nRow);
     
    12221222// Read and correct
    12231223
    1224      cerr << "Making correction from ascii Table" << endl;
     1224     cout << "Making correction from ascii Table" << endl;
    12251225     correctFromAsciiTable (pTabOut, in, fileName, col0, col1,
    12261226                            methodStr, doAll, x);
     
    13011301//
    13021302   Vector<Float> JyPerK = sdAtt.JyPerK(inst, dateObs, freqs);
    1303    cerr << "Jy/K = " << JyPerK << endl;
     1303   cout << "Jy/K = " << JyPerK << endl;
    13041304   Vector<Float> factors = cFac * JyPerK;
    13051305   if (toKelvin) factors = Float(1.0) / factors;
     
    14051405      refEpoch = in.getEpoch(0);
    14061406   }
    1407    cerr << "Aligning at reference Epoch " << formatEpoch(refEpoch) <<
    1408           " in frame " << MFrequency::showType(freqSystem) << endl;
    1409 
     1407   cout << "Aligning at reference Epoch " << formatEpoch(refEpoch)
     1408        << " in frame " << MFrequency::showType(freqSystem) << endl;
     1409   
    14101410// Get Reference Position
    14111411
     
    14521452// New output Table
    14531453
    1454    cerr << "Create output table" << endl;
     1454   cout << "Create output table" << endl;
    14551455   SDMemTable* pTabOut = new SDMemTable(in,True);
    14561456   pTabOut->putSDFreqTable(freqTabOut);
     
    14711471   for (uInt iRow=0; iRow<nRows; ++iRow) {
    14721472      if (iRow%10==0) {
    1473          cerr << "Processing row " << iRow << endl;
     1473         cout << "Processing row " << iRow << endl;
    14741474      }
    14751475
  • trunk/src/SDMemTable.cc

    r401 r414  
    13811381         throw (AipsError("Number of rest frequencies must be equal to the number of IFs"));
    13821382      }
    1383       cerr << "Replacing rest frequencies with given list, one per IF" << endl;
     1383      cout << "Replacing rest frequencies with given list, one per IF" << endl;
    13841384//
    13851385      sdft.deleteRestFrequencies();
     
    13941394      Quantum<Double> rf(restFreqs[0], unit);
    13951395      idx = sdft.addRestFrequency(rf.getValue("Hz"));
    1396       cerr << "Selecting given rest frequency" << endl;
     1396      cout << "Selecting given rest frequency" << endl;
    13971397   }
    13981398
     
    14381438}
    14391439
    1440 void SDMemTable::spectralLines () const
     1440void SDMemTable::spectralLines() const
    14411441{
    14421442   Vector<String> lines = MeasTable::Lines();
     
    14441444   Double freq;
    14451445//
    1446    cerr.flags(std::ios_base::left);
    1447    cerr << "Line      Frequency (Hz)" << endl;
    1448    cerr << "-----------------------" << endl;
     1446   cout.flags(std::ios_base::left);
     1447   cout << "Line      Frequency (Hz)" << endl;
     1448   cout << "-----------------------" << endl;
    14491449   for (uInt i=0; i<lines.nelements(); i++) {
    14501450     MeasTable::Line(lineFreq, lines[i]);
    14511451     freq = lineFreq.getValue().getValue();          // Hz
    14521452//
    1453      cerr << setw(11) << lines[i] << setprecision(10) << freq << endl;
     1453     cout << setw(11) << lines[i] << setprecision(10) << freq << endl;
    14541454   }
    14551455}
  • trunk/src/SDReader.cc

    r405 r414  
    219219  Vector<Complex> xPol;
    220220  uInt n = seq.size();
     221
    221222
    222223  uInt stepsize = header_->nif*header_->nbeam;
Note: See TracChangeset for help on using the changeset viewer.