CorrBulk objets #78
-
Hello everyone. I’m running into an issue when trying to work with CorrBulk objects. What I want to do is calculate the envelope of the correlations with the envelope() method after stacking them for a year, and then correct the decay of the envelope's amplitude using the correct_decay() method. However, since it seems that it can not be apply envelope() and correct_decay() directly to a CorrStream object, my approach has been to create a CorrBulk object first, then calculate the envelope and correct the decay. But I’m encountering the following error: Traceback (most recent call last): This is part of the code: ###PLOTTING
I’m not sure if this is due to something I’m missing or if my logic is not correct in some way. Additionally, I’m wondering if after computing the envelope and correcting the decay, I should convert the CorrBulk object back into a CorrStream object and stack the envelopes again. I would greatly appreciate any guidance on whether my workflow makes sense, or if there’s a better approach I should follow. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there, I would do the following: Before plotting, just create a Best, |
Beta Was this translation helpful? Give feedback.
Hi there,
as the error suggests, you have not uniquely sampled traces in your CorrBulk. That is a problem as the plotting method of CorrBulk is based on imshow, which assumes an even sampling.
I would do the following: Before plotting, just create a
CorrSt
from yourCorrBulk
and plot that (CorrSt
uses a plotting tool based on pcolormesh, which can interpolate).Best,
Peter