The previous chapter, Chapter 3, described how pol2map produces , , and maps from raw POL-2 data. It showed that this reduction process—-which uses pol2map—comprises three steps.
As with the other Python scripts in Smurf, it is possible to get more information about the available parameters by running either:
or the
Before running pol2map directly, it is necessary to ensure that the Starlink environment has been initialised and the Smurf package started (see Section 1.3.2 and Section 1.3.3).
This chapter describes how to run pol2map firstly to produce an initial map; and then again to produce the final , , and maps and a vector catalogue, as described in Section 4.2.
To run pol2map, values should normally be supplied for the following command-line parameters1, in order to produce the initial intensity image. Note that if a parameter description ends with a value in square brackets, it is the default value that will be used for the parameter if no value is supplied on the command line.
IN | A list of input NDFs containing raw POL-2 data. There are many ways in which the list of files can
be supplied, as described in the “Specifying Groups of Objects” section of SUN/95. The easiest
of these is to create a simple text file containing the names of the raw data files (one per line),
and then supply the name of the text file, preceded by an up-caret character ( ^ ), as the value for
parameter IN . Note that the specified names of the raw data files can contain wildcards such as
“”
and “?”.
|
---|---|
IOUT | The name of the NDF in which to store the total intensity ()
map (in pW) incorporating all supplied observations. The supplied file name should either have a
file type of .sdf , or no file type at all (in which case .sdf will be appended to the supplied value).
Any existing file with the same name will be overwritten.
|
QOUT | The output NDF in which to return the
map incorporating all supplied observations. This will be in units of pW. Null (! ) should be
supplied if no
map is required.
|
UOUT | The output NDF in which to return the
map incorporating all supplied observations. This will be in units of pW. Null (! ) should be
supplied if no
map is required.
|
MAPDIR | The name of the directory in which to place the ,
,
and
maps made from each individual observation supplied via IN , before co-adding them. If null (! )
is supplied, the new maps are placed in the same temporary directory (chosen automatically) as
all the other intermediate files, and so will be deleted when the script exits (unless the parameter
RETAIN is set to be TRUE ). Note that these maps are always in units of pW. Each one will contain
FITS headers specifying the pointing corrections needed to align the map with the reference map.
[! ]
|
QUDIR | The name of a directory in which to place the ,
,
and
time series generated by Smurf calcqu, prior to generating maps from them. If null (! ) is supplied,
they are placed in the same temporary directory as all the other intermediate files, and so will be
deleted when the script exits (unless the parameter RETAIN is set to be TRUE ). [! ] |
Some additional command-line parameters are required when pol2map is used for the second time—as discussed in Section 4.3—to produce the final , , maps and vector catalogue2.
CAT | The output FITS vector catalogue. No catalogue is created if null (!) is supplied. Note that, by default, the , , and values in this catalogue will be in units of mJy/beam. [!] |
---|---|
MASK | Specifies the type of masking to be used within makemap (the same type of masking is used to create all three maps—, , and ). |
MASKOUT1 | If a non-null value is supplied for MASKOUT1 , it specifies the NDF in which to store the AST
mask created from the NDF specified by Parameter MASK . Only used if an NDF is supplied for
Parameter MASK . [!]
|
MASKOUT2 | If a non-null value is supplied for MASKOUT2 , it specifies the NDF in which to store the PCA
mask created from the NDF specified by Parameter MASK . Only used if an NDF is supplied for
Parameter MASK . [!]
|
IPREF | The total intensity map to be used for IP correction. The map must be in units of pW. If the same
value is supplied for both IOUT and IPREF , the output
map will be used for IP correction. [! ]
|
DEBIAS | TRUE if a correction for statistical bias is to be made to percentage polarisation and polarised
intensity in the output vector catalogue specified by the parameter CAT . [FALSE ] |
The pol2map command provides many other parameters that may be used to modify its behaviour in various ways. To see a full list, type the following.
As discussed in Chapter 3, pol2map must first be run on the raw data to produce an initial map. In this first step:
where the file myfiles.lis
contains a list of the raw data files to be included in the map, and could (for
instance) look like this.
This uses all available data from all four 850 µm sub-arrays, for Observation 43 taken on 2016 January 253. In addition, the data used in this example also come from Observations 56 and 59 taken on 2016 January 11 (UT).
in=
myfiles.lis
).
Note that the pol2map script also invokes the Smurf pol2check command, in order to first ensure that the input files are actually POL-2 files.
Note that qout
and uout
are set to null values, as no
or
maps
are required to be produced during this initial Step 1 reduction stage.
The following shows the output from running this initial pol2map command.
The files and folders produced by this reduction process are described below.
pol2map.log | A log file containing the output from the various Smurf, Kappa and Polpack commands run as part of the pol2map command (pol2map is actually a Python script that runs various other Starlink tasks behind the scenes in order to perform the bulk of the work). |
---|---|
qudata/ | A folder containing the , , and time-series data for each sub array for each observation. These are produced by calcqu (see Section 3.4). |
maps/ | A folder containing the individual
maps from each separate observation. These will have names that end with imap.sdf .
|
iauto.sdf | Output total intensity map. The included term “auto” is used to indicate that it was created using an automatically generated AST mask. |
The output
map, iauto.sdf
, can be opened and viewed with Gaia.
The maps
folder contains the individual
maps from each separate observation:
and the qudata
folder contains these files.
As discussed in Chapter 3, the map output from the initial run of pol2map is used to derive the final , , and maps. If requested, a vector catalogue is also produced.
The second and third steps of the POL-2 data reduction process can be run via a single command.
The following shows the output from running this second pol2map command. First, pol2map produces new maps for each map, correcting the position using the correction stored in the old map4, and then co-adds all the observations.
As pol2map continues, the and maps are produced, again with pointing corrections. This is followed by the creation of the output vector catalogue.
The output of this final run of pol2map is as follows.
pol2map.log | A log file containing the output from the pol2map command. Note previous log files are
moved to a new name such as pol2map.log.1 .
|
---|---|
astmask.sdf | The AST mask used in the creation of the final , , and maps. |
pcamask.sdf | The PCA mask used in the creation of the final , , and maps. |
iext.sdf | The total intensity image, created using the external AST and PCA masks described above. |
qext.sdf | The map (i.e the intensity of the radiation linearly polarised in the direction parallel or perpendicular to the reference plane), created using an external AST and PCA mask. |
maps/ | A folder containing the individual ,
,
and
maps from each separate observation. These will have names that end with Imap.sdf ,
Qmap.sdf ,
or Umap.sdf .
|
uext.sdf | The map (i.e. the intensity of the radiation linearly polarised in the direction to the reference plane). |
mycat.FIT | The output vector catalogue, containing a range of values derived by pol2map for each pixel contained within the map. |
The maps folder now contains individual and maps, alongside the existing maps listed below.
The output vector catalogue contains a range of values derived by pol2map for each pixel contained within the
map.
Intensity values and errors in the catalogue are expressed in units of mJy/beam. If desired, it is possible to
switch the catalogue to units of pW by using Jy=no
on the pol2map command line. The columns are listed
below.
X | Pixel coordinate at the centre of the pixel |
---|---|
Y | Pixel coordinate at the centre of the pixel |
RA | RA coordinate at the centre of the pixel |
Dec | Dec coordinate at the centre of the pixel |
I | Total intensity |
DI | Error in I |
Q | Stokes parameter |
DQ | Error in Q |
U | Stokes parameter |
DU | Error in U |
P | Percentage polarisation |
DP | Error in P |
ANG | Angle of polarisation |
DANG | Error in ANG |
PI | Polarised intensity () |
DPI | Error in polarised intensity |
AST | Integer values that indicate if the corresponding vector position is inside the AST mask. If the vector is outside the mask, the corresponding column for the mask will have a blank/null value. Vectors that are inside a mask will have a non-zero integer value for the corresponding column. Each “island” within a mask (i.e. a contiguous group of source pixels) will have a different integer value assigned, starting at 1. All vectors within an island are assigned the integer value of the island. |
PCA | Contains integer values that indicate if the corresponding vector position is inside the PCA mask. Value conventions are the same as for the AST column (above). |
Inserting POL-2 in front of SCUBA-2 reduces the throughput to SCUBA-2. POL-2 is not a perfect polarimeter. Its wire grid absorbs and scatters incoming signal so the modulation amplitude is lower than for a perfect polarimeter. In addition cross polarisation and depolarisation decreases the modulation amplitude without decreasing the power in the transmitted signal. The first type of inefficiencies can be measured by comparing normal SCUBA-2 maps with and without the polarimeter inserted. Such observations have been done on Uranus, Mars and Jupiter. The second type of losses can be measured with a source of known polarisation.
To convert POL-2 data to astronomical units such as mJy/beam a Flux Conversion Factor, FCF, must be applied to the data. For POL-2, the FCFs are quoted in terms of the non-polarimetric SCUBA-2 FCFs.
POL-2 FCFs are now applied automatically within pol2map when catalogue columns in mJy/beam are
required by the user, i.e. if the pol2map parameter JY
is set to TRUE
(the default option). The current
version of pol2map uses the new, revised POL-2 FCFs for 850 µm and 450 µm and takes account of
cases where the supplied raw data span one of the dates at which the FCF changed (20180630 and
20161101).
Inevitably, as with unpolarised SCUBA-2 data reduction, users will sometimes find it necessary to fine-tune the pol2map reduction process for specific situations.
The bin size within the final vector catalogue is controlled by the BINSIZE
parameter in the Smurf pol2map
command.
Changing the catalogue bin size in this way does not change the pixel size of the maps created pol2map.
Instead, the maps are binned up to the requested bin size before the catalogue is created. There is another
parameter, called PIXSIZE
, which controls the map pixel size, but it is usually advisable to leave this at its
default value. This is because the map pixel size can affect the behaviour of the iterative algorithm used to
create maps.
1Note the distinction between “command-line parameters” that are supplied on the pol2map command line, and “configuration
parameters” that are specified within a configuration file. Values for all configuration parameters are obtained using a single command-line
parameter called CONFIG
.
2This second usage of pol2map includes both “Run 2” and “Run 3” in Figure 3.1.
3The input files should all be for a single waveband from one or more POL-2 observations. Users should not mix files from different wavebands and/or astronomical regions.
4This correction is found by aligning the old
map with the iauto.sdf
map.