{"id":9739,"date":"2019-05-29T00:53:47","date_gmt":"2019-05-29T10:53:47","guid":{"rendered":"http:\/\/www.eaobservatory.org\/jcmt\/?p=9739"},"modified":"2020-12-29T11:00:09","modified_gmt":"2020-12-29T21:00:09","slug":"combining-multiple-pol2-fields","status":"publish","type":"post","link":"https:\/\/www.eaobservatory.org\/jcmt\/2019\/05\/combining-multiple-pol2-fields\/","title":{"rendered":"Combining multiple POL2 fields"},"content":{"rendered":"<p>If you wish to combine POL2 observations for multiple overlapping fields, the best way to proceed is probably as follows (note, for this to work correctly you will need a Starlink build from 9th June 2019 or later):<\/p>\n<ol>\n<li style=\"list-style-type: none\">\n<ol>\n<li>\u00a0Run &#8220;step 1&#8221; independently for each field. In other words,\u00a0use <span style=\"font-family: 'courier new', courier, monospace\">pol2map<\/span> to create an auto-masked total intensity map for each field. The following assumes that <span style=\"font-family: 'courier new', courier, monospace\">pol2map<\/span> is run within directories called &#8220;field1&#8243;, field2&#8221;, <em>etc<\/em>, to create the auto-masked maps and the I\/Q\/U time-stream data for each field.<\/li>\n<li>Co-add the auto-masked total intensity maps for all fields. First create a text file holding the paths to the separate auto-masked total intensity maps, and then run <span style=\"font-family: 'courier new', courier, monospace\">pol2map<\/span> as follows:\n<pre>% more infiles\r\nfield1\/iauto\r\nfield2\/iauto\r\n% pol2map in=^infiles iout=iauto_mosaic \\\r\n          qout=! uout=! multiobject=yes\r\n\r\n<\/pre>\n<\/li>\n<li>Run &#8220;step 2&#8221; and &#8220;step 3&#8221; for each field, using the mosaic created above as the mask field for all fields. For instance, for the first field:\n<pre>% cd field1\r\n% pol2map in=qudata\/\\* iout=iext qout=! \\\r\n          uout=! mapdir=maps mapvar=yes \\\r\n          skyloop=yes mask=..\/iauto_mosaic \r\n% pol2map in=qudata\/\\* iout=! qout=qext \\\r\n          uout=uext mapdir=maps mapvar=yes \\\r\n          skyloop=yes mask=..\/iauto_mosaic \\\r\n          ipref=iext cat=mycat debias=yes<\/pre>\n<p>Then do the same for <span style=\"font-family: 'courier new', courier, monospace\">field2<\/span>, <span style=\"font-family: 'courier new', courier, monospace\">field3<\/span>, <em>etc<\/em>. If preferred, steps 2 and 3 can be combined into a single invocation of <span style=\"font-family: 'courier new', courier, monospace\">pol2map<\/span>:<\/p>\n<pre>% cd field1\r\n% pol2map in=qudata\/\\* iout=iext qout=qext \\\r\n          uout=uext mapdir=maps mapvar=yes \\\r\n          skyloop=yes mask=..\/iauto_mosaic \\\r\n          ipref=iext cat=mycat debias=yes<\/pre>\n<\/li>\n<li>Co-add the external-masked I\/Q\/U maps for all fields and create a vector catalogue from the co-added maps. First create a text file holding the paths to the external-masked I\/Q\/U maps for all fields, and then run <span style=\"font-family: 'courier new', courier, monospace\">pol2map<\/span> as follows:\n<pre>% more infiles\r\nfield1\/iext\r\nfield1\/qext\r\nfield1\/uext\r\nfield2\/iext\r\nfield2\/qext\r\nfield2\/uext\r\n% pol2map in=^infiles iout=iext_mosaic \\\r\n          qout=qext_mosaic uout=uext_mosaic \\\r\n          multiobject=yes cat=mycat_mosaic \\\r\n          debias=yes ipcor=no<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>If you wish to combine POL2 observations for multiple overlapping fields, the best way to proceed is probably as follows (note, for this to work correctly you will need a Starlink build from 9th June 2019 or later): \u00a0Run &#8220;step 1&#8221; independently for each field. In other words,\u00a0use pol2map to\u2026 <a class=\"continue-reading-link\" href=\"https:\/\/www.eaobservatory.org\/jcmt\/2019\/05\/combining-multiple-pol2-fields\/\">Continue reading<\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[36],"tags":[37],"_links":{"self":[{"href":"https:\/\/www.eaobservatory.org\/jcmt\/wp-json\/wp\/v2\/posts\/9739"}],"collection":[{"href":"https:\/\/www.eaobservatory.org\/jcmt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.eaobservatory.org\/jcmt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.eaobservatory.org\/jcmt\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eaobservatory.org\/jcmt\/wp-json\/wp\/v2\/comments?post=9739"}],"version-history":[{"count":5,"href":"https:\/\/www.eaobservatory.org\/jcmt\/wp-json\/wp\/v2\/posts\/9739\/revisions"}],"predecessor-version":[{"id":9781,"href":"https:\/\/www.eaobservatory.org\/jcmt\/wp-json\/wp\/v2\/posts\/9739\/revisions\/9781"}],"wp:attachment":[{"href":"https:\/\/www.eaobservatory.org\/jcmt\/wp-json\/wp\/v2\/media?parent=9739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.eaobservatory.org\/jcmt\/wp-json\/wp\/v2\/categories?post=9739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.eaobservatory.org\/jcmt\/wp-json\/wp\/v2\/tags?post=9739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}