Ignore:
Timestamp:
07/12/11 15:22:48 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1913

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Added selection by spectral resolution type.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/asdm2ASAP/asdm2ASAP.cc

    r2214 r2215  
    2323  Input inp ;
    2424  String indent = "   " ;
    25   String versionInfo = "$Id$\nConverts an ASDM dataset into Scantable.\nUsage:\n"+indent+argv[0]+" -antenna <antenna name or id> -asdm <ASDM directory> -asap <Scantable name> [-apc both|yes|no] [-corr-mode ca|ao|ca+ao] [-ocorr-mode ao] [-time-sampling all|integration|subintegration]" ;
     25  String versionInfo = "$Id$\nConverts an ASDM dataset into Scantable.\nUsage:\n"+indent+argv[0]+" -antenna <antenna name or id> -asdm <ASDM directory> -asap <Scantable name> [-apc both|yes|no] [-corr-mode ca|ao|ca+ao] [-ocorr-mode ao] [-time-sampling all|integration|subintegration] [-srt fr|bw|ca|all]" ;
    2626  Bool helpMode = False ;
    2727  for ( int i = 1 ; i < argc ; i++ ) {
     
    4747  inp.create( "ocorr-mode", "ao", "Output correlator mode: ao", "String" ) ;
    4848  inp.create( "time-sampling", "all", "time sampling mode: all|integration|subintegration", "String" ) ;
     49  inp.create( "srt", "all", "spectral resolution mode: all|fr(full resolution)|ca(channel average)|bw(baseband wide)", "String" ) ;
    4950  inp.create( "logfile", "", "logger output", "String" ) ;
    5051  inp.readArguments( argc, argv ) ;
     
    5758  string corrMode = inp.getString( "corr-mode" ) ;
    5859  string timeSampling = inp.getString( "time-sampling" ) ;
     60  string resolutionType = inp.getString( "srt" ) ;
    5961  string logfile = inp.getString( "logfile" ) ;
    6062   
     
    109111    asdmRec.define( "corr", corrMode ) ;
    110112    asdmRec.define( "sampling", timeSampling ) ;
     113    asdmRec.define( "srt", resolutionType ) ;
    111114    if ( reg.match( antenna.c_str(), antenna.size() ) != String::npos ) {
    112115      // antenna is specifiec as id
Note: See TracChangeset for help on using the changeset viewer.