stacking cross correlations #74
-
Hello everyone, I am currently working with SeisMIC and have a question regarding the stacking function that I hope you can help clarify. I want to plot the stacking of the cross-correlation for a month, but the date shown in the figure suggests that the code has performed the stacking for the entire year over which I have computed the cross-correlation. The .h5 file contains cross-correlation data for one year. This is part of the code I am using for plotting the stacking ###PLOTTING
I appreciate any insights or resources you could share on these topics. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there, However, even when adding them as UTCDateTime objects, you will still run into problems. Here are two ways for a workaround:
The slightly more complex but somewhat faster way would be to find out what times are available in you file and then loop over the list of Traces that you would like to load.
I would recommend going for the first solution. Peter |
Beta Was this translation helpful? Give feedback.
Hi there,
so here is what happens: the kwargs
corr_start
andcorr_end
incdb.get_data
are expected to be of typeUTCDateTime
. If they are not, they will be replaced by wildcards -> all available data will be loaded into the stream. I admit that this is a little unfortunate and, in a future version, I will let the code print a warning, when this happens.However, even when adding them as UTCDateTime objects, you will still run into problems.
corr_start
andcorr_end
refer to the (almost) exact start and endtime of one CorrTrace. Currently, there is no way of filtering for all traces in a certain time span - I acknowledge that this is inconvenient but this is actually a surprisingly complex prob…