Skip to content

Instantly share code, notes, and snippets.

@tomkooij
Last active March 29, 2016 07:55
Show Gist options
  • Save tomkooij/5e879f55aad637545a68 to your computer and use it in GitHub Desktop.
Save tomkooij/5e879f55aad637545a68 to your computer and use it in GitHub Desktop.
# coding: utf-8
import tables
print "tables version: ", tables.__version__
import numexpr
print "numexpr version: ", numexpr.__version__
FILENAME = '/data/hisparc/corsika/corsika_overview.h5'
data = tables.open_file(FILENAME, 'r')
a = data.root.simulations.read_where('log10(energy) > 14.')
print len(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment