Skip to content

javierggt/corsika_reader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

================ CORSIKA reader

C++/Python utility for reading CORSIKA files.

Build Status

Documentation

installation:

cmake /path/to/source -DCMAKE_INSTALL_PREFIX=/path/to/install
make
make install

The -DFETCH_CORSIKA_DATA=True option to cmake fetches some corsika files that are used in tests and examples. They are installed in share/corsika/data. These are downloaded only once.

Requirements:

  1. CMake.
  2. Boost development libraries (libboost-...-dev): python, iostreams, test
  3. Python (python-devel)

Some compilation issues:

A problem occurs when using some older versions of boost with cmake-2.8.6-rc2 or later, causing the following error:

make[2]: *** No rule to make target `/usr/lib64/lib64/libboost_iostreams-mt.so.5'

(note the consecutive lib64/). To avoid this, one can pass the following option to cmake:

-DBoost_NO_BOOST_CMAKE=ON

This should work, but one can use options like these to make sure Boost and python are found:

-DBOOST_ROOT=/opt/boost/1_55_0
-DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7
-DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib

or

-DBOOST_INCLUDEDIR=$I3_PORTS/include/boost-1.38.0 -DBOOST_LIBRARYDIR=$I3_PORTS/lib/boost-1.38.0
-DPYTHON_INCLUDE_DIR=/cvmfs/icecube.opensciencegrid.org/standard/RHEL_6_x86_64/include/python2.7
-DPYTHON_LIBRARY=/cvmfs/icecube.opensciencegrid.org/standard/RHEL_6_x86_64/lib/libpython2.7.so

Examples:

There are a few python examples that get installed in share/corsika/examples. For some plotting examples you need PyRoot, but these will be removed. For others you need matplotlib.

About

No description, website, or topics provided.

Resources

License

BSD-2-Clause, Unknown licenses found

Licenses found

BSD-2-Clause
LICENSE
Unknown
LICENSE.Auger

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 80.0%
  • Python 16.0%
  • CMake 3.8%
  • C 0.2%