Changeset 1684 for branches/alma/src


Ignore:
Timestamp:
02/04/10 20:42:12 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1810

Ready to Release: Yes

Interface Changes: Yes

What Interface Changed: Added 'antenna' parameter to scantable constructor

Test Programs: List test programs

Put in Release Notes: Yes

Module(s): atnf

Description: Describe your changes here...

I have added 'antenna' parameter to scantable constructor to be able to
select specific antenna from MS data with multiple antenna data.
Currently, only single antenna selection is working. For multiple antenna
selection, only first selection is used.


Location:
branches/alma/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/src/STFiller.cpp

    r1683 r1684  
    7575  nreader_(0)
    7676{
    77   open(filename, whichIF, whichBeam);
     77  open(filename, "", whichIF, whichBeam);
    7878}
    7979
     
    8282  close();
    8383}
    84 
    85 void STFiller::open( const std::string& filename, int whichIF, int whichBeam, casa::Bool getPt )
     84 
     85void STFiller::open( const std::string& filename, const std::string& antenna, int whichIF, int whichBeam, casa::Bool getPt )
    8686{
    8787  if (table_.null())  {
     
    122122  //
    123123
    124   if ( (reader_ = getPKSreader(inName, 0, 0, format, beams, ifs,
     124  if ( (reader_ = getPKSreader(inName, antenna, 0, 0, format, beams, ifs,
    125125                              nchans, npols, haveXPol_,haveBase, haveSpectra
    126126                              )) == 0 )  {
  • branches/alma/src/STFiller.h

    r1603 r1684  
    7676   * @exception AipsError Creation of PKSreader failed
    7777   */
    78   void open( const std::string& filename, int whichIF=-1, int whichBeam=-1, casa::Bool getPt=casa::False );
     78  void open( const std::string& filename, const std::string& antenna, int whichIF=-1, int whichBeam=-1, casa::Bool getPt=casa::False );
    7979
    8080  /**
Note: See TracChangeset for help on using the changeset viewer.