metpyrad.Hidex300.process_readings#

Hidex300.process_readings(kind, time_unit='s')#

Processes the specified type of measurements (background, sample, net, or all).

Parameters:
  • kind (str) – The type of measurements to process. Options are ‘background’, ‘sample’, ‘net’, or ‘all’.

  • time_unit (str) – The unit of time for the measurements. Options are ‘s’ (seconds), ‘min’ (minutes), ‘h’ (hours), ‘d’ (days), ‘wk’ (weeks), ‘mo’ (months), ‘yr’ (years). Default is ‘s’.

Raises:
  • ValueError – If an invalid measurement kind is provided.

  • ValueError – If readings, background, sample, or net data is not available.

Examples

Process background measurements

>>> processor = Hidex300('Lu-177', 2023, 11)
>>> processor.parse_readings(folder_path='/path/to/folder')
Found 2 CSV files in folder /path/to/folder
>>> processor.process_readings(kind='background')
     Cycle  Sample  Repetitions  Count rate (cpm)  Counts (reading)  Dead time Real time (s)            End time  Live time (s)    Elapsed time Elapsed time (s)  Counts  Counts uncertainty  Counts uncertainty (%)
 1       1            1             83.97               140        1.0           100 2023-11-30 08:44:20          100.0 0 days 00:00:00              0.0  139.95           11.830046                8.453052
 1       1            2             87.57               146        1.0           100 2023-11-30 08:51:04          100.0 0 days 00:06:44            404.0  145.95           12.080977                8.277476

Process sample measurements computing elapsed time in minutes

>>> processor = Hidex300('Lu-177', 2023, 11)
>>> processor.parse_readings(folder_path='/path/to/folder')
Found 2 CSV files in folder /path/to/folder
>>> processor.process_readings(kind='sample', time_unit='min')
     Cycle  Sample  Repetitions  Count rate (cpm)  Counts (reading)  Dead time Real time (s)            End time  Live time (s)    Elapsed time Elapsed time (min)         Counts  Counts uncertainty  Counts uncertainty (%)
 1       2            1         252623.23            374237      1.125           100 2023-11-30 08:47:44      88.888889 0 days 00:00:00              0.0  374256.637037          611.765181                0.163461
 1       2            2         251953.09            373593      1.124           100 2023-11-30 08:54:28      88.967972 0 days 00:06:44         6.733333  373595.922301          611.224936                0.163606