Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

An event reader for LOFAR #176

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions NuRadioReco/examples/LOFAR/run_lofar_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import matplotlib.pyplot as plt

import NuRadioReco.modules.io.lofar.readLOFAR
from NuRadioReco.utilities import units

import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('readARAexample')

# Initialize the reader with the file you want to read
LOFARreader = NuRadioReco.modules.io.lofar.readLOFAR.readLOFAR(['/Users/anelles/Experiments/LOFAR/A_NuRadioReco_Test/L78862_D20121205T051644.039Z_CS002_R000_tbb.h5'],DAL=1)

for iE, event in enumerate(LOFARreader.run()):
print(event.get_id())


16 changes: 16 additions & 0 deletions NuRadioReco/modules/io/lofar/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
First attempt in writing an LOFAR reader to look into using NuRadioReco for LOFAR

The files:
metadata.py, raw_tbb_IO.py, readLOFAR.py, utilities.py
have been copied from Brian Hare
https://github.com/Bhare8972/LOFAR-LIM/blob/master/LIM_scripts/

His python package is very useful, but does not follow python convention
for modules, which it is copied rather than imported. This should be worked
on in the future.

The files also need LOFAR metadata to be downloaded:
https://github.com/Bhare8972/LOFAR-LIM/blob/master/LIM_scripts/data.tar.gz
and un-tarred in the folder.


Empty file.
Loading