Ignore:
Timestamp:
01/13/10 12:50:13 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1799

Ready to Release: No

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...

Calibration algorithm for ALMA data (data from OSF) is updated.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/asapmath.py

    r1659 r1673  
    872872        asaplog.push( 'Calibrating %s position-switched data.' % antname )
    873873        print_log()
    874         if ( antname.find( 'APEX' ) != -1 or antname.find( 'ALMA' ) != -1 ):
     874        if ( antname.find( 'APEX' ) != -1 ):
     875            scal = apexcal( scantab, scannos, calmode, verify )
     876        elif ( antname.find( 'ALMA' ) != -1 or antname.find( 'OSF' ) != -1 ):
    875877            scal = almacal( scantab, scannos, calmode, verify )
    876878        else:
     
    879881        asaplog.push( 'Calibrating %s frequency-switched data.' % antname )
    880882        print_log()
    881         if ( antname.find( 'APEX' ) != -1 or antname.find( 'ALMA' ) != -1 ):
     883        if ( antname.find( 'APEX' ) != -1 ):
     884            scal = apexcal( scantab, scannos, calmode, verify )
     885        elif ( antname.find( 'ALMA' ) != -1 or antname.find( 'OSF' ) != -1 ):
    882886            scal = almacal( scantab, scannos, calmode, verify )
    883887        else:
     
    893897    return scal
    894898
    895 def almacal( scantab, scannos=[], calmode='none', verify=False ):
    896     """
    897     Calibrate APEX and ALMA data
     899def apexcal( scantab, scannos=[], calmode='none', verify=False ):
     900    """
     901    Calibrate APEX data
    898902
    899903    Parameters:
     
    909913    ssub = scantab.get_scan( scannos )
    910914    scal = scantable( stm.cwcal( ssub, calmode, antname ) )
     915    return scal
     916
     917def almacal( scantab, scannos=[], calmode='none', verify=False ):
     918    """
     919    Calibrate ALMA data
     920
     921    Parameters:
     922        scantab:       scantable
     923        scannos:       list of scan number
     924        calmode:       calibration mode
     925
     926        verify:        verify calibration     
     927    """
     928    from asap._asap import stmath
     929    stm = stmath()
     930    ssub = scantab.get_scan( scannos )
     931    scal = scantable( stm.almacal( ssub, calmode ) )
    911932    return scal
    912933
Note: See TracChangeset for help on using the changeset viewer.