Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python and C libraries to work with Multi Epoch Data Structures

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages