Atacama Large Millimeter/submillimeter Array (ALMA) ##### Cycle: 3 Project code: 2015.1.01140.S SB name: ngc3628_a_03_TP PI name: An-Li Tsai (Username: altsai) Project title: Do galaxies lose molecular gas more than expected? Configuration: TP-Array Proposed rms: 34.668 mJy/b over 7.812 MHz at 114.94 GHz Proposed beam size: 3.0 arcsec CASA version used for reduction: 4.7.2 QA2 Result: SEMIPASS Total Number of Member SBs in this OUS Group: 4 Comments from Reducer: ##### The calibration of the data appears to be good, but it was not possible to reach the requested rms noise, because only 12 out of the 16 executions needed could be performed before the project timed out. This resulted in an image noise of about 41.3 mJy/b over 7.812 MHz in spw 15, where the representative frequency lies. Emission was not detected in spw 17. Please, be aware that unless using a pipeline version from 5.1 above, if reprocessing the data with the CASA pipeline, the PPR file must contain as first EB an EB with the maximum number of antennas used for the entire SB. The PPR delivered in this package complies with this limitation, which is due to a bug that will be fixed in version 5.1 of the pipeline. README OVERVIEW Introduction Total Power Data Pipeline-calibrated TP data Manually calibrated TP data Primary Beam Correction How to restore the calibrated MeasurementSet for your data ##### INTRODUCTION This file describes the content of the tar file you have received. The full data structure is inserted below. At this stage, we are releasing data after completion of one SB (excuted multiple times if required), so you will find only one member_ouss_id directory. This directory contains this README file and the following directories: calibration, script, qa2, log, product. - 'calibration' contains the files needed for calibration starting from the initial ms to the fully calibrated data. - 'script' contains the reduction scripts used to process the initial ms to calibrated data, but also to obtain concatenated data (if more than one execution) and imaging products. There are usually several scripts dealing with different parts of the processing. In case the calibration was done by the automated pipeline, you will also see the Pipeline Processing Request File (PPR). The most important script for you is the "scriptForPI.py". See the section "How to restore the calibrated MeasurementSet (MS) for your data" further below. - 'product' contains the fits files of the selected image products. These will not include all images of scientific value, but will indicate the quality of the calibration and images. - 'qa' contains the qa2 reports that show plots and text information needed to assess the quality of the processing. The resultant image rms, compared with that proposed, is given. In case the calibration was done by the automated pipeline, you will find the pipeline Weblog here. - 'log' contains the CASA log files. For more information see also the "ALMA QA2 Data Products" document which is available for download from the ALMA Science Portal at https://almascience.nrao.edu/documents-and-tools and the ALMA Knowledgebase article on the QA2 pass/fail criteria at https://help.almascience.org/index.php?/XX/Knowledgebase/Article/View/285 (where the XX is to be replaced by ea, eu, or na depending on your location). ##### TOTAL POWER DATA This section only concerns ALMA total power (TP) data. For ALMA 12m and 7m interferometric data, please refer to the sections further below. The ALMA TP data is generally reduced using the TP data reduction pipeline which performs calibration and imaging; only exceptionally is it reduced manually using standard scripts. The TP calibration with the ALMA pipeline is described in section 5 of the ALMA Science Pipeline Quickstart Guide https://almascience.eso.org/documents-and-tools/alma-science-pipeline-quickstart-guide-casa-4.5.1 You can determine whether your data was reduced by Pipeline by looking for a file "PPR...xml" in the "script" subdirectory (below the directory containing this README). If such a file is present, your data was pipeline-reduced. TP datasets will often consist of many execution blocks (EBs). Each of them was calibrated individually. Imaging is done on all calibrated data together. The images included in this delivery have a native frequency resolution and a cell size that is 1/9 that of beam size. If you want to change them to your preferred frequency resolution and cell size, import the delivered FITS cubes to CASA and regrid it using the task imregrid. One important aspect of the calibration is the conversion of the data from K to Jy/beam. This is done per EB. For manually reduced data, the values that were used are available at the end of each calibration script. In case of pipeline-reduced data, the Jy per K conversion factors can be found via the pipeline weblog in the "qa" directory or in the file "jyperk.csv" under the "calibration" directory of this package. The conversion factors were derived from the analysis of the associated AMPCAL data from the same project. This analysis is done using standard scripts or Pipeline. We are not providing those data by default to the users, but in case you would be interested to have them, you are welcome to contact the helpdesk of your region. Pipeline-calibrated TP data The following only describes the procedure for pipeline- calibrated TP data. If your TP dataset was pipeline-calibrated and you would like to re-create the calibrated MeasurementSets, please read on in section "How to restore the calibrated MeasurementSet (MS) for your data". Please note that processing may take a significant amount of time. To know how long it will take, please see the "Execution Duration" which is shown on the top-page of the weblog. If you want to perform baseline subtraction using your preferable mask range rather than the pipeline-decided range, we recommend to do it on the images using the task imcontsub or to do it using the task sdbaseline during your own manual calibration (see https://casaguides.nrao.edu/index.php?title=M100_Band3_SingleDish_4.3 ). Manually calibrated TP data The following only describes the procedure for manually calibrated TP data. At this stage, the QA report for manually reduced data is rudimentary. If your TP data was reduced manually, please see the official CASA guide, available at the following link: https://casaguides.nrao.edu/index.php?title=M100_Band3_SingleDish_4.3 To regenerate the calibrated data, you will need to download the raw data (ASDMs) from the ALMA archive, remove the '.asdm.sdm' extensions and then run the scripts ('*.scriptForSDcalibration.py') in the scripts folder. We recommend that you create an individual folder for each ASDM, and calibrate each ASDM in its own folder. For the imaging, we recommend you use the provided script, as it contains certain values (e.g. beams) that must be set to a precise value. You could run the script step-by-step, as for the calibration script. Before doing that, you may need to update the paths to the calibrated data, in the msNames variable near the top of the script. ##### PRIMARY BEAM CORRECTION The images included in this delivery are corrected for the primary beam (PB), i.e. the dependence of the instruments sensitivity on direction within the FOV. For each image, two files are being delivered: a) the PB-corrected image (file name ending in ".pbcor.fits") b) the image of the PB which was used in the correction (ending in ".flux.fits") The image noise was measured in the uncorrected image. The corrected image (a) was then obtained by dividing the uncorrected image by the PB image (b). The uncorrected image can be recovered using the CASA task impbcor in mode "m": impbcor(imagename='image.pbcor.fits', pbimage='image.flux.fits', mode='m', outfile='image.recovered') ##### HOW TO RESTORE THE CALIBRATED MEASUREMENTSET (MS) FOR YOUR DATA In case you want to re-reduce your data yourself, you will need to obtain the raw data in ASDM format from the request handler or other server where it is staged for you (see your notification email). If you downloaded and untarred all available files for this delivery as described in the notification email, then you will already see (in addition to the directories shown in the tree listing above) a directory "raw" containing your raw data in subdirectories named "uid*.asdm.sdm" and no further action is necessary. If you do not have a raw directory, you will need to download and untar the tar balls of the raw data belonging to this delivery and make sure they are put into the "raw" directory in your "member_ouss_..." directory. For the next step, you will need the right version of CASA to be installed. Please find above the line starting with "CASA version used for reduction:". The version indicated there is what you need to use for running the scriptForPI. Once the raw data is in place, cd into directory "script", start casa --pipeline and type execfile('scriptForPI.py') (For some versions, CASA is released without pipeline. If your CASA version is not one with the ALMA pipeline included, the "--pipeline" switch is not available. Check in the "script" directory of your delivery package to see if it contains a file named "PPR*.xml". If there is no such file, you will be able to run the calibration without the pipeline.) For more information on the execution of the pipeline please refer to the ALMA Pipeline Quickstart Guide available at https://almascience.nrao.edu/documents-and-tools/alma-science-pipeline-quickstart-guide-for-casa-4.5 Running the scriptForPI will execute the entire calibration procedure and result in an MS or a set of MSs ready for imaging. In case the data was processed using the automated pipeline, scriptForPI.py will produce the calibrated MS(s) by running the "casa_piperestorescript" which applies the packaged calibration and flagging tables (rather then regenerating them). If the casa_piperestorescript is not available (as can be the case for pipeline-calibrated TP datasets), the scriptForPI will instead run the entire calibration pipeline using the "casa_pipescript". You can force the execution of the casa_pipescript instead of the casa_piperestorescript by moving the casa_piperestorescript.py out of the script directory. Rerunning the pipeline can be useful if you want to tweak its parameters. Otherwise the restore is faster. The calibrated MS(s) can then be processed with "scriptForImaging.py". The "scriptForImaging.py" may partially be interactive (for masking) and should be executed by copy and paste. For TP MOUSs pipeline-calibrated, the scriptForImaging.py is NOT provided. You are able to find all used sdimaging task parameters in the CASA logs for stage 13 in the weblog. The scriptForPI offers a "SPACESAVING" option to limit the disk space usage during and after its execution. In order to make use of this, the Python global variable SPACESAVING needs to be set before starting the script, e.g. using SPACESAVING = N execfile('scriptForPI.py') where N is an integer from 0 to 3 with the following meaning: SPACESAVING = 0 same as not set (all intermediate MSs are kept) = 1 do not keep intermediate MSs named *.ms.split = 2 do not keep intermediate MSs named *.ms and *.ms.split = 3 do not keep intermediate MSs named *.ms, *.ms.split, and *.ms.split.cal (if possible) With SPACESAVING=0, the required additional diskspace is up to 14 times as large as the delivered data (products and rawdata) while with SPACESAVING=3 (maximum savings), it is up to 6 times as large. The script will estimate the required disk space and will not execute if there is not sufficient free space available. ##### 2015.1.01140.S └── science_goal.uid___A001_X2fa_X20 └── group.uid___A001_X2fa_X21 └── member.uid___A001_X2fa_X28 ├── calibration │   ├── jyperk.csv │   ├── uid___A001_X2fa_X28.session_10.caltables.tgz │   ├── uid___A001_X2fa_X28.session_11.caltables.tgz │   ├── uid___A001_X2fa_X28.session_12.caltables.tgz │   ├── uid___A001_X2fa_X28.session_13.caltables.tgz │   ├── uid___A001_X2fa_X28.session_14.caltables.tgz │   ├── uid___A001_X2fa_X28.session_17.caltables.tgz │   ├── uid___A001_X2fa_X28.session_20.caltables.tgz │   ├── uid___A001_X2fa_X28.session_21.caltables.tgz │   ├── uid___A002_Xb68dbd_X5550_flagtemplate.txt │   ├── uid___A002_Xb68dbd_X5550.ms.calapply.txt │   ├── uid___A002_Xb68dbd_X5550.ms.flagversions.tgz │   ├── uid___A002_Xb7189f_X586c_flagtemplate.txt │   ├── uid___A002_Xb7189f_X586c.ms.calapply.txt │   ├── uid___A002_Xb7189f_X586c.ms.flagversions.tgz │   ├── uid___A002_Xb7189f_X5e8a_flagtemplate.txt │   ├── uid___A002_Xb7189f_X5e8a.ms.calapply.txt │   ├── uid___A002_Xb7189f_X5e8a.ms.flagversions.tgz │   ├── uid___A002_Xb7189f_X65d8_flagtemplate.txt │   ├── uid___A002_Xb7189f_X65d8.ms.calapply.txt │   ├── uid___A002_Xb7189f_X65d8.ms.flagversions.tgz │   ├── uid___A002_Xb7189f_X6ae9_flagtemplate.txt │   ├── uid___A002_Xb7189f_X6ae9.ms.calapply.txt │   ├── uid___A002_Xb7189f_X6ae9.ms.flagversions.tgz │   ├── uid___A002_Xb7189f_X70b8_flagtemplate.txt │   ├── uid___A002_Xb7189f_X70b8.ms.calapply.txt │   ├── uid___A002_Xb7189f_X70b8.ms.flagversions.tgz │   ├── uid___A002_Xb74a0f_X2832_flagtemplate.txt │   ├── uid___A002_Xb74a0f_X2832.ms.calapply.txt │   ├── uid___A002_Xb74a0f_X2832.ms.flagversions.tgz │   ├── uid___A002_Xb74a0f_X2be6_flagtemplate.txt │   ├── uid___A002_Xb74a0f_X2be6.ms.calapply.txt │   ├── uid___A002_Xb74a0f_X2be6.ms.flagversions.tgz │   ├── uid___A002_Xb87877_X427e_flagtemplate.txt │   ├── uid___A002_Xb87877_X427e.ms.calapply.txt │   ├── uid___A002_Xb87877_X427e.ms.flagversions.tgz │   ├── uid___A002_Xb87877_X4664_flagtemplate.txt │   ├── uid___A002_Xb87877_X4664.ms.calapply.txt │   ├── uid___A002_Xb87877_X4664.ms.flagversions.tgz │   ├── uid___A002_Xb8cea2_X37cb_flagtemplate.txt │   ├── uid___A002_Xb8cea2_X37cb.ms.calapply.txt │   ├── uid___A002_Xb8cea2_X37cb.ms.flagversions.tgz │   ├── uid___A002_Xb8cea2_X3bf5_flagtemplate.txt │   ├── uid___A002_Xb8cea2_X3bf5.ms.calapply.txt │   └── uid___A002_Xb8cea2_X3bf5.ms.flagversions.tgz ├── log │   ├── casa-20170914-192413.log │   └── uid___A001_X2fa_X28.casa_commands.log ├── product │   ├── ngc3628.spw15.I.sd.im.fits │   └── ngc3628.spw17.I.sd.im.fits ├── qa │   └── uid___A001_X2fa_X28.weblog.tgz ├── README └── script ├── casa_pipescript.py ├── PPR_uid___A001_X2fa_X29.xml └── scriptForPI.py 8 directories, 54 files