GithubHelp home page GithubHelp logo

aaryapatil / sewpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from megalut/sewpy

0.0 2.0 0.0 669 KB

Source Extractor Wrapper for Python

License: GNU General Public License v3.0

Python 92.34% Makefile 7.66%

sewpy's Introduction

Source Extractor Wrapper for Python

The tiny sewpy module let's you run SExtractor as if it would all be native python...

import sewpy
sew = sewpy.SEW(params=["X_IMAGE", "Y_IMAGE", "FLUX_RADIUS(3)", "FLAGS"],
        config={"DETECT_MINAREA":10, "PHOT_FLUXFRAC":"0.3, 0.5, 0.8"})
out = sew("myimage.fits")
print out["table"] # this is an astropy table.

... but also allows for a more sophisticated use, for instance if you want to use existing SExtractor input files.

Why yet another SExtractor wrapper ? Because we needed one that:

  • is based on astropy (in particular astropy.table),
  • uses standard logging (and also logs SExtractor's stdout & stderr to file),
  • uses tempfile to hide all input and output files, except if you want to see them
  • has some convenience functionality to use SExtractor's ASSOC process (give me an input catalog, and I append columns with SExtractor measurements to it).

The demos in the examples directory can be run without installing sewpy, and provide a quick overview.

Installation (in short)

python setup.py install --user

Documentation

To learn more about how to install and use sewpy, proceed to its documentation.

sewpy's People

Contributors

mtewes avatar reikonakajima avatar kuntzer avatar megalut avatar aaryapatil avatar

Watchers

James Cloos avatar  avatar

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.