CASA Documentation
Advanced Search…
  • Log in

Navigation

  • Home
  • Latest
  • CASA 6.1
  • CASA 5.6
  • CASA 5.5
  • CASA 5.4.1
  • CASA 5.4.0
  • CASA 5.3.0
  • CASA 5.1.2
  • CASA 5.1.1
  • CASA 5.1.0
  • CASA 5.0.0
Navigation
  • Release Information
  • Hardware Requirements
  • Using CASA
  • Visibility Data Import Export
  • Visibility Data Selection
  • Data Examination and Editing
  • UV Manipulation
  • Synthesis Calibration
  • Ephemeris Data
  • Synthesis Imaging
  • Single Dish Calibration
  • Single-Dish Imaging
  • Image Combination
  • Image Cube Visualization
  • Image Analysis
  • Simulation
  • Parallel Processing
  • Reference Material
  • Global Task List
    • applycal
      • Description
      • Parameters
      • Changelog
      • Examples
      • Developer (developer)
    • bandpass
    • blcal
    • calstat
    • clean
    • concat
    • exportasdm
    • exportfits
    • exportuvfits
    • flagdata
    • fluxscale
    • gaincal
    • gencal
    • hanningsmooth
    • imfit
    • imhistory
    • immath
    • immoments
    • impbcor
    • importasap
    • importasdm
    • importfits
    • importnro
    • importuvfits
    • impv
    • imrebin
    • imregrid
    • imsmooth
    • imstat
    • imsubimage
    • imtrans
    • imval
    • listobs
    • mstransform
    • plotcal
    • plotms
    • plotprofilemap
    • polcal
    • sdbaseline
    • sdcal
    • sdfit
    • sdfixscan
    • sdgaincal
    • sdimaging
    • sdsmooth
    • setjy
    • simalma
    • simanalyze
    • simobserve
    • specfit
    • specsmooth
    • split
    • spxfit
    • tclean
  • Global Tool List
  • Documentation (developer)
  • CASA on Amazon Web Services
  • CASA Processes (developer)


Examples

task applycal examples

Often, it is desirable to calibrate calibrators and science targets in separate runs of applycal, perhaps with different interpolation parameters. First we calibrate the calibrators (fields 0 and 1) using gainfield='nearest' for the gain caltable to ensure that each calibrator will be calibrated by solutions obtained from itself.  (The bandpass calibration is typically solved from one field but applied to all fields.):

applycal(vis='n5921.ms',
         field='0,1',                             # calibrators
         spw='',                                  # all channels
         gaintable=['n5921.gcal','n5921.bcal']    # gain and bandpass tables
         gainfield=['nearest',''],                # nearest on sky for gcal
         interp=['nearest','nearest,linear'],     # nearest in time for gcal
         calwt=True)                                 # calibrate the weights, too

Next, calibrate the science target with explicit gainfield selection for the gain caltable, and linear interpolation in time:

applycal(vis='n5921.ms',
         field='2',                               # science field
         spw='',                                  # all channels
         gaintable=['n5921.gcal','n5921.bcal']    # gain and bandpass tables
         gainfield=['1',''],                      # field 1 calibrates field 2 for gcal table
         interp=['linear','nearest,linear'],      # linear in time for gcal
         calwt=True)                                 # calibrate the weights, too  
 

 

 

 

 

 

 

 

 

 

 

 

 

 

The Plone® Open Source CMS/WCM is © 2000-2022 by the Plone Foundation and friends. Distributed under the GNU GPL license.
  • Site Map
  • Accessibility
  • Contact
Powered by Plone & Python