casatasks
Tasks in CASA are python interfaces to the more basic toolkit. Tasks are executed to perform a single job, such as loading, plotting, flagging, calibrating, and imaging the data.
The parameters used and their defaults can be obtained by typing help(<taskname>)
at the Python prompt,
where <taskname>
is the name of a given task. This command lists all parameters, a brief
description of the parameter, the parameter default, and any options if there are limited allowed values
for the parameter.
Experimental tasks and algorithms
Some tasks and algorithms in CASA are labelled as Experimental or Unverified. These tasks have not been fully commissioned and/or verified. Such tasks are provided to enhance user capabilities, or because they are required for specific pipeline use.
The label Experimental or Unverified means that the task/algorithm falls under the following disclaimers:
Only a subset of modes have been incorporated into CASA unit/regression tests. These are documented in CASA Docs. Other options/modes may be run, and might work just fine, but they are not part of what has been tested carefully.
Some parameters have been tested for specific use cases (as part of the algorithm development, publication, and CASA test programs), but we have not yet established best practices for all different situations. This information will build over time and will be incorporated into our documentation as appropriate.
Experimental tasks and algorithms may have Known Issues, representing CASA's current understanding of the state of the code. These Known Issues are clearly defined as part of CASA Docs.
Parameter names and task structure can change, based on feedback and improved understanding of usability.
It is expected that ALMA and VLA pipelines will begin using experimental tasks only after they have stabilized for stand-alone use.
The complete listing of tasks available in CASA is as follows:
Input / Output
Convert a CASA visibility file (MS) into an ALMA or EVLA Science Data Model |
|
Convert a CASA image to a FITS file |
|
Convert a CASA visibility data set to a UVFITS file: |
|
Query the JPL-Horizons database for ephemeris data and create a CASA table |
|
Convert an ALMA Science Data Model observation into a CASA visibility file (MS) |
|
Import ATCA RPFITS file(s) to a measurement set |
|
Convert an image FITS file into a CASA image |
|
Convert a FITS-IDI file to a CASA visibility data set |
|
Convert a UVFITS file to a CASA visibility data set |
|
Convert a Miriad visibility file into a CASA MeasurementSet |
|
Convert a UVFITS file to a CASA visibility data set |
|
Import VLA archive file(s) to a measurement set |
|
Convert a downloaded Splatalogue spectral line list to a casa table. |
Information
Summarized description of an ASDM dataset. |
|
Calculates statistical information on a calibration table |
|
List, get and put image header parameters |
|
Retrieve and modify image history |
|
Calculates statistical information from an image or image region |
|
List antenna gain solutions |
|
List the HDU and typical data rows of a fits file: |
|
List the processing history of a dataset: |
|
Get the summary of a MeasurementSet and list it in the logger or in a file |
|
Get the summary of a multi-MS data set and print in the logger or in a file |
|
Lists observation information present in an SDM directory. |
|
List measurement set visibilities. |
|
Search a spectral line table. |
|
List, summary, get, and put metadata in a measurement set |
|
Calculates statistical information from a MeasurementSet |
Flagging
Flagging task based on batches of flag-commands |
|
All-purpose flagging task based on data-selections and flagging modes/algorithms. |
|
Enable list, save, restore, delete and rename flag version files. |
Calibration
Normalize visibilities based on auto-correlations |
|
Apply calibrations solutions(s) to data |
|
Calculates a bandpass calibration solution |
|
Calculate a baseline-based calibration solution (gain or bandpass) |
|
Re-initializes the calibration for a visibility data set |
|
Manually set scan intents |
|
Bootstrap the flux density scale from standard calibrators |
|
Fringe fit delay and rates |
|
Determine temporal gains from calibrator observations |
|
Specify Calibration Values of Various Types |
|
Retrieve antenna positions by querying ALMA web service. |
|
Retrieve calibrator brightness distributions from a VLA web service. |
|
Initializes weight information in the MS |
|
Determine instrumental polarization calibrations |
|
Derive linear polarization from gain ratio |
|
Re-apply refant to a caltable |
|
Smooth calibration solution(s) derived from one or more sources |
|
Generate a gain table based on Water Vapour Radiometer data |
Imaging
Imaging sensitivity estimation |
|
Image-domain deconvolution |
|
Deletes model representations in the MS |
|
Combine two images using their Fourier transforms |
|
Insert a source model as a visibility set |
|
Construct a primary beam corrected image from an image and a primary beam pattern. |
|
Makes and manipulates image masks |
|
Make a component list for a known calibrator |
|
Form images from interferometric visibilities and single dish image to reconstruct a sky model by joint deconvolution. |
|
Fills the model column with the visibilities of a calibrator |
|
Radio Interferometric Image Reconstruction |
|
Wideband PB-correction on the output of the MS-MFS algorithm |
Single Dish
Convert ASAP Scantable data into a CASA visibility file (MS) |
|
Convert NOSTAR data into a CASA visibility file (MS) |
|
Average SD data over beams and do time averaging |
|
Offline correction of residual atmospheric features |
|
Fit/subtract a spectral baseline |
|
MS SD calibration task |
|
Fit a spectral line |
|
Task for single-dish image processing |
|
MS SD gain calibration task |
|
SD task: imaging for total power and spectral data |
|
Average SD spectra over polarisation |
|
[EXPERIMENTAL] invoke sideband separation using FFT |
|
Smooth spectral data |
|
Average SD data, perform time averaging |
|
SD task: imaging for total power and spectral data |
Manipulation
Clear all autolock locks |
|
Concatenate several visibility data sets. |
|
Change the sign of the phases in all visibility columns. |
|
regrid an MS to a new spectral window / channel structure or frame |
|
Regrid an MS or MMS to a new spectral window, channel structure or frame |
|
Changes FIELD and SOURCE table entries based on user-provided direction or POINTING table, optionally fixes the UVW coordinates |
|
Recalculates (u, v, w) and/or changes Phase Center |
|
Hanning smooth frequency channel data to remove Gibbs ringing |
|
Split the MS, combine/separate/regrid spws and do channel and time averaging |
|
grid the visibility data onto a defined uniform grid (in the form of an ms); multiple MS's can be done onto the same grid |
|
Task to produce Multi-MSs using parallelism |
|
Rotate a Measurement Set to a new phase-center |
|
Remove tables cleanly, use this instead of rm -rf |
|
Create a visibility subset from an existing visibility set |
|
Compute and set weights based on variance of data. |
|
continuum subtraction in the uv domain |
|
Continuum fitting and subtraction in the uv plane |
|
Fit a single component source model to the uv data |
|
Subtract/add model from/to the corrected visibility data. |
|
Concatenate several visibility data sets into a multi-MS |
Analysis
Image-based baseline subtraction for single-dish data |
|
Collapse image along one axis, aggregating pixel values along that axis. |
|
Estimates and subtracts continuum emission from an image cube |
|
Create an image that can represent the statistical deviations of the input image. |
|
Fit one or more elliptical Gaussian components on an image region(s) |
|
Perform math operations on images |
|
Compute moments from an image |
|
Construct a position-velocity image by choosing two points in the direction plane. |
|
Rebin an image by the specified integer factors |
|
Change the frame in which the image reports its spectral values |
|
regrid an image onto a template image |
|
Smooth an image or portion of an image |
|
Create a (sub)image from a region of the image |
|
Reorder image axes |
|
Get the data value(s) and/or mask value in an image. |
|
Calculate rotation measure |
|
Fit 1-dimensional gaussians and/or polynomial models to an image or image region |
|
Report spectral profile and calculate spectral flux over a user specified region |
|
Smooth an image region in one dimension |
|
Fit a 1-dimensional model(s) to an image(s) or region for determination of spectral index. |
Visualization
Plot the antenna distribution in the local reference frame |
|
Makes detailed plots of Tsys and bandpass solutions. |
|
Makes profile map |
|
Plot elements of the weather table; estimate opacity |
Simulation
Simulation task for ALMA |
|
image and analyze measurement sets created with simobserve |
|
visibility simulation task |