RNO-G / mattak

RNO-G dataformats
1 stars 1 forks source link

Problems reading RNO-G data via the NuRadioMC-Mattak reader #21

Closed jakobhenrichs closed 1 year ago

jakobhenrichs commented 1 year ago

I downloaded and built the newest version of Mattak and tried to read some RNO-G data with the NuRadioMC-Mattak reader readRNOGDataMattak.py. For both backends, 'uproot' and 'pyroot', I get (different) errors and cannot read the data.

uproot: Screenshot from 2023-05-03 17-15-55

pyroot: Screenshot from 2023-05-03 17-15-38

I have no time to look into this, but my suspicious is that the problem is on the Mattak side.

fschlueter commented 1 year ago

Hi,

To the first (uproot) problem seems to be related with the sampling rate being None in the mattak "file" (or rather being set to None during read-out if it was not stored or could be read). If you checkout this branch (https://github.com/nu-radio/NuRadioMC/pull/531) you should get a more meaningful error message. I also added the overwrite_sampling_rate which allows you to set the sampling rate by hand and read these "broken" files.

To the second (pyroot) problem: This indeed seems to be a NuRadioMC issue, let me see if I can reproduce and fix it

fschlueter commented 1 year ago

Alright, the second issue should be fixed with the newest commit in https://github.com/nu-radio/NuRadioMC/pull/531

LMK if you get any other problem

jakobhenrichs commented 1 year ago

Thank you! Using the newest commit (https://github.com/nu-radio/NuRadioMC/pull/531) reading data with both backends works.