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).
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
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 ...
You can test your build of the C libary using
./src/test $medsfile
Where $medsfile is the name of a MEDS fits file.