Skip to content

What is the difference between "direction" and "angles" pars in vario_estimate() function? #266

Answered by MuellerSeb
flydream0428 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there!

This is a very good question. You can use both to get the same results. In case of direction, you need to pass a vector (or multiple vectors) that points in the direction you want to estimate the variogram.

If you use angles you can describe the same directions, but in Spherical coordinates.

In your case

gs.rotated_main_axes(dim=2, angles=1/8*np.pi))

Gives two direction vectors:

  1. pointing in the direction with an angle of 22,5°
  2. the orthogonal direction to the first direction (112,5° or 5/8*np.pi)

This means

direction=gs.rotated_main_axes(dim=2, angles=1/8*np.pi)
# and
angles=[1/8*np.pi, 5/8*np.pi]

are describing the same directions.

Only thing to take care about is, that the a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MuellerSeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #265 on September 12, 2022 13:30.