The examples folder
The repository’s examples/ folder holds scripts and notebooks written by
the developers over several years. They are less maintained than the
Tutorial notebooks, which are executed on every change, so start with the
notebooks and come here for a task they do not cover. This page lists the
examples worth using, by task, then the ones that no longer run.
Run each script from its own folder after source env/setup.sh.
By task
Task |
Example |
|---|---|
Write the trees of a file by hand |
|
Look inside any GRANDlib file |
|
Read a simulation event by event |
|
Read measured GP13 events |
|
Reconstruct measured candidates |
|
The RF chain, stage by stage |
|
Galactic noise and the antenna response |
|
Coordinates, the geomagnetic field, topography |
the three notebooks in |
Generate an array layout |
|
Ground elevation around a site |
|
View events in 3D |
|
What does not run
old/: outdated interfaces and paths of other people’s machines. Kept for reference only.datalib/datamanager_example.py: needs access to the collaboration’s database servers and an editedconfig.ini.aoi/browse_gp13_events_example.py: runs, but only with measured GP13 data, which are not in the repository.dataio/readme.mddescribes an older layout of the data classes; the scripts beside it are current.
examples/README.md has the full list with what each example needs.
Where next
Recipes for short, tested code for common tasks.
Tutorial notebooks for the maintained walk-throughs.