Changeset 2215 for trunk/external-alma/asdm2ASAP/asdm2ASAP.cc
- Timestamp:
- 07/12/11 15:22:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/asdm2ASAP/asdm2ASAP.cc
r2214 r2215 23 23 Input inp ; 24 24 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]" ; 26 26 Bool helpMode = False ; 27 27 for ( int i = 1 ; i < argc ; i++ ) { … … 47 47 inp.create( "ocorr-mode", "ao", "Output correlator mode: ao", "String" ) ; 48 48 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" ) ; 49 50 inp.create( "logfile", "", "logger output", "String" ) ; 50 51 inp.readArguments( argc, argv ) ; … … 57 58 string corrMode = inp.getString( "corr-mode" ) ; 58 59 string timeSampling = inp.getString( "time-sampling" ) ; 60 string resolutionType = inp.getString( "srt" ) ; 59 61 string logfile = inp.getString( "logfile" ) ; 60 62 … … 109 111 asdmRec.define( "corr", corrMode ) ; 110 112 asdmRec.define( "sampling", timeSampling ) ; 113 asdmRec.define( "srt", resolutionType ) ; 111 114 if ( reg.match( antenna.c_str(), antenna.size() ) != String::npos ) { 112 115 // antenna is specifiec as id
Note: See TracChangeset
for help on using the changeset viewer.