Changeset 1295 for trunk/src


Ignore:
Timestamp:
11/06/06 22:22:03 (18 years ago)
Author:
mar637
Message:

merge form Release2.1.1 branch

Location:
trunk/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/LineCatalog.h

    r1259 r1295  
    3636    */
    3737  LineCatalog(const std::string& name = "jpl");
    38   /**
    39     * select a subset of the table by frequency range
    40     * @param fmin the lower frequency bound
    41     * @param fmin the upper frequency bound
    42     */
    4338
    4439  virtual ~LineCatalog() {}
     
    5045   */
    5146  void setFrequencyLimits(double fmin, double fmax);
     47
    5248  /**
    5349    * select a subset of the table by line strength range
     
    5652    */
    5753  void setStrengthLimits(double smin, double smax);
     54 
    5855  /**
    5956    * select a subset of the data by name pattern match (unix-style)
     
    6461    */
    6562  void setPattern(const std::string& name, const std::string& ptype="pattern");
     63 
    6664  /**
    6765    * save the table  with current limits to disk (as an aips++ table)
     
    6967    */
    7068  void save(const std::string& name);
     69 
    7170  /**
    7271    * Return a string representation of this table
  • trunk/src/Makefile

    r1259 r1295  
    3434
    3535G2CROOT := /usr/local
    36 G2CARCH := $(G2CROOT)/lib/gcc/i386-apple-darwin8.7.1/4.2.0/libgcc.a
    37 G2CARCH := $(G2CROOT)/lib/gcc/powerpc-apple-darwin8.7.0/4.2.0/libgcc.a
    38 G2CLIB := $(G2CROOT)/lib/libgfortran.a $(G2CARCH)
     36G2CARCH := #$(G2CROOT)/lib/gcc/powerpc-apple-darwin8.7.0/4.2.0/libgcc.a
     37G2CLIB := $(G2CROOT)/lib/libg2c.a $(G2CARCH)
    3938
    4039# This assumes all casa libs are static only (*.a)
     
    4241CASAPPLIB := $(CASALIB)/version.o \
    4342             -L$(CASALIB) \
    44              -latnf -limages -lms -lcomponents -lcoordinates \
    45              -llattices -lfits -lmeasures -lmeasures_f \
     43             -latnf -lms -lcomponents -lcoordinates \
     44             -llattices -lfits -lmeasures \
    4645             -ltables -lscimath -lscimath_f -lcasa  \
    4746             $(CASALIB)/libwcs.a \
  • trunk/src/RowAccumulator.h

    r1114 r1295  
    4343    * @param tsys the Tsys corresponing to the spectrum
    4444    * @param interval the intergration time
    45     * @param the time of the observation
     45    * @param time the time of the observation
    4646    */
    4747  void add(const casa::Vector<casa::Float>& v,
  • trunk/src/STAsciiWriter.cpp

    r996 r1295  
    109109    String fName = rootName + String(onstr) + String(".txt");
    110110    ofstream of(fName.chars(), ios::trunc);
    111     int row0 = t.rowNumbers()[0];
     111    int row0 = t.rowNumbers(tab)[0];
    112112    MDirection mdir = stable.getDirection(row0);
    113113    of << setfill('#') << setw(70) << "" << setfill(' ') << endl;
  • trunk/src/STMath.h

    r1200 r1295  
    5151
    5252  /**
    53    * get the currnt @attr inistu state
     53   * get the currnt @attr inistu_ state
    5454   */
    5555  bool insitu() const { return insitu_;};
     
    6565    * average a vector of Scantables
    6666    * @param in the vector of Scantables to average
    67     * @param an optional mask to apply on specific weights
     67    * @param mask an optional mask to apply on specific weights
    6868    * @param weight weighting scheme
    6969    * @param avmode the mode ov averaging. Per "SCAN" or "ALL".
  • trunk/src/STWriter.cpp

    r1280 r1295  
    119119  //const Int nPol  = hdr.npol;
    120120  //const Int nChan = hdr.nchan;
    121   int nIF = in->nif();
     121  std::vector<uint> ifs = in->getIFNos();
     122  int nIF = in->nif();//ifs.size();
    122123  Vector<uInt> nPol(nIF),nChan(nIF);
    123124  Vector<Bool> havexpol(nIF);
    124   for (int i=0;i<nIF;++i) {
    125     nPol(i) = in->npol();
    126     nChan(i) = in->nchan(i);
    127     havexpol(i) = nPol(i) > 2;
     125  nPol = 0;nChan = 0; havexpol = False;
     126  for (int i=0;i<ifs.size();++i) {
     127    nPol(ifs[i]) = in->npol();
     128    nChan(ifs[i]) = in->nchan(ifs[i]);
     129    havexpol(ifs[i]) = nPol(ifs[i]) > 2;
    128130  }
    129131
     
    170172      ROScalarColumn<Double> svelCol(btable, "SRCVELOCITY");
    171173      svelCol.get(0, srcVel);
     174      ROScalarColumn<uInt> bCol(btable, "BEAMNO");
     175      beamno = bCol(0)+1;
    172176      Int cycno = 1;
    173177      while (!cycit.pastEnd() ) {
     
    181185          const TableRecord& rec = row.get(0);
    182186          ROArrayColumn<Float> specCol(itable, "SPECTRA");
     187          ifno = rec.asuInt("IFNO")+1;
    183188          uInt nchan = specCol(0).nelements();
    184189          Double cdelt,crval,crpix, restfreq;
     
    244249          }
    245250          ++count;
    246           ++ifno;
     251          //++ifno;
    247252          ++ifit;
    248253        }
     
    250255        ++cycit;
    251256      }
    252       ++beamno;
     257      //++beamno;
    253258      ++beamit;
    254259    }
  • trunk/src/Scantable.h

    r1189 r1295  
    120120  /**
    121121   * set the header
    122    * @param[in] sdh an STHeader object
     122   * @param[in] sth an STHeader object
    123123   */
    124124  void setHeader( const STHeader& sth );
     
    175175        /**
    176176         * set the direction type as a string, e.g. "J2000"
    177          * @param[in] the direction type
     177         * @param[in] refstr the direction type
    178178         */
    179179  void setDirectionRefString(const std::string& refstr="");
     
    203203  /**
    204204   * Set the Stokes type of the data
    205    * @param a string representing the type, e.g "circular" or "linear"
     205   * @param feedtype a string representing the type, e.g "circular" or "linear"
    206206   */
    207207  void setFeedType( const std::string& feedtype );
Note: See TracChangeset for help on using the changeset viewer.