Currently I us the obspy read method to get the stats of the Reftek130 file, example:
data = read(archive_file_path,format=“REFTEK130”)
for i in range(0,len(data)):
npts = data[i].stats.npts
sr = data[i].stats.sampling_rate
start_time = data[i].stats.starttime
end_time = data[i].stats.endtime
This is understandably a slow method considering it is accessing the entire data block.
Is there a faster way to retrieve only the file stats?
Thank you