Changeset 2250 for trunk/external-alma


Ignore:
Timestamp:
07/27/11 17:16:18 (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...

Updated getSrcType sucha that the code is able to handle scan intent of
calibration scans correctly.


File:
1 edited

Legend:

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

    r2249 r2250  
    924924      else if ( subIntent == OFF_SOURCE ) {
    925925        srctype = SrcType::REF ;
     926      }
     927    }
     928  }
     929  else if ( scanIntent == CALIBRATE_ATMOSPHERE ) {
     930    if ( swmode == NO_SWITCHING || swmode == POSITION_SWITCHING ) {
     931      // position switching
     932      // tentatively set NO_SWITCHING = POSITION_SWITCHING
     933      if ( subIntent == ON_SOURCE ) {
     934        srctype = SrcType::PONCAL ;
     935      }
     936      else if ( subIntent == OFF_SOURCE ) {
     937        srctype = SrcType::POFFCAL ;
     938      }
     939    }
     940    else if ( swmode == FREQUENCY_SWITCHING ) {
     941      // frequency switching
     942      if ( subIntent == ON_SOURCE ) {
     943        srctype = SrcType::FONCAL ;
     944      }
     945      else if ( subIntent == OFF_SOURCE ) {
     946        srctype = SrcType::FOFFCAL ;
     947      }
     948    }
     949    else if ( swmode == NUTATOR_SWITCHING ) {
     950      // nutator switching
     951      if ( subIntent == ON_SOURCE ) {
     952        srctype = SrcType::PONCAL ;
     953      }
     954      else if ( subIntent == OFF_SOURCE ) {
     955        srctype = SrcType::POFFCAL ;
     956      }
     957    }
     958    else {
     959      // other switching mode
     960      if ( subIntent == ON_SOURCE ) {
     961        srctype = SrcType::CAL ;
     962      }
     963      else if ( subIntent == OFF_SOURCE ) {
     964        srctype = SrcType::CAL ;
    926965      }
    927966    }
Note: See TracChangeset for help on using the changeset viewer.