Skip to main content

A (python pyrap) method to remove solar-like RFI from interferometric data

Project description

# sunblocker A (python pyrap) method to remove solar-like RFI from interferometric data

Copyright (c) 2017 Gyula Istvan Geza Jozsa, Paolo Serra, Kshitij Thorat, Sphesihle Makhatini, NRF (Square Kilometre Array South Africa) - All Rights Reserved

## Installation: ### Using virtualenv: See installing virtualenv below if virtualenv is not installed, i.e. the first command does not work.

Then find out where your virtualenv directories are stored. In this example, this directory is called ~/.virtualenv. If there is no such directory, create one: ` $ [mkdir .virtualenv] ` Then create a virtualenv in which all packages for your project will be installed: ` $ cd .virtualenv $ virtualenv --no-site-packages usingsunblock [replace usingsunblock by the name of your choice] ` This 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 ` $ source ~/.virtualenv/usingsundblock/bin/activate ` Then install the required packages into your virtualenv. ` $ pip install --upgrade pip $ pip install -r [path to sunblocker]/requirements.txt $ pip install [path to sunblocker]/ $ [pip install bla] $ [pip install blub] $ ... ` Any 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.

To leave the virtualenv (and also disabling sunblocker in that virtual environment), type: ` $ deactivate ` ### Not using virtualenv Some would say that using a virtual environment is the safe way. After being warned, type: ` $ pip install --upgrade pip $ pip install -r [path to sunblocker]/ `

## Usage: Use method phazer of class Sunblocker in module sunblocker. See description therein. E.g.: ` ... import sunblocker mysb = sunblocker.sunblocker.Sunblocker() mysb.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) mysb.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) ... ` ## Installing virtualenv: You’ll need pip. Run: ` $ which pip ` If there is no output, then you need to install pip: ` $ sudo easy_install pip ` Then run: ` virtualenv --version ` If there is a response (i.e. a version number returned), do nothing. If there is an error message, do: ` sudo easy_install virtualenv ` or ` sudo easy_install virtualenv ` or ` sudo apt-get install python-virtualenv ` then ` sudo pip install virtualenvwrapper ` That should do.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sunblocker-0.0.2.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

sunblocker-0.0.2-py2-none-any.whl (17.4 kB view details)

Uploaded Python 2

File details

Details for the file sunblocker-0.0.2.tar.gz.

File metadata

  • Download URL: sunblocker-0.0.2.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sunblocker-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5e77641264bc15d6cff462bfc1dd7d1d32edc24152af72bdd1d4ae072c9cab1a
MD5 dc3a917e0929b19593b22d9d52f7a166
BLAKE2b-256 5be9fbe1d26ad28a76286bcf880ad978f4ca1c980e30dad7389eb9c4cfbbb6cb

See more details on using hashes here.

File details

Details for the file sunblocker-0.0.2-py2-none-any.whl.

File metadata

File hashes

Hashes for sunblocker-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 b19833ee14e737473f82d315b0b8173c76def251973b72df2ea624155a0c52a9
MD5 74c372a0d33e1d5fb9e5fc8e4b8a3e52
BLAKE2b-256 2011da129d1458e9d72cee0c9172b6887464920e46391290b0f44434d7d45c06

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page