This is in progress and does not include all the latest developments.
Many input datasets are required which are not yet provided.
1. GALPLOT is a code for plotting the results of the cosmic ray propagation and diffuse gamma ray production code GALPROP, together with relevant data.
Data include cosmic-ray spectra and ratios, Fermi-LAT gamma rays, and synchrotron surveys.
It can also perform gamma-ray source population synthesis calculations.
So far there is no documentation of the functionality, this will follow if there is sufficient interest.
It should however be sufficiently clear from the comments in the parameter file provided.
2. Installation
The packages required are
The packages cfitsio, CCfits, healpix and gsl (GNU Scientific Library) and CLHEP are required.
These can be obtained from the following URLs
cfitsio: http://heasarc.gsfc.nasa.gov/fitsio/
CCfits: http://heasarc.gsfc.nasa.gov/fitsio/
healpix: http://healpix.jpl.nasa.gov This version requires HEALPix 3.11, also compatible with v2.20a (may need openmp enabled in configure, see below). Replaces previous version which used v2.01.
gsl: http://www.gnu.org/software/gsl/ (not actually used by GALPLOT, but used by GALPROP. Will remove from GALPLOT configuration in future).
CERN root (5.18.00 or later, has been validated with 5.34.13) from http://root.cern.ch
slalib (sla_c): available from the ISDC http://isdc.unige.ch, under INTEGRAL OSA, directory support-sw/sla_c.
<path for slalib> is assumed to contain lib/libsla_c.a & include/slalib.h:
cp libsla_c.a <path for slalib>/lib , cp *.h <path for slalib>/include
Hint: do NOT use the ISDC Makefile found there. Instead do e.g.
g++ -c *.c
ar -vr libsla_c.a *.o
(the reason is that the slalib routines are in C but need compilation with g++ for compatibility with GALPLOT C++ argument passing.)
Typical installation goes like this:
cd <directory where working copy of galprop and this README file is>
autoreconf -i -v
./configure --with-cfitsio=<path for cfitsio> --with-healpix=<path for healpix> --with-gsl=<path for gsl> --with-rootminuit2=<path for root> --with-slalib=<path for slalib> --prefix=<path for installed executable> CXXFLAGS="-O3 etc"
(incomplete: see below for a complete example)
make
which generates the binary ./source/galplot
optionally:
make install
which puts the binary in <path for installed executable>/bin
If make install is used, galplot has to be run from <path for installed executable>/bin in order to access GCR*.dat (which must be copied there).
To run it to plot galprop output from e.g. ../GALDEF/galdef_54_reltest19
with plotting options specified in ../GALDEF/galplotdef_54_reltest19
These sample files are included in the GALDEF directory in this distribution; they must be copied to ../GALDEF to run galprop and galplot.
20131212 : r1108: description of directory structure
20131210 : r1101: note on slalib compilation
20131209 : r1099: no boost-dependence at all. gsl removed from setenv
20140110 : r1120: galplotdef_54_reltest19: better source populations parameters. Added FITS, FITS/GLAST, and 2FGL catalogue in that directory, as used by galplotdef_54_reltest19
20140115 : r1136: two more input Fermi catalogues read, see galplotdef_54_reltest19. Samples provided in FITS/GLAST. Used for N(S) plots.
20140130 : r1151: Skymap.h outputs HEALPix images as a column for each energy, compatible with GALPROP and viewable with Aladin.
Affects source population and solar emission skymaps, which are the only output images from GALPLOT.
20140202 : r1157 Source population skymaps have distinct names including galdef_ID and galplotdef tag.