{ "info": { "author": "Gyula I. G. Jozsa, Sphesihle Makhathini, Paolo Serra, Kshitij Thorath, Ben Hugo", "author_email": "jozsa@ska.ac.za", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Topic :: Scientific/Engineering :: Astronomy", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# sunblocker\nA (python pyrap) method to remove solar-like RFI from interferometric data\n\nCopyright (c) 2017 Gyula Istvan Geza Jozsa, Paolo Serra, Kshitij Thorat, Sphesihle Makhatini, NRF (Square Kilometre Array South Africa) - All Rights Reserved\n\n## Installation:\n### Using virtualenv:\nSee installing virtualenv below if virtualenv is not installed, i.e. the first command does not work.\n\nThen find out where your virtualenv directories are stored. In this example, this directory is called `~/.virtualenv`. If there is no such directory, create one:\n```\n$ [mkdir .virtualenv]\n```\nThen create a virtualenv in which all packages for your project will be installed:\n```\n$ cd .virtualenv\n$ virtualenv --no-site-packages usingsunblock [replace usingsunblock by the name of your choice]\n```\nThis creates a virtualenv called `usingsunblock` (which is an example-name) in the `.virtualenv` directory which is completely independent of any system site-packages, to active the virtualenv run the activation script\n```\n$ source ~/.virtualenv/usingsundblock/bin/activate\n```\nThen install the required packages into your virtualenv.\n```\n$ pip install --upgrade pip\n$ pip install -r [path to sunblocker]/requirements.txt\n$ pip install [path to sunblocker]/\n$ [pip install bla]\n$ [pip install blub]\n$ ...\n```\nAny time you activate the virtualenvironment (the `source ...` command above) only the installed packages will be available and the installation is protected against any other installation, that is the virtue of the virtualenv.\n\nTo leave the virtualenv (and also disabling sunblocker in that virtual environment), type:\n```\n$ deactivate\n```\n### Not using virtualenv\nSome would say that using a virtual environment is the safe way. After being warned, type:\n```\n$ pip install --upgrade pip\n$ pip install -r [path to sunblocker]/\n```\n\n## Usage:\nUse method phazer of class Sunblocker in module sunblocker. See description therein. E.g.:\n```\n...\nimport sunblocker\nmysb = sunblocker.sunblocker.Sunblocker()\nmysb.phazer(['yoyo.ms'], outset = ['yoyout.ms'], channels = a, imsize = 512, cell = 4, pol = 'i', threshold = 4., mode = 'all', radrange = 0, angle = 0, show = 'test.pdf', verb = True, dryrun = False)\nmysb.vampirisms(inset = '../IC5264_160627/IC5264_160627.ms', lat = -30.721*units.deg, lon = 21.411*units.deg, hei = 100.*units.m, dryrun = True, avantsoleil = 1.*units.s, apresnuit = 2.*units.s, avantnuit = 3.*units.s, apresoleil = 4.*units.s, horizon = -34.*units.arcmin, nononsoleil = False, flinvert = False, verb = True)\n...\n```\n## Installing virtualenv:\nYou'll need pip. Run:\n```\n$ which pip\n```\nIf there is no output, then you need to install pip:\n```\n$ sudo easy_install pip\n```\nThen run:\n```\nvirtualenv --version\n```\nIf there is a response (i.e. a version number returned), do nothing. If there is an error message, do:\n```\nsudo easy_install virtualenv\n```\nor\n```\nsudo easy_install virtualenv\n```\nor\n```\nsudo apt-get install python-virtualenv\n```\nthen\n```\nsudo pip install virtualenvwrapper\n```\nThat should do.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gigjozsa/sunblocker", "keywords": "", "license": "GNU GPL v2", "maintainer": "", "maintainer_email": "", "name": "sunblocker", "package_url": "https://pypi.org/project/sunblocker/", "platform": "", "project_url": "https://pypi.org/project/sunblocker/", "project_urls": { "Homepage": "https://github.com/gigjozsa/sunblocker" }, "release_url": "https://pypi.org/project/sunblocker/1.0.0/", "requires_dist": null, "requires_python": ">=2.6, < 3", "summary": "A (python pyrap) method to remove solar-like RFI from interferometric data", "version": "1.0.0" }, "last_serial": 4993063, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "74c372a0d33e1d5fb9e5fc8e4b8a3e52", "sha256": "b19833ee14e737473f82d315b0b8173c76def251973b72df2ea624155a0c52a9" }, "downloads": -1, "filename": "sunblocker-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "74c372a0d33e1d5fb9e5fc8e4b8a3e52", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 17422, "upload_time": "2017-11-09T08:54:31", "url": "https://files.pythonhosted.org/packages/20/11/da129d1458e9d72cee0c9172b6887464920e46391290b0f44434d7d45c06/sunblocker-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc3a917e0929b19593b22d9d52f7a166", "sha256": "5e77641264bc15d6cff462bfc1dd7d1d32edc24152af72bdd1d4ae072c9cab1a" }, "downloads": -1, "filename": "sunblocker-0.0.2.tar.gz", "has_sig": false, "md5_digest": "dc3a917e0929b19593b22d9d52f7a166", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16255, "upload_time": "2017-11-09T08:54:33", "url": "https://files.pythonhosted.org/packages/5b/e9/fbe1d26ad28a76286bcf880ad978f4ca1c980e30dad7389eb9c4cfbbb6cb/sunblocker-0.0.2.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "217d7c9e8dc8beac0e1981b4f39261b1", "sha256": "9dd02cf40931b23c38b212f75d8b28ae9d67c01646a20943f1a8cb58f301764f" }, "downloads": -1, "filename": "sunblocker-1.0.0.tar.gz", "has_sig": false, "md5_digest": "217d7c9e8dc8beac0e1981b4f39261b1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, < 3", "size": 17729, "upload_time": "2019-03-27T14:17:06", "url": "https://files.pythonhosted.org/packages/6a/92/5d7d04076c4e2928e5751455adc820ce30c90152e7224422b34720990672/sunblocker-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "217d7c9e8dc8beac0e1981b4f39261b1", "sha256": "9dd02cf40931b23c38b212f75d8b28ae9d67c01646a20943f1a8cb58f301764f" }, "downloads": -1, "filename": "sunblocker-1.0.0.tar.gz", "has_sig": false, "md5_digest": "217d7c9e8dc8beac0e1981b4f39261b1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, < 3", "size": 17729, "upload_time": "2019-03-27T14:17:06", "url": "https://files.pythonhosted.org/packages/6a/92/5d7d04076c4e2928e5751455adc820ce30c90152e7224422b34720990672/sunblocker-1.0.0.tar.gz" } ] }