Ignore:
Timestamp:
11/05/09 21:47:49 (15 years ago)
Author:
WataruKawasaki
Message:

New Development: Yes

JIRA Issue: Yes (CAS-1433)

Ready to Release: Yes

Interface Changes: Yes

What Interface Changed: functionalities for row-based flagging added

Test Programs:

Put in Release Notes: No

Module(s): sdflag

Description: Added the following functionalities:

sd.scantable._flag_row()

  • to execute row-based flagging

sd.scantable._getflagrow()

  • to get row-based flagging info


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/src/Scantable.h

    r1634 r1656  
    231231
    232232  /**
     233   * Flag the data in a row-based manner. (CAS-1433 Wataru Kawasaki)
     234   * param[in] rows    list of row numbers to be flagged
     235   */
     236  void flagRow( const std::vector<casa::uInt>& rows = std::vector<casa::uInt>(), bool unflag=false);
     237
     238  /**
     239   * Get flagRow info at the specified row. If true, the whole data
     240   * at the row should be flagged.
     241   */
     242  bool getFlagRow(int whichrow) const
     243    { return (flagrowCol_(whichrow) > 0); }
     244
     245  /**
    233246   * Return a list of row numbers with respect to the original table.
    234247   * @return a list of unsigned ints
     
    447460  void regridChannel( int nchan, double dnu ) ;
    448461  void regridChannel( int nchan, double dnu, int irow ) ;
     462
    449463 
    450464private:
     
    523537  casa::ScalarColumn<casa::Float> paraCol_;
    524538  casa::ScalarColumn<casa::String> srcnCol_, fldnCol_;
    525   casa::ScalarColumn<casa::uInt> scanCol_, beamCol_, ifCol_, polCol_, cycleCol_;
     539  casa::ScalarColumn<casa::uInt> scanCol_, beamCol_, ifCol_, polCol_, cycleCol_, flagrowCol_;
    526540  casa::ScalarColumn<casa::Int> rbeamCol_, srctCol_;
    527541  casa::ArrayColumn<casa::Float> specCol_, tsysCol_;
     
    544558  void initFactories();
    545559
     560  /**
     561   * Add an auxiliary column to the main table and attach it to a
     562   * cached column. Use for adding new columns that the original asap2
     563   * tables do not have.
     564   * @param[in] col      reference to the cached column to be attached
     565   * @param[in] colName  column name in asap table
     566   * @param[in] defValue default value to fill in the column
     567   *
     568   * 25/10/2009 Wataru Kawasaki
     569   */
     570  template<class T, class T2> void attachAuxColumnDef(casa::ScalarColumn<T>&,
     571                                                       const casa::String&,
     572                                                       const T2&);
     573  template<class T, class T2> void attachAuxColumnDef(casa::ArrayColumn<T>&,
     574                                                      const casa::String&,
     575                                                      const casa::Array<T2>&);
    546576};
    547577
Note: See TracChangeset for help on using the changeset viewer.