-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to plot spatial marginal variogram #156
Comments
Hi Wonmo, If I got your question correct, you are right, there is a bit of confusion, but the docstring of scikit-gstat/skgstat/SpaceTimeVariogram.py Line 657 in f44de8b
You can see, that the coordinates are stacked on top of each other as often as the amount of time steps. And directly in the next line: scikit-gstat/skgstat/SpaceTimeVariogram.py Line 658 in f44de8b
the transposed, flattened values are used. Thus, all observations from all timestamps on the time axis are used, which effectively means time lag is 0. Hence, this marginal variogram uses all observations at all spatial lags for the time lag 0. Note that this is different from the spatial variogram at timestep 0. Please also be aware, that I am planning on refactoring the whole class, and implemented another (possibly additional) interface for specifying the two dimension axes in a more expressive way, as this caused a lot of confusion. That would also involve a method to explicitly generate marginal variogram for any kind of specified lag and would also work for space-time cross-variograms. I am just not yet sure, when I can start with that. I hope that answers your question. Mirko |
hmm. That makes sense. I have to admit, that I did the implementation (literally) years ago and cannot remember the details exactly. I did not use the class myself, eversince, so a wrong implementation is possible. I will have to look into this in way more detail, because I can remember that I spent a lot of time on that part of the implementation. Sorry for the inconvenience. I'll come back to you after I checked the implementation more carefully. |
Thank you very much!! |
Hello,
I have a question about plotting spatial marginal variogram.
I want to plot the spatial variogram of temporal lag 0.
However, It seems that "SpaceTimeVariogram.plot(kind='marginals')" may generate the variogram with all point pairs in dataset, regardless of the temporal lag of each pair, because "SpaceTimeVariogram.create_XMarginal" creates an instance of Variogram which does not consider the time index of data points.
Then, I think that the generated variogram by "SpaceTimeVariogram.plot(kind='marginals')" would be inconsistent with its explanation.
I would like to ask if my understanding is correct and if there is a way to obtain a spatial marginal variogram (i.e., the spatial variogram of temporal lag 0).
Sincerely,
Wonmo Koo
The text was updated successfully, but these errors were encountered: