Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

# 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.

Metadata

Release files for sunblocker 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sunblocker 1.0.1
File Size Uploaded
sunblocker-1.0.1.tar.gz 18.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sunblocker 1.0.1
File Interpreter ABI Platform
sunblocker-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 43.0 kB

Release files / sunblocker-1.0.1.tar.gz

Download URL sunblocker-1.0.1.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4146ccb55caa66366c55f823dfcee54340ece329bf4d251d66c43688826bbbda
BLAKE2b-256 checksum
How to use checksums
ecabeb52315f67fdf5565c2111a0bcc2eda5a3a8982736a1450305e675d2de70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / sunblocker-1.0.1-py3-none-any.whl

Download URL sunblocker-1.0.1-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57d8ea858b26004f3c1e1f488de07012a90ca53dbbd14adbc8813282142a9556
BLAKE2b-256 checksum
How to use checksums
cc3adfe0f571d9110bb57a713c4a9983b4f9f06e64387a9c458c78686cdc76c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page