-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
I am running REDpy on a single station using locally stored files. Running Ubuntu 18.04LTS.
[Settings]
title=Savo
filename=Savo.h5
groupName=Savo
groupDesc=Savo
nsta=1
station=SAVO
network=SW
channel=HHZ
location=10
server=file
searchdir=/home/sherburn/Commercial/Savo/SAVOsds/2021/SW/SAVO/HHZ.D/
winlen=512
cmin=0.80
minplot=20
dybin=0.125
nstaC=1
ncor=1
printsta=0
I have a total 10 months of data to process. Have run backfill in blocks of a month or two. Up to 4 months all was fine. Then with the 5th, the clustering was okay, but the plotting of clusters failed with an index out of bounds message. This example is from running forcePlot, but the error message is the same.
python forcePlot.py -c savo.cfg -a -r
Traceback (most recent call last):
File "forcePlot.py", line 96, in <module>
redpy.plotting.createPlots(rtable, ftable, ttable, ctable, otable, opt)
File "/home/sherburn/git/REDPy/redpy/plotting.py", line 64, in createPlots
plotFamilies(rtable, ftable, ctable, opt)
File "/home/sherburn/git/REDPy/redpy/plotting.py", line 788, in plotFamilies
r1 = [np.where(idf==xx)[0][0] for xx in id1[ix]]
File "/home/sherburn/git/REDPy/redpy/plotting.py", line 788, in <listcomp>
r1 = [np.where(idf==xx)[0][0] for xx in id1[ix]]
IndexError: index 0 is out of bounds for axis 0 with size 0
Closing remaining open files:Savo.h5...done
The relevant code segment is.
# Plot correlation timeline
idf = ids[fam]
ix = np.where(np.in1d(id2,idf))
C = np.eye(len(idf))
r1 = [np.where(idf==xx)[0][0] for xx in id1[ix]]
r2 = [np.where(idf==xx)[0][0] for xx in id2[ix]]
C[r1,r2] = ccc[ix]
C[r2,r1] = ccc[ix]
Cprint = C[np.argmax(np.sum(C,0)),:]
I can't see how the plotting is fine until some point and then fails, after which nothing I do seems to get the cluster families to plot again. Could this be something to do with the large number events detected and that clusters have many elements??
Many thanks.
Metadata
Metadata
Assignees
Labels
No labels