ALMA Tutorials: Difference between revisions

From CASA Guides
Jump to navigationJump to search
mNo edit summary
 
(58 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Getting Started ==
== Introduction ==


* [http://casa.nrao.edu CASA homepage]: includes download and installation information
This page contains tutorials to guide ALMA users through some common types of data imaging and analysis using CASA with example ALMA datasets. Here are some links to get started:
* [[CASA Tips]]
* [[HTT2 | CASA Hints, Tips & Tricks]]
* [[Getting Started in CASA]]
* [[How To Use A CASAGuide]]
* [[How To Use A CASAGuide]]
* [[Extracting scripts from these tutorials]]
* [[Extracting scripts from these tutorials]]
* [http://almascience.org/ ALMA Science homepage]
* [https://almascience.nrao.edu/about-alma/proposing/sensitivity-calculator ALMA Sensitivity Calculator]


== Imaging ==
{| class="wikitable"


=== First Look ===
! [[File:Alma_logo.jpg|75px|link=https://almascience.org/]]
|
* [https://almascience.org/ ALMA Science homepage]


ALMA data are delivered to users with calibrations applied and they are ready for imaging. The following "First Look" tutorials provide short examples of common next steps a user may take with their calibrated data. These guides use an example ALMA observation of TW Hya.
! [[File:CARTA_logo_text.png|100px|link=https://cartavis.org/]]
|
* [https://cartavis.org/ CARTA website]
* [https://casadocs.readthedocs.io/en/v6.6.1/notebooks/carta.html CARTA section of the CASA docs]
|-


* [[First_Look_at_Imaging | Continuum Imaging]]
! [[File:Casa_logo_full-200wide.png|75px|link=https://casa.nrao.edu]]
* [[First_Look_at_Self_Calibration | Continuum Self-Calibration]]
| style="vertical-align:bottom;" |
* [[First_Look_at_Line_Imaging | Spectral Line Imaging]]
* [https://casa.nrao.edu CASA homepage]: includes download and installation information
* [[First_Look_at_Image_Analysis | Moments and Image Analysis]]
* {{casadocs_6.6.1}}
* [[CASA Tips]]
* [[Getting Started in CASA]]
To cite CASA, please use:<br>[https://ui.adsabs.harvard.edu/abs/2022PASP..134k4501C/abstract \bibitem<nowiki>[CASA Team et al.(2022)]</nowiki>{2022PASP..134k4501C} CASA Team, Bean, B., Bhatnagar, S., et al.\ 2022, PASP, 134, 114501. doi:10.1088/1538-3873/ac9642]
Production version for Cycle 11: '''CASA 6.6.1'''


Older versions of these guides are archived here: [[ALMA_First_Look]]
! <font size = 4> [https://almascience.nrao.edu/processing/science-pipeline/ Pipeline] <!--[[File:pipeline_logo.png|75px|link=https://almascience.nrao.edu/processing/science-pipeline/]]-->
| style="vertical-align:bottom;" |
* [https://almascience.nrao.edu/processing/science-pipeline ALMA Pipeline webpage]
* [[ALMA Pipeline Known Issues]]
To cite the ALMA pipeline, please use:<br>[https://ui.adsabs.harvard.edu/abs/2023PASP..135g4501H/abstract \bibitem<nowiki>[Hunter et al.(2023)]</nowiki>{2023PASP..135g4501H} Hunter, T.~R., Indebetouw, R., Brogan, C.~L., et al.\ 2023, PASP, 135, 074501. doi:10.1088/1538-3873/ace216]
Production version for Cycle 11: '''Pipeline 2024.1.0.8'''


|}
<!--
<!--
Community Day Tutorials:
;ALMA
* [[First_Look_at_Imaging_CDE | A first look at imaging in CASA]]:  This guide gives a first look at imaging and image analysis in CASA.
* [https://almascience.org/ ALMA Science homepage]
* [[First_Look_at_Self_Calibration_CDE | A first look at self-calibration in CASA]]:  This guide demonstrates continuum self-cal.
* [[First_Look_at_Line_Imaging_CDE | A first look at spectral line imaging in CASA]]: This guide shows imaging of a spectral line.
* [[First_Look_at_Image_Analysis_CDE | A first look at image analysis in CASA]]:  This guide demonstrates moment creation and basic image analysis.
-->


* [[ALMA_Imaging_Pipeline_Reprocessing | Examples for ALMA Imaging Pipeline Reprocessing]]
;CASA
* [[ALMA Renormalization Correction]]
* [https://casa.nrao.edu CASA homepage]: includes download and installation information
* [[Guide_NA_ImagingTemplate | A guide for using the North American ALMA Manual Imaging Template]]
* {{casadocs_6.6.1}}
* [[TCLEAN_and_ALMA | Examples for using the tclean CASA task for ALMA Imaging]].
* [[CASA Tips]]
* [[Automasking_Guide | A guide to automasking]]: This guide demonstrates the automasking functionality of {{tclean_6.5.4}}.  
* [[Getting Started in CASA]]
 
* [[How To Use A CASAGuide]]
=== CARTA ===
* [[Extracting scripts from these tutorials]]
 
To cite CASA, please use:<br>[https://ui.adsabs.harvard.edu/abs/2022PASP..134k4501C/abstract \bibitem<nowiki>[CASA Team et al.(2022)]</nowiki>{2022PASP..134k4501C} CASA Team, Bean, B., Bhatnagar, S., et al.\ 2022, PASP, 134, 114501. doi:10.1088/1538-3873/ac9642]
Guides that have been updated to demonstrate CARTA will include this statement near the top:
{{CARTA_6.5.4}}
 
== Pipeline ==


;Pipeline
* [https://almascience.nrao.edu/processing/science-pipeline ALMA Pipeline webpage]
* [https://almascience.nrao.edu/processing/science-pipeline ALMA Pipeline webpage]
* [[ALMA Pipeline Known Issues]]
* [[ALMA Pipeline Known Issues]]
To cite the ALMA pipeline, please use:<br>[https://ui.adsabs.harvard.edu/abs/2023PASP..135g4501H/abstract \bibitem<nowiki>[Hunter et al.(2023)]</nowiki>{2023PASP..135g4501H} Hunter, T.~R., Indebetouw, R., Brogan, C.~L., et al.\ 2023, PASP, 135, 074501. doi:10.1088/1538-3873/ace216]


== Manual Calibration and Imaging ==
;CARTA
* [https://cartavis.org/ CARTA website]
* [https://casadocs.readthedocs.io/en/v6.6.1/notebooks/carta.html CARTA section of the CASA docs]
-->


These guides are useful tools for those who would like to learn the process of calibration and imaging in detail. They use publicly-available [ALMA Science Verification https://almascience.nrao.edu/alma-data/science-verification] data that illustrate several different ALMA capabilities. The links below lead to overview pages for each observation. The guides themselves are linked from the overview pages.
== Basic Imaging and Analysis ==


=== Mosaic (Band 7) ===
ALMA data are delivered to users with calibrations applied and they are ready for imaging. The following "First Look" tutorials provide short examples of common next steps a user may take with their calibrated data. These guides use an example ALMA observation of TW Hydra.


* [[AntennaeBand7]]: Mosaic of the galaxy merger NGC 4038/4039 (Antennae) at Band 7 (0.87 mm). Validated for CASA 6.5.4.
{| class="wikitable"


=== Mosaic (Band 9) ===
! [[First Look at Imaging]] (continuum)
|
This guide discusses '''continuum imaging''' and demonstrates both '''interactive and non-interactive tclean''' usage. Also discusses primary beam corrections.
| style="text-align:center;" rowspan=4 | [[File:TWHya.png|150px]]
|-
! [[First Look at Self Calibration]]
|
This guide is the second in sequence. It is an in-depth exploration of '''self-calibration''', which discusses motivations and model creation, and follows a detailed step-by-step process for both '''phase self-calibration''' and '''amplitude self-calibration'''.
|-
! [[First Look at Line Imaging]]
|
This guide picks up where the self-calibration guide leaves off and demonstrates continuum range determination, '''continuum subtraction''', and imaging the molecular line.
|-
! [[First Look at Image Analysis]]
|
This guide uses the images created by the line imaging guide, and demonstrates '''image inspection''', statistics generation, moment maps, and file exporting.
|-


* [[IRAS16293Band9]]: Mosaic of the protostellar cluster IRAS16293-2422 at Band 9 (0.45 mm). Validated for CASA 6.5.4.
|}


=== Total Power (Single Dish) and Array Combination ===
Older versions of these guides are archived here: [[ALMA First Look]]
<!--
Community Day Tutorials:
* [[First_Look_at_Imaging_CDE | A first look at imaging in CASA]]:  This guide gives a first look at imaging and image analysis in CASA.
* [[First_Look_at_Self_Calibration_CDE | A first look at self-calibration in CASA]]:  This guide demonstrates continuum self-cal.
* [[First_Look_at_Line_Imaging_CDE | A first look at spectral line imaging in CASA]]:  This guide shows imaging of a spectral line.
* [[First_Look_at_Image_Analysis_CDE | A first look at image analysis in CASA]]:  This guide demonstrates moment creation and basic image analysis.
-->


* [[M100_Band3]]: Demonstration of combining 12m-array, 7m-array, and Total Power data for M100. Validated for CASA 6.5.4.
== Advanced Imaging ==


=== Full Polarization ===
{| class="wikitable"


* [[3C286_Polarization]]: Demonstration of the reduction of ALMA continuum polarization toward the quasar 3C286. Validated for CASA 6.5.4.
! [[ALMA Imaging Pipeline Reprocessing | Customized Pipeline Imaging]]
|
This guide describes how to use ALMA pipeline tasks to restore & modify images.  
|-


=== Solar Observing ===
! [[Guide to the NA Imaging Template | NA Manual Imaging Templates]]
| This guide describes the template scripts used to manually image data for quality assurance by the North American ALMA Science Center (NAASC).
|-


* [[Sunspot_Band6]]: Demonstration of the reduction and imaging of solar data at Band 6 (1.25mm). Validated for CASA 6.5.4.
! [[Automasking Guide | Automasking]]
| This guide describes how to automatically mask clean regions during non-interactive cleaning.
|-


== Simulation ==
|}


Start here to learn about simulations: [[Guide To Simulating ALMA Data]]  
'''Jump to special imaging topics from the End to End guides:'''
* [[AntennaeBand7_Imaging | AntennaeBand7 > Mosaic Imaging]]
* [[IRAS16293_Band9_-_Imaging | IRAS16293 Band9 > Mosaic Imaging]]
* [[M100_Band3_Combine | M100 Band3 > Data Combination]]
* [[3C286_Band6Pol_Imaging | 3C286 Band6 > Full Polarization Imaging]]
* [[Sunspot_Band6_Feathering | Sunspot Band6 > Data Combination]]


Jump directly to examples: [[Simulating Observations in CASA]]
== End to End Guides (Manual Calibration) ==


== Tools ==
These guides are useful tools for those who would like to learn the process of calibration and imaging in detail. They use publicly-available [https://almascience.org/alma-data/science-verification ALMA Science Verification] data that illustrate several different ALMA capabilities. The links below lead to overview pages for each observation. The guides themselves are linked from the overview pages.


* [[DataWeightsAndCombination | A Guide to CASA Data Weights and How to Ensure They are Correct for Data Combination]]
{| class="wikitable"


* [[TCLEAN_and_ALMA | Examples for using the new tclean CASA task for ALMA Imaging]]
! [[AntennaeBand7]]
|
Discusses full calibration of '''standard 12m interferometry data''' in Band 7 (345 GHz, 0.87mm), using an extended workflow to '''calibrate multiple ASDMs''' simultaneously. Primarily focuses on inspection of the data for flagging, and plotms commands to recreate plots typically included in a QA2 weblog. Also discusses imaging of '''mosaic data''' across two separate regions, including '''continuum subtraction''', '''self-calibration''', and generation of '''image cubes''' for the CO (3-2) spectral line. It concludes with image analysis via '''moment maps''' and '''file exporting'''.
| style="text-align:center;" | [[File:604px-Antennae_galaxies_xl.jpg|100px]]
|-


* [[Analysis Utilities]] -- a Python module containing utilities for analysis and plotting.  
! [[IRAS16293Band9]]
|
Discusses full calibration of 12m interferometry Band 9 ('''high frequency''', 650 GHz, 0.46 mm) data of a protostellar cluster, including inspection of the data for flagging, and plotms commands to recreate plots typically included in a QA2 weblog.  Also discusses imaging of '''mosaic data''', including '''self-calibration''' and generation of '''image cubes''' and '''moment maps'''.
| style="text-align:center;" | [[File:Intro.jpg|200px]]
|-


* [[Solar System Models in CASA 4.0 | Solar System Models in CASA 4.0]] and beyond
! [[M100 Band3]]
|
Band 3 (100 GHz, 3 mm) on M100 demonstrates '''Single Dish''' (Total Power) data reduction and 12m, 7m, Total Power '''data combination''' procedures.
| style="text-align:center;" | [[File:M100_NASA.jpg|100px]]
|-


* Tutorials related to ALMA Solar Science Verification Data: [http://almascience.org/alma-data/science-verification/tutorial-alma-solar-science-verification-data CASA 4.7]
! [[3C286 Polarization]]
|
Standard calibrations and '''polarization calibration''' (XX, XY, YX, YY) of 3c286 in Band 6 (230 GHz, 1.3 mm), a quasar frequently used as a flux calibrator source. '''Full Stokes imaging''' (IQUV), '''self-calibration''', and analysis of '''polarization intensity''' and '''polarization angle''' using both CARTA and numerical methods.
| style="text-align:center;" | [[File:VLA_3c286.png|200px]]
|-


* [[ADMIT_Products_and_Usage | A guide for utilizing ADMIT for your data]]: This guide discusses how to use ADMIT and customize it for your data.
! [[Sunspot Band6]]
|  
Using Band 6 data (230 GHz, 1.3 mm) from a sunspot observation, this guide discusses '''solar observing techniques.''' Calibration and Imaging guides walk though the unique challenges presented by ALMA solar data. The Single Dish guide covers this process for the ALMA total power array. Finally, the Feathering guide covers '''combining interferometric images with single dish images'''.
| style="text-align:center;" | [[File:Sunspot_SolarMonitor.png|150px]]


|}


== Legacy ==
== Special Topics ==


[[Archived_ALMA_CASAguides]]
* [[ADMIT Products and Usage]]: This guide discusses how to use the ALMA Data-Mining Toolkit (ADMIT) and customize it for your data.
* [[Analysis Utilities]]: A Python module containing utilities for analysis and plotting.
* [[ALMA Renormalization Correction | Renormalization]]: A fix for amplitude calibration issues caused by the ALMA normalization strategy for sources with strong line emission.
* [[DataWeightsAndCombination | Data Weights]]: A guide to CASA data weights and how to ensure they are correct for data combination. Relevant for data from Cycles 0, 1, and 2.
* [[Guide To Simulating ALMA Data]]: An overview of simulation as it pertains to ALMA.
* [[Simulating Observations in CASA]]: All simulation guides (for ALMA, VLA, ngVLA, etc.)


''The following ALMA science verification guides and scripts have been validated for older versions of CASA, and will not continue to be updated for new CASA releases. ''
== Resources ==


* [[TWHydraBand7 | TWHydraBand7]]: The protoplanetary disk source TW Hya at Band 7 (0.87 mm). Last validated for CASA 4.3.
* [[Archived ALMA CASAguides]]
* [[NGC3256Band3 | NGC3256Band3]]: The galaxy merger NGC 3256 at Band 3 (3 mm). Last validated for CASA 4.3.  
* [https://almascience.org/about-alma/proposing/sensitivity-calculator ALMA Sensitivity Calculator]
* [[ALMA2014_LBC_SVDATA]]: Imaging scripts and details for the 2014 ALMA Long Baseline Campaign science verification data for Juno, Mira, HL Tau, and SDP.81. Last validated for CASA 4.2.2.
* [[Karl G. Jansky VLA Tutorials]]
* [[File:BR1202_SV_Band7_Calibration_notes.pdf | BR1202_SV_Band7_Calibration_notes]]: Supplemental notes on the calibration of Science Verification target BR1202-0725 in CASA 3.3.  
* [[Past MM/Submm Guides]]: Old CASA guides for non-NRAO telescopes.


<!--
<!--
** [[M100_Band3]]
[[ALMAguides_old_homepage]]
** [[M100_Band3_SingleDish_4.3]]
[[ALMA_Tutorials_draft]]
** [[M100_Band3_Combine_4.3]]
**[[3C286_Polarization]]
**[[3C286_Polarization_Calibration_4.2.2]]
**[[3C286_Polarization_Imaging_4.2.2]]
[[Automasking_Guide]]
-->
-->
=== Cycle 0 ===
[[Guide_To_Processing_ALMA_Data_for_Cycle_0 | A Guide to Processing ALMA Data for Cycle 0]] (last checked in CASA 4.2) takes you through the steps of processing Cycle 0 data from the ALMA data archive.  The guide describes some helpful hints for downloading the data, and describes the process all the way through imaging and self-calibration, and image analysis.
You can also get a look at example data calibration scripts used for Cycle 0 data at the following links.  These were written for CASA version 3.4.
* TDM (128 channels/spw) [[File:TDM.example.ms.scriptForCalibration.py]]
* FDM (3840 channels/spw) [[File:FDM.example.ms.scriptForCalibration.py]]
* If you need to update 3.4 scripts to 4.2 or later, see more information [[Updating_a_script_to_work_with_CASA_4.2|here]]
== Other Telescopes ==
* [[Karl G. Jansky VLA Tutorials]]
* [[Past_MM/Submm_Guides]]: These are not currently being maintained.


{| style="width: 100%; valign: top; background-color:#CCFFFF; border:1px solid #3366FF;" cellpadding=1  
{| style="width: 100%; valign: top; background-color:#CCFFFF; border:1px solid #3366FF;" cellpadding=1  

Latest revision as of 21:54, 22 November 2024

Introduction

This page contains tutorials to guide ALMA users through some common types of data imaging and analysis using CASA with example ALMA datasets. Here are some links to get started:

To cite CASA, please use:
\bibitem[CASA Team et al.(2022)]{2022PASP..134k4501C} CASA Team, Bean, B., Bhatnagar, S., et al.\ 2022, PASP, 134, 114501. doi:10.1088/1538-3873/ac9642

Production version for Cycle 11: CASA 6.6.1

Pipeline
To cite the ALMA pipeline, please use:
\bibitem[Hunter et al.(2023)]{2023PASP..135g4501H} Hunter, T.~R., Indebetouw, R., Brogan, C.~L., et al.\ 2023, PASP, 135, 074501. doi:10.1088/1538-3873/ace216

Production version for Cycle 11: Pipeline 2024.1.0.8

Basic Imaging and Analysis

ALMA data are delivered to users with calibrations applied and they are ready for imaging. The following "First Look" tutorials provide short examples of common next steps a user may take with their calibrated data. These guides use an example ALMA observation of TW Hydra.

First Look at Imaging (continuum)

This guide discusses continuum imaging and demonstrates both interactive and non-interactive tclean usage. Also discusses primary beam corrections.

First Look at Self Calibration

This guide is the second in sequence. It is an in-depth exploration of self-calibration, which discusses motivations and model creation, and follows a detailed step-by-step process for both phase self-calibration and amplitude self-calibration.

First Look at Line Imaging

This guide picks up where the self-calibration guide leaves off and demonstrates continuum range determination, continuum subtraction, and imaging the molecular line.

First Look at Image Analysis

This guide uses the images created by the line imaging guide, and demonstrates image inspection, statistics generation, moment maps, and file exporting.

Older versions of these guides are archived here: ALMA First Look

Advanced Imaging

Customized Pipeline Imaging

This guide describes how to use ALMA pipeline tasks to restore & modify images.

NA Manual Imaging Templates This guide describes the template scripts used to manually image data for quality assurance by the North American ALMA Science Center (NAASC).
Automasking This guide describes how to automatically mask clean regions during non-interactive cleaning.

Jump to special imaging topics from the End to End guides:

End to End Guides (Manual Calibration)

These guides are useful tools for those who would like to learn the process of calibration and imaging in detail. They use publicly-available ALMA Science Verification data that illustrate several different ALMA capabilities. The links below lead to overview pages for each observation. The guides themselves are linked from the overview pages.

AntennaeBand7

Discusses full calibration of standard 12m interferometry data in Band 7 (345 GHz, 0.87mm), using an extended workflow to calibrate multiple ASDMs simultaneously. Primarily focuses on inspection of the data for flagging, and plotms commands to recreate plots typically included in a QA2 weblog. Also discusses imaging of mosaic data across two separate regions, including continuum subtraction, self-calibration, and generation of image cubes for the CO (3-2) spectral line. It concludes with image analysis via moment maps and file exporting.

IRAS16293Band9

Discusses full calibration of 12m interferometry Band 9 (high frequency, 650 GHz, 0.46 mm) data of a protostellar cluster, including inspection of the data for flagging, and plotms commands to recreate plots typically included in a QA2 weblog. Also discusses imaging of mosaic data, including self-calibration and generation of image cubes and moment maps.

M100 Band3

Band 3 (100 GHz, 3 mm) on M100 demonstrates Single Dish (Total Power) data reduction and 12m, 7m, Total Power data combination procedures.

3C286 Polarization

Standard calibrations and polarization calibration (XX, XY, YX, YY) of 3c286 in Band 6 (230 GHz, 1.3 mm), a quasar frequently used as a flux calibrator source. Full Stokes imaging (IQUV), self-calibration, and analysis of polarization intensity and polarization angle using both CARTA and numerical methods.

Sunspot Band6

Using Band 6 data (230 GHz, 1.3 mm) from a sunspot observation, this guide discusses solar observing techniques. Calibration and Imaging guides walk though the unique challenges presented by ALMA solar data. The Single Dish guide covers this process for the ALMA total power array. Finally, the Feathering guide covers combining interferometric images with single dish images.

Special Topics

  • ADMIT Products and Usage: This guide discusses how to use the ALMA Data-Mining Toolkit (ADMIT) and customize it for your data.
  • Analysis Utilities: A Python module containing utilities for analysis and plotting.
  • Renormalization: A fix for amplitude calibration issues caused by the ALMA normalization strategy for sources with strong line emission.
  • Data Weights: A guide to CASA data weights and how to ensure they are correct for data combination. Relevant for data from Cycles 0, 1, and 2.
  • Guide To Simulating ALMA Data: An overview of simulation as it pertains to ALMA.
  • Simulating Observations in CASA: All simulation guides (for ALMA, VLA, ngVLA, etc.)

Resources