Giter VIP home page Giter VIP logo

meds's Introduction

meds

Python and C libraries to work with Multi Epoch Data Structures

Description of the file format here https://cdcvs.fnal.gov/redmine/projects/deswlwg/wiki/Multi_Epoch_Data_Structure

In addition to the libraries listed below, a program called make-meds-input is also installed under $prefix/bin. This program converts a fits file to an input file for the make-cutouts program (hosted elsewhere).

python library

This is a pure python library. For reading the FITS files, the fitsio python package is used. fitsio https://github.com/esheldon/fitsio

MEDS python Docs are here https://github.com/esheldon/meds/blob/master/meds/meds.py

installing the python library #############################

in the usual place
    python setup.py install

at a different prefix
    python setup.py install --prefix=/some/path

make sure it is on your PYTHONPATH

C library

This is a pure C library for working with MEDS. Docs here https://github.com/esheldon/meds/blob/master/src/meds.h The only requirement is an installation of cfitsio and gcc.

installing the C library #############################

in the usual place
    make install

in a different prefix
    make install prefix=/some/path

linking to the library #######################

Include "meds.h" and use the following to link against the library. Make sure to get the order correct

CC  ... -lmeds -lcfitsio -lm ...

testing

You can test your build of the C libary using

./src/test $medsfile

Where $medsfile is the name of a MEDS fits file.

meds's People

Contributors

esheldon avatar danielgruen avatar

Watchers

James Cloos 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.