{"action":"opened","issue":{"url":"https://api.github.com/repos/Ermiasabebe/Pyxis-Issues/issues/1","labels_url":"https://api.github.com/repos/Ermiasabebe/Pyxis-Issues/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Ermiasabebe/Pyxis-Issues/issues/1/comments","events_url":"https://api.github.com/repos/Ermiasabebe/Pyxis-Issues/issues/1/events","html_url":"https://github.com/Ermiasabebe/Pyxis-Issues/issues/1","id":58734829,"number":1,"title":"run imager and clean","user":{"login":"atemkeng","id":6806881,"avatar_url":"https://avatars.githubusercontent.com/u/6806881?v=3","gravatar_id":"","url":"https://api.github.com/users/atemkeng","html_url":"https://github.com/atemkeng","followers_url":"https://api.github.com/users/atemkeng/followers","following_url":"https://api.github.com/users/atemkeng/following{/other_user}","gists_url":"https://api.github.com/users/atemkeng/gists{/gist_id}","starred_url":"https://api.github.com/users/atemkeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atemkeng/subscriptions","organizations_url":"https://api.github.com/users/atemkeng/orgs","repos_url":"https://api.github.com/users/atemkeng/repos","events_url":"https://api.github.com/users/atemkeng/events{/privacy}","received_events_url":"https://api.github.com/users/atemkeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-24T13:00:32Z","updated_at":"2015-02-24T13:00:32Z","closed_at":null,"body":"\"\"\"\r\nModule import here\r\n\"\"\"\r\nimport os\r\nimport sys\r\nimport Pyxis\r\nfrom Pyxis.ModSupport import *\r\nimport mqt\r\nimport ms\r\nimport imager\r\n\r\ndef simulate_imaging_bd_3c147 (ms=None, inputcolumn=\"DATA\", outputcolumn=\"CORRECTED_DATA\"):\r\n\r\n        imager.npix= 2048\r\n        imager.cellsize = \"2arcsec\"\r\n        imager.stokes   = \"I\"\r\n        imager.weight   = \"natural\"\r\n        imager.wprojplanes = 128\r\n        #cleaning options\r\n        imager.niter = 1000\r\n        imager.threshold = \"5mJy\"\r\n        imager.CLEAN_ALGORITHM = \"csclean\"\r\n\r\n        imager.make_image(msname=ms, column=outputcolumn, restore=True, dirty=False,  weight=\"natural\");\r\n\r\n\r\ndef copy_column_ms(msname=None, inputcolumn='DATA', outputcolumn='CORRECTED_DATA'):\r\n  \"\"\"\r\n        copy column inputcolumn to outputcolumn given the MS\r\n  \"\"\"\r\n  tab = table(msname,readonly=False,ack=False);\r\n  dataint = tab.getcol(inputcolumn)\r\n  tab.putcol(outputcolumn,dataint.copy())\r\n  tab.close()\r\n~               "}}