Contributed CASA Tasks and Scripts: Difference between revisions

From CASA Guides
Jump to navigationJump to search
Jott (talk | contribs)
No edit summary
Jott (talk | contribs)
No edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 8: Line 8:




* <big> '''[[Analysis Utilities | Analysis Utilities (python module)]]'''</big> --- A Python module containing utilities for analysis and plotting, including:
* <big> '''[[Analysis Utilities | Analysis Utilities (python module)]]'''</big> --- A Python module containing utilities for analysis and plotting, including (among many others):
** [[Plotbandpass]] --- a faster version of plotcal for bandpass tables, with useful overlay capabilities
** [[Plotbandpass]] --- a faster version of plotcal for bandpass tables, with useful overlay capabilities
** [[EditIntents]] --- change the intents for a specified field in an ms
** [[EditIntents]] --- change the intents for a specified field in an ms
Line 20: Line 20:
** [[plotweather]] ---  plot weather conditions vs. time for your ms
** [[plotweather]] ---  plot weather conditions vs. time for your ms
** [[plotWVRSolutions]] ---  plot the WVR solutions in terms of baseline-based phase corrections
** [[plotWVRSolutions]] ---  plot the WVR solutions in terms of baseline-based phase corrections
** [https://safe.nrao.edu/wiki/bin/view/ALMA/Scaleweights scaleweights] -- scale the data weights by a factor, or take thee square or square root
** [[searchFlux]] --- searches the ALMA calibrator database for flux density measurements
** [[smoothbandpass]] ---  smooths an existing bandpass table with options for window length and type
** [[smoothbandpass]] ---  smooths an existing bandpass table with options for window length and type
** [[Spectralindex]] --- performs a least-squares fit to the multi-spw output from fluxscale  
** [[Spectralindex]] --- performs a least-squares fit to the multi-spw output from fluxscale  
Line 25: Line 27:


* <big> '''[[CASA Contributed Task: findsources | findsources ]]'''</big> --- This CASA task will find sources from VIZIER catalogs to place outlier fields on them for {{clean}}
* <big> '''[[CASA Contributed Task: findsources | findsources ]]'''</big> --- This CASA task will find sources from VIZIER catalogs to place outlier fields on them for {{clean}}
* <big> '''[https://github.com/chrishales/invgain invgain ]'''</big> A CASA task to invert gain tables


* <big> '''[[CASA Contributed Task: listsdm | listsdm ]]'''</big> --- A CASA task to list the contents of the SDM archive files
* <big> '''[[CASA Contributed Task: listsdm | listsdm ]]'''</big> --- A CASA task to list the contents of the SDM archive files
* <big> '''[[CASA Contributed Task: makeschedule | makeschedule ]]'''</big> --- A CASA Task to create complete schedules for JVLA observations that can be imported as a scan lists into the OPT, including initial setup, observations of flux and banpass calibrators, pointing scans, and phase calibrators.
* <big> '''[https://github.com/chrishales/plot3d plot3d]'''</big> --- CASA task to quickly inspect a measurement set for RFI by plotting time vs frequency vs amplitude.
* <big> '''[https://github.com/chrishales/pieflag pieflag]'''</big> --- CASA task to flag bad data by drawing upon statistics from reference channels in bandpass-calibrated data.
* <big> '''[https://github.com/chrishales/interpgain interpgain]'''</big> --- CASA task to linearly interpolate missing gain calibration solutions


* <big> '''[[CASA Contributed Task: stitch | stitch ]]'''</big>  --- A CASA task that replaces some channels of a spectral with those of a second spectral window. This is useful, e.g., to remove the 128MHz "suckout" frequency ranges and replace them with channels from a slightly frequency-shifted second baseband
* <big> '''[[CASA Contributed Task: stitch | stitch ]]'''</big>  --- A CASA task that replaces some channels of a spectral with those of a second spectral window. This is useful, e.g., to remove the 128MHz "suckout" frequency ranges and replace them with channels from a slightly frequency-shifted second baseband
* <big> '''[[CASA Contributed Task: makeschedule | makeschedule ]]'''</big> --- A CASA Task to create complete schedules for JVLA observations that can be imported as a scan lists into the OPT, including initial setup, observations of flux and banpass calibrators, pointing scans, and phase calibrators.




Line 37: Line 47:
* <big> '''[https://science.nrao.edu/facilities/vla/data-processing/pipeline Jansky VLA pipeline script]'''</big> --- The VLA calibration pipeline homepage
* <big> '''[https://science.nrao.edu/facilities/vla/data-processing/pipeline Jansky VLA pipeline script]'''</big> --- The VLA calibration pipeline homepage


* <big> ''''The [http://www.nordic-alma.se/support/software-tools Nordic ALMA Arc node]'''</big> --- offers a few CASA tasks and scripts, including <i>uvmultifit</i>, <i>fakeobs</i>, and <i>closures</i>
* <big> '''The [http://www.nordic-alma.se/support/software-tools Nordic ALMA Arc node]'''</big> --- offers a few CASA tasks and scripts, including <i>uvmultifit</i>, <i>fakeobs</i>, and <i>closures</i>




<big> <big> <big> CASA User-contributed Scripts </big> </big> </big>
<big> <big> <big> CASA User-contributed Scripts </big> </big> </big>


 
<!--
* <big> '''[[CASA Contributed Script: plotweather | plotWX ]]'''</big> --- Plot the weather conditions and calculate the opacity for each spectral window (EVLA)
* <big> '''[[CASA Contributed Script: plotweather | plotWX ]]'''</big> --- Plot the weather conditions and calculate the opacity for each spectral window (EVLA)
-->


* <big> '''[[CASA Contributed Script: getgain | getgain ]]'''</big> --- Reads the EVLA GainCurves file and make a plot for a specified antenna and band.
* <big> '''[[CASA Contributed Script: getgain | getgain ]]'''</big> --- Reads the EVLA GainCurves file and make a plot for a specified antenna and band.
Line 53: Line 64:
* <big> '''[[Transient reduction pipeline | Transient Reduction pipeline]]'''</big> --- Simple reduction of data taken in continuum mode to determine a flux density of an essentially unresolved or only partially resolved source
* <big> '''[[Transient reduction pipeline | Transient Reduction pipeline]]'''</big> --- Simple reduction of data taken in continuum mode to determine a flux density of an essentially unresolved or only partially resolved source


* <big> '''[http://www.cv.nrao.edu/~rreid/casa/scripts/atoz.html A-Z Repository of CASA Python Scripts]'''</big> --- Many scripts for many purposes
 
<big> <big> <big> Other Resources </big> </big> </big>
* <big> '''[http://radio-astro-tools.github.io Software Tools For Radio Astronomy]'''</big> --- A collection of python toolkits for radio astronomical data cubes

Latest revision as of 20:14, 28 September 2016

CASA User-contributed Tasks


CASA Contributed Tasks: Overview --- Learn how to use contributed CASA tasks

How to write your own CASA task


  • Analysis Utilities (python module) --- A Python module containing utilities for analysis and plotting, including (among many others):
    • Plotbandpass --- a faster version of plotcal for bandpass tables, with useful overlay capabilities
    • EditIntents --- change the intents for a specified field in an ms
    • getBaselineLengths --- returns a dictionary of the baseline lengths in your ms, by default sorted by length
    • lstrange --- lists the range of LST, UT, MJD for the whole ms, and for scans with OBSERVE_TARGET intent (including the elevation range)
    • obslist --- prints the antenna station coordinates in local offsets from the Center of Array, and computes longest/shortest baselines
    • planet --- contacts the JPL Horizons telnet service and returns the J2000 position, velocity, angular diameter, range and range rate of a solar system object
    • plotconfig --- plot any standard telescope configuration of observatories known to casa, and return an array of the sorted baseline lengths
    • plotmosaic --- shows relative location of pointings in an .ms
    • plotPWV --- reads the PWV from each antenna's WVR from the ASDM_CALWVR table in an ms, and creates a plot vs. time
    • plotweather --- plot weather conditions vs. time for your ms
    • plotWVRSolutions --- plot the WVR solutions in terms of baseline-based phase corrections
    • scaleweights -- scale the data weights by a factor, or take thee square or square root
    • searchFlux --- searches the ALMA calibrator database for flux density measurements
    • smoothbandpass --- smooths an existing bandpass table with options for window length and type
    • Spectralindex --- performs a least-squares fit to the multi-spw output from fluxscale
    • TimeOnSource --- compute the total time spent integrating on-source for each specified field
  • findsources --- This CASA task will find sources from VIZIER catalogs to place outlier fields on them for clean
  • invgain A CASA task to invert gain tables
  • listsdm --- A CASA task to list the contents of the SDM archive files
  • makeschedule --- A CASA Task to create complete schedules for JVLA observations that can be imported as a scan lists into the OPT, including initial setup, observations of flux and banpass calibrators, pointing scans, and phase calibrators.
  • plot3d --- CASA task to quickly inspect a measurement set for RFI by plotting time vs frequency vs amplitude.
  • pieflag --- CASA task to flag bad data by drawing upon statistics from reference channels in bandpass-calibrated data.
  • interpgain --- CASA task to linearly interpolate missing gain calibration solutions
  • stitch --- A CASA task that replaces some channels of a spectral with those of a second spectral window. This is useful, e.g., to remove the 128MHz "suckout" frequency ranges and replace them with channels from a slightly frequency-shifted second baseband


CASA Observatory-contributed Scripts

  • The Nordic ALMA Arc node --- offers a few CASA tasks and scripts, including uvmultifit, fakeobs, and closures


CASA User-contributed Scripts


  • getgain --- Reads the EVLA GainCurves file and make a plot for a specified antenna and band.
  • Transient Reduction pipeline --- Simple reduction of data taken in continuum mode to determine a flux density of an essentially unresolved or only partially resolved source


Other Resources