Guide To Simulating ALMA Data: Difference between revisions

From CASA Guides
Jump to navigationJump to search
Jbraatz (talk | contribs)
Hsheets (talk | contribs)
mNo edit summary
 
(37 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{checked_6.6.1}}
[[Category: Simulations]] [[Category: ALMA]]
[[Category: Simulations]] [[Category: ALMA]]
'''THIS PAGE IS UNDER CONSTRUCTION'''


== Introduction: About this Document ==
== Introduction: About this Document ==
Line 10: Line 9:
* Examples of simulating ALMA data
* Examples of simulating ALMA data
* Running your own simulations with the ALMA Observation Support Tool
* Running your own simulations with the ALMA Observation Support Tool
* Simulating ALMA observations with CASA sim tools (using CASA 4.2)
* Simulating ALMA observations with CASA sim tools


== Why Simulate ALMA Observations? ==
== Why Simulate ALMA Observations? ==
Line 23: Line 22:
Simulations of ALMA observations are not required for an ALMA proposal; however, a simulation could bolster an ALMA proposal in some cases.  For example, simulations can demonstrate the need for specific configurations, or combinations of configurations, to resolve certain structures or meet specific scientific goals.
Simulations of ALMA observations are not required for an ALMA proposal; however, a simulation could bolster an ALMA proposal in some cases.  For example, simulations can demonstrate the need for specific configurations, or combinations of configurations, to resolve certain structures or meet specific scientific goals.


In Full Operations, ALMA will include a main array of fifty 12-m antennas, and the ALMA Compact Array (ACA) which encompasses twelve 7-m antennas and four 12-m antennas used for "total power" observations.  At this time, every ALMA observation employs the 12-m main array.  The 7-m array and Total Power observations are optional, used to fill in large-scale structure in mapping experiments.  The ALMA OT advises users on whether to use the ACA based on two numbers: the required resolution and the maximum angular scale.  If you have some uncertainty in the spatial scales for your ALMA target, you may wish to use simulations to justify inclusion of the ACA.
In Full Operations, ALMA will include a main array of fifty 12 m antennas, and the ALMA Compact Array (ACA) which comprises twelve 7 m antennas and four 12 m antennas used for "total power" observations.  At this time, every ALMA observation employs the 12-m main array.  Observations with the 7-m Array and Total Power antennas are optional, used to fill in large-scale structure in mapping experiments.  The ALMA OT advises users on whether to use the ACA based on two numbers: the required resolution and the maximum angular scale.  If you have some uncertainty in the spatial scales for your ALMA target, you may wish to use simulations to justify inclusion of the ACA.


=== Background Information for Those New to Interferometry ===
=== Background Information for Those New to Interferometry ===
Line 34: Line 33:


{| style="width: 100%; valign: top; background-color:#E0E0E0; border:1px solid #3366FF; text-align: left; cellpadding=0"
{| style="width: 100%; valign: top; background-color:#E0E0E0; border:1px solid #3366FF; text-align: left; cellpadding=0"
| rowspan=2; stype="border-bottom:1px solid black;" | [[File:points-panels.png | 200px]]
| rowspan=2; stype="border-bottom:1px solid black;" | [[File:Points-panels-hf.png | 200px]]
! A Collection of Point Sources
! A Collection of Point Sources
|-
|-
| style="border-bottom:1px solid black;" | This example shows a simulated observation of a model with multiple point sources.  The "plus" symbols in the model image represent locations of the point sources.  The panels in this example and those that follow show the model image and the simulated observation with an "extended" array on the top row.  The bottom row shows an observation with a compact configuration, and then a compact configuration with the ACA included.  The ellipse on the bottom left of the simulated data shows the synthesized beam size.  The angular size of the image is XX" by XX" (get this from Juergen).   
| style="border-bottom:1px solid black;" | This example shows a simulated observation of a model with multiple point sources.  The "plus" symbols in the model image represent locations of the point sources.  The panels in this example and those that follow show the model image and the simulated observation with an "extended" array on the top row.  The bottom row shows an observation with a compact configuration, and then a compact configuration with the ACA included.  The ellipse on the bottom left of the simulated data shows the synthesized beam size.  The angular size of the image is approximately 6x6 arcsec.   


In general, it is preferable to observe closely-spaced compact sources with an extended configuration, as demonstrated in these simulations.  Note that the ACA does not contribute significantly to this observation.  It's main contribution comes in observing sources with relatively bright, diffuse emission in addition, perhaps, to compact targets.
In general, it is preferable to observe closely-spaced compact sources with an extended configuration, as demonstrated in these simulations.  Note that the ACA does not contribute significantly to this observation.  It's main contribution comes in observing sources with relatively bright, diffuse emission in addition, perhaps, to compact targets.
Line 46: Line 45:


{| style="width: 100%; valign: top; background-color:#E0E0E0; border:1px solid #3366FF; text-align: left; cellpadding=0"
{| style="width: 100%; valign: top; background-color:#E0E0E0; border:1px solid #3366FF; text-align: left; cellpadding=0"
| rowspan=2; stype="border-bottom:1px solid black;" | [[File:gaussians-panels.png | 200px]]
| rowspan=2; stype="border-bottom:1px solid black;" | [[File:Gaussians-panels-hf.png | 200px]]
! Point Sources and Elliptical Gaussian Brightness Distributions
! Point Sources and Elliptical Gaussian Brightness Distributions
|-
|-
Line 58: Line 57:


{| style="width: 100%; valign: top; background-color:#E0E0E0; border:1px solid #3366FF; text-align: left; cellpadding=0"
{| style="width: 100%; valign: top; background-color:#E0E0E0; border:1px solid #3366FF; text-align: left; cellpadding=0"
| rowspan=2; stype="border-bottom:1px solid black;" | [[File:m51-panels.png | 200px]]
| rowspan=2; stype="border-bottom:1px solid black;" | [[File:M51-panels-hf.png | 200px]]
! An M51-like Galaxy
! An M51-like Galaxy
|-
|-
| style="border-bottom:1px solid black;" | Here we simulate an observation of a galaxy.  The angular scale is XX" by XX".  Need to work with Juergen to complete this description.
| style="border-bottom:1px solid black;" | Here we simulate an observation of a galaxy similar in structure to M51, but smaller in angular scale.  The extended array observation gives a reasonably good representation of the model image, because most of the apparent emission is on small angular scales.  The compact array observation shows a negative "bowl" of emission between the spiral arms because of the missing short-spacing dataBy adding the ACA to the compact array observation, the short spacings are recovered and the final flux densities recorded are truer to the model image.
|-
|-
|}
|}
Line 68: Line 67:
<!--
<!--
{| style="width: 100%; valign: top; background-color:#E0E0E0; border:1px solid #3366FF; text-align: left; cellpadding=0"
{| style="width: 100%; valign: top; background-color:#E0E0E0; border:1px solid #3366FF; text-align: left; cellpadding=0"
| rowspan=2; stype="border-bottom:1px solid black;" | [[File:proto-panels.png | 200px]]
| rowspan=2; stype="border-bottom:1px solid black;" | [[File:Proto-panels-hf.png | 200px]]
! A Simplified Model of a Proto-planetary Disk
! A Simplified Model of a Proto-planetary Disk
|-
|-
| style="border-bottom:1px solid black;" | This simulation shows a ring plus a planet.  Need some information on angular scales and so forthNeed to work with Juergen to complete this description.
| style="border-bottom:1px solid black;" | This simulation shows an observation of a model image representing a ring plus a planet.  With most of the emission on small angular scales, the extended array observation is best at picking out the structures.  The compact configuration + ACA appears shows some minor deformities because of the manner in which the data were deconvolvedObservations that combine data from multiple arrays or array configurations should be deconvolved ("cleaned") with care to maximize image fidelity.
|-
|-
|}
|}
Line 78: Line 77:
== ALMA Simulation Tools ==
== ALMA Simulation Tools ==


ALMA observers have two powerful simulation tools available: the CASA sim_observe/sim_analyze tasks, and the [http://almaost.jb.man.ac.uk/ Observation Support Tool (OST)].  Both of these simulators are built on the CASA sm toolkit, and both are available from links on the [https://almascience.nrao.edu/ ALMA Science Portal].  
ALMA observers have two powerful simulation tools available: the CASA tasks ({{simalma_6.6.1}}, {{simobserve_6.6.1}}, and {{simanalyze_6.6.1}}), and the [http://almaost.jb.man.ac.uk/ Observation Support Tool (OST)].  Both of these simulators are built on the CASA sm toolkit, and both are available from links on the [https://almascience.org/ ALMA Science Portal].  


Note that significant differences may be seen between the noise predicted by the ALMA Sensitivity Calculator and the measured RMS in simulated images. These differences are primarily a result of the RMS measured in an image depending sensitively on the details of how the image is deconvolved.  Note that values from CASA simulations or the OST should not be used .  Only values from the ALMA sensitivity calculator should be used to calculate exposure times for ALMA Science Goals, as it is the ALMA sensitivity calculator that will be used in the technical assessment of ALMA proposals.  However, the results of simulations may be helpful to support a request for more observing time than is required by the sensitivity calculator, in order to obtain better uv-plane coverage.  Therefore, if using the results from the simulators in a Technical Justification of an observing proposal, users should discuss any significant discrepancies between the RMS in the simulated image and that determined by the sensitivity calculator.
Note that significant differences may be seen between the noise predicted by the [https://almascience.org/proposing/sensitivity-calculator/ ALMA Sensitivity Calculator] and the measured RMS in simulated images. These differences are primarily a result of the RMS measured in an image depending sensitively on the details of how the image is deconvolved.  Noise values determined from CASA simulations or the OST should not be used in a proposal.  Only values from the ALMA sensitivity calculator should be used to calculate exposure times for ALMA Science Goals, as it is the ALMA sensitivity calculator that will be used in the technical assessment of ALMA proposals.  However, the results of simulations may be helpful to support a request for more observing time than is required by the sensitivity calculator, in order to obtain better uv-plane coverage.  Therefore, if using the results from the simulators in a Technical Justification of an observing proposal, users should discuss any significant discrepancies between the RMS in the simulated image and that determined by the sensitivity calculator.
 
In addition, users should note that the simulator currently underestimates both the surface brightness and the total flux in single dish maps by as much as 20% because of uncertainties in the primary beam shape.  Any simulation that uses the TP array will be affected by this calibration issue.


== The OST ==
== The OST ==


The OST is a web-based interface hosted by the EU ARC at the University of Manchester.  Users who do not have experience with CASA, and who do not need full control of the simulation and imaging process will usually find the OST a good choice for generating simulated images.  The GUI works in a straightforward top-down approach.  Full documentation for the OST is available [http://almaost.jb.man.ac.uk/help/ here].
The [http://almaost.jb.man.ac.uk/ OST] is a web-based interface hosted by the EU ARC at the University of Manchester.  Users who do not have experience with CASA, and who do not need full control of the simulation and imaging process will usually find the OST a good choice for generating simulated images.  The GUI works in a straightforward top-down approach.  [http://almaost.jb.man.ac.uk/help/ Full documentation for the OST] is available.


The OST determines atmospheric opacity in a slightly different way than the CASA sim tasks, and so it may return slightly different results from the CASA simulation tasks.  The differences are most noticeable for simulations in Bands 9 and 10.
The OST determines atmospheric opacity in a slightly different way than the CASA simulation tasks, and so it may return slightly different results from the CASA simulation tasks.  The differences are most noticeable for simulations in Bands 9 and 10.


== CASA simulation tools ==
== CASA simulation tools ==


CASA provides a powerful capability to simulate interferometric observations with ALMA, as well as other telescopes.  The main CASA tasks for simulation are <tt>simobserve</tt> and <tt>simanalyze</tt>.  The task <tt>simobserve</tt> generates a data set with simulated visibilities based on an input model image.  The task <tt>simanalyze</tt> produces a cleaned image based on the simulated visibilities, and it generates some diagnostic images.
CASA provides a powerful capability to simulate interferometric observations with ALMA, as well as other telescopes.  The main CASA tasks for simulation are {{simobserve_6.6.1}} and {{simanalyze_6.6.1}}.  The task {{simobserve_6.6.1}} generates a data set with simulated visibilities based on an input model image.  The task {{simanalyze_6.6.1}} produces a cleaned image based on the simulated visibilities, and it generates some diagnostic images.
 
CASA also provides the task <tt>simalma</tt>.  This task simplifies the steps needed to simulate ALMA observations that combine data from multiple arrays or multiple configurations.  For example, users can simulate observations that combine data from the main 12 m array with data from the ALMA Compact Array using <tt>simalma</tt>. 
 
These tasks are described here: [[Simulating_Observations_in_CASA_4.2]].  Usage of <tt>simalma</tt> is described in the final simulation tutorial on that page.
 
<pre style="color: red">
IMPORTANT UPDATE: October 23, 2013.
 
ALMA simulations for Cycle 2 must be executed in CASA version 4.2.


Unfortunately, the release date for CASA 4.2 was a victim of the US government
CASA also provides the task {{simalma_6.6.1}}This task simplifies the steps needed to simulate ALMA observations that combine data from multiple arrays or multiple configurations. For example, users can simulate observations that combine data from the main 12 m array with data from the ALMA Compact Array using {{simalma_6.6.1}}.
furloughWe expect to release CASA 4.2 in ~mid November. CASA 4.2 includes
*critical* fixes to single dish simulations.  


For any ALMA simulations, we recommend that you wait for the 4.2 release.
These tasks are described here: [[Simulating Observations in CASA]]. Usage of {{simalma_6.6.1}} is described in the final simulation tutorial on that page.
For those who cannot wait, the CASA team is working to provide an early-release
linux-only version of CASA 4.2 that has a working simulator by October 28.  
A Mac version of the pre-release will follow some time after.
</pre>
Please check the [http://casaguides.nrao.edu/index.php?title=Main_Page CASAguides main page]
to get the pre-release version.

Latest revision as of 21:23, 1 November 2024

Most recently updated for CASA Version 6.6.1 using Python 3.8

Introduction: About this Document

This document describes why and how to use simulated observations to help understand your ALMA data, or to help you plan an ALMA observation. The document covers:

  • Why you might want to simulate ALMA observations
  • How simulations can help you plan a proposal
  • Examples of simulating ALMA data
  • Running your own simulations with the ALMA Observation Support Tool
  • Simulating ALMA observations with CASA sim tools

Why Simulate ALMA Observations?

Observations made with radio interferometers can be tricky to interpret and analyze. Interferometers do not sample all spatial frequencies on the sky, so the image you generate from an interferometric observation does not necessarily represent the full sky brightness distribution. Specifically, interferometers are not sensitive to diffuse emission, and depending on a number of factors including the placement of the individual antennas, the length of the observation, and the location of the target source on the sky, an interferometric observation will be insensitive to structure on some angular scales. Observers therefore should use care when analyzing and interpreting interferometric images.

Plots of "uv coverage" are often used to illustrate the range of spatial frequencies measured by a specific interferometric observation. A uv coverage plot can be thought of as a mask that is applied to the Fourier transform of the emission pattern on the sky. More densely sampled uv coverage leads to better images because the observation is more sensitive to a wider range of spatial frequencies on the sky.

Several interferometers, including ALMA and the VLA, offer a number of antenna configurations, amounting to a "zoom lens" capability. To aid in interpreting their data, observers may find it helpful to simulate an interferometric observation using a variety of antenna configurations and different models of the sky brightness distribution. Simulations can also be a powerful tool to help new users understand both the power and the limitations of interferometric observations.

A Note Regarding Use of ALMA Simulations in your Proposal

Simulations of ALMA observations are not required for an ALMA proposal; however, a simulation could bolster an ALMA proposal in some cases. For example, simulations can demonstrate the need for specific configurations, or combinations of configurations, to resolve certain structures or meet specific scientific goals.

In Full Operations, ALMA will include a main array of fifty 12 m antennas, and the ALMA Compact Array (ACA) which comprises twelve 7 m antennas and four 12 m antennas used for "total power" observations. At this time, every ALMA observation employs the 12-m main array. Observations with the 7-m Array and Total Power antennas are optional, used to fill in large-scale structure in mapping experiments. The ALMA OT advises users on whether to use the ACA based on two numbers: the required resolution and the maximum angular scale. If you have some uncertainty in the spatial scales for your ALMA target, you may wish to use simulations to justify inclusion of the ACA.

Background Information for Those New to Interferometry

Those new to interferometric observing can gain some intuition on the use of interferometers by exploring several software tools available on the web. For example, the Virtual Radio Interferometer is an interactive java application that allows one to simulate basic observations with MERLIN, ATCA, or WSRT, or ASKAP. The VRI can demonstrate how antenna arrangement affects uv coverage, the synthesized beam (i.e. the "resolution"), and the range of spatial sensitivities. Users can select from a few sample, idealized sky brightness patterns (e.g. a narrow gaussian) or use real sky images, then fiddle interactively with the placement of antennas and the duration of the observation to see the effects of uv coverage on observations.

Sample Simulations

Before getting to the details of using ALMA simulation tools, it is useful to examine a few example simulations. These examples were generated with the CASA simulation software described later in this document. These simulations demonstrate how observing with different ALMA configurations can affect the final image.

A Collection of Point Sources
This example shows a simulated observation of a model with multiple point sources. The "plus" symbols in the model image represent locations of the point sources. The panels in this example and those that follow show the model image and the simulated observation with an "extended" array on the top row. The bottom row shows an observation with a compact configuration, and then a compact configuration with the ACA included. The ellipse on the bottom left of the simulated data shows the synthesized beam size. The angular size of the image is approximately 6x6 arcsec.

In general, it is preferable to observe closely-spaced compact sources with an extended configuration, as demonstrated in these simulations. Note that the ACA does not contribute significantly to this observation. It's main contribution comes in observing sources with relatively bright, diffuse emission in addition, perhaps, to compact targets.

---

Point Sources and Elliptical Gaussian Brightness Distributions
Expanding on the first example, here we add several elliptical gaussians to the model with the point sources. Again, the "plus" symbols in the model image represent locations of point sources.

In this case, the extended configuration completely misses the emission from the larger Gaussian component. Only the compact configuration recovers the flux from the extended Gaussian components. Including the ACA gives a more complete representation of the source flux. To recover both the conpact and extended structure in this model would require combining data from multiple main-array configurations, plus the ACA.

---

An M51-like Galaxy
Here we simulate an observation of a galaxy similar in structure to M51, but smaller in angular scale. The extended array observation gives a reasonably good representation of the model image, because most of the apparent emission is on small angular scales. The compact array observation shows a negative "bowl" of emission between the spiral arms because of the missing short-spacing data. By adding the ACA to the compact array observation, the short spacings are recovered and the final flux densities recorded are truer to the model image.

---

ALMA Simulation Tools

ALMA observers have two powerful simulation tools available: the CASA tasks (simalma, simobserve, and simanalyze), and the Observation Support Tool (OST). Both of these simulators are built on the CASA sm toolkit, and both are available from links on the ALMA Science Portal.

Note that significant differences may be seen between the noise predicted by the ALMA Sensitivity Calculator and the measured RMS in simulated images. These differences are primarily a result of the RMS measured in an image depending sensitively on the details of how the image is deconvolved. Noise values determined from CASA simulations or the OST should not be used in a proposal. Only values from the ALMA sensitivity calculator should be used to calculate exposure times for ALMA Science Goals, as it is the ALMA sensitivity calculator that will be used in the technical assessment of ALMA proposals. However, the results of simulations may be helpful to support a request for more observing time than is required by the sensitivity calculator, in order to obtain better uv-plane coverage. Therefore, if using the results from the simulators in a Technical Justification of an observing proposal, users should discuss any significant discrepancies between the RMS in the simulated image and that determined by the sensitivity calculator.

In addition, users should note that the simulator currently underestimates both the surface brightness and the total flux in single dish maps by as much as 20% because of uncertainties in the primary beam shape. Any simulation that uses the TP array will be affected by this calibration issue.

The OST

The OST is a web-based interface hosted by the EU ARC at the University of Manchester. Users who do not have experience with CASA, and who do not need full control of the simulation and imaging process will usually find the OST a good choice for generating simulated images. The GUI works in a straightforward top-down approach. Full documentation for the OST is available.

The OST determines atmospheric opacity in a slightly different way than the CASA simulation tasks, and so it may return slightly different results from the CASA simulation tasks. The differences are most noticeable for simulations in Bands 9 and 10.

CASA simulation tools

CASA provides a powerful capability to simulate interferometric observations with ALMA, as well as other telescopes. The main CASA tasks for simulation are simobserve and simanalyze. The task simobserve generates a data set with simulated visibilities based on an input model image. The task simanalyze produces a cleaned image based on the simulated visibilities, and it generates some diagnostic images.

CASA also provides the task simalma. This task simplifies the steps needed to simulate ALMA observations that combine data from multiple arrays or multiple configurations. For example, users can simulate observations that combine data from the main 12 m array with data from the ALMA Compact Array using simalma.

These tasks are described here: Simulating Observations in CASA. Usage of simalma is described in the final simulation tutorial on that page.