diff --git a/ibadatfile/ibadatfile.py b/ibadatfile/ibadatfile.py index eaae470..62a714d 100644 --- a/ibadatfile/ibadatfile.py +++ b/ibadatfile/ibadatfile.py @@ -62,6 +62,11 @@ def pda_type(self) -> str: """Return the channel unit.""" return self.channel.QueryInfoByName("$PDA_Typ") + + def tbased(self): + """Return the channel sampling rate for each channel.""" + return float(self.channel.QueryInfoByName("$PDA_Tbase")) + def data(self) -> np.array: """Return the channel data.""" if self.channel.IsDefaultTimebased():