Scripts generated on 23-January-2014 and after should already be compatible with the scriptForPI.py. If you want to make a script generated before 23-January-2014 compatible with the scriptForPI.py, here are the steps to follow:

  • Here is an example directory structure
    • ./Reduce_00031
      • ./Reduce_00031/uid___A...X001/ --> one EB
      • ./Reduce_00031/uid___A...X002/ --> the other EB
      • ./Reduce_00031/Calibration_X001
      • ./Reduce_00031/Calibration_X002
      • ./Reduce_00031/Comination
      • ./Reduce_00031/Combination/calibrated --> This is where you put the .split.cal measurement sets (note lower case)
      • ./Reduce_00031/Imaging

  • Add, as the last line of each scriptForCalibration, this line
    • split(vis='uid ....ms.split', outputvis='uid ....ms.split.cal')
  • Edit the calibration script and turn
       # if applyonly != True:
       #   try:
       #     print 'List of steps to be executed ...', mysteps
       #     thesteps = mysteps
       #   except:
       #     print 'global variable mysteps not set.'
       # if (thesteps==[]):
       #   thesteps = range(0,len(step_title))
       #   print 'Executing all steps: ', thesteps
       
  • to
      # try:
      #   print 'List of steps to be executed ...', mysteps
      #   thesteps = mysteps
      # except:
      #   print 'global variable mysteps not set.'
      # if (thesteps==[]):
      #   thesteps = range(0,len(step_title))
      #   print 'Executing all steps: ', thesteps
      
  • I.e. delete the first "if" line and shift the other lines two spaces to the left.
  • Make sure that in front of each call to aU..., there is a
     if applyonly != True: 
  • Move the .split.cal measurement sets into the Combination/calibrated directory
  • If you have one, edit the scriptForFluxCalibration to:
    • Remove the calls to split (they are now in the calibration scripts)
    • Make sure that the right paths to the .ms.split.cal measurement sets are used, i.e. simply "calibrated/uid___....ms.split.cal"
      • See the Getting Started - Computer related information section above

-- ScottSchnee - 2014-01-23

This topic: ALMA > Cycle1DataReduction > ScriptForPICompatability
Topic revision: 2014-01-23, ScottSchnee
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback