Coder Social home page Coder Social logo

bpm's Introduction

#badPixelMasker.py Author: Jesse A. Rogerson, jesserogerson.com, email: [email protected]


Synopsis

This is an program designed to interpolate out bad pixels or cosmic rays of a spectrum. It uses a simple 1-dimensional interpolator to do this, and is fully interactive with the user.

###For Help:

$> ./badPixelMasker.py -h

usage: badPixelMasker.py [-h] [-zem ZEM] [-kind KIND] spec

positional arguments: spec /path/to/normalized/ASCII/spectrum

optional arguments: -h, --help show this help message and exit -zem ZEM redshift of target (If provided, will assume you want to shift to rest-frame). -kind KIND Type of interpolation. i.e., linear, nearest, zero, slinear, quadratic, cubic. See: scipy.interpolate.interp1d.html

###Outputs: The program doesn't necessarily output anything. However, the user can opt to output an updated version of the input spectrum. It will be given the filename:

filename.bpm.ascii

wherein 'bpm' stands for Bad Pixel Masker. The output file will be exactly the same as the input file except the flux values in wavelength range(s) given during the masking process will have been changed.

###Notes: a) BPM generates a plot for the user to interact with during the masking process. As a result, the user must be able to have figures pop-up. i.e., turn on x-11 forwarding.

Installation

No Installation needed, just download and execute script.

License

see LICENSE.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.