Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

grdvector_notes.rst_ 3.5 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  1. Vector scaling and unit effects
  2. -------------------------------
  3. The scale given via **-S** may require some consideration. As explained in **-S**,
  4. it is specified in data-units per plot or distance unit. The plot or distance unit
  5. chosen will affect the type of vector you select. In all cases, we first compute
  6. the magnitude *r* of the user's data vectors at each selected node from the *x* and *y*
  7. components (unless you are passing *r*, *theta* grids directly with **-A**). These
  8. magnitudes are given in whatever data units they come with. Let us pretend our data
  9. grids record secular changes in the Earth's magnetic horizontal vector field in units
  10. of nTesla/year, and that at a particular node the magnitude is 28 nTesla/year (in some
  11. direction). If you specify the scale using plot distance units (**c**\|\ **i**\|\ **p**)
  12. then you are selecting *Cartesian* vectors. Let us further pretend that you selected
  13. **-S**\ 10c as your scale option. That means you want 10 nTesla/year to equate to a
  14. 1 cm plot length. Internally, we convert this scale to a plot scale of 1/10 = 0.1 cm
  15. per nTesla/year. Given our vector magnitude of 28 nTesla/year, we multiply it by our
  16. plot scale and finally obtain a vector length of 2.8 cm, which is then plotted.
  17. The user's data units do not enter of course, i.e., they always cancel [Likewise, if
  18. we had used **-S**\ 25i (25 nTesla/year per inch) the plot scale would be (1/25) = 0.04
  19. inch per nTesla/year and the vector plot lengths would be 28 * 0.04 inch = 1.12 inch].
  20. If we now wished to plot a 10 nTesla/year reference vector in the map legend we would
  21. plot one that is 10 times 0.1 cm = 1 cm long since the scale length is *constant*
  22. regardless of map projection and location. A 10 nTesla/year vector will be 1 cm anywhere.
  23. Let us contrast this behavior with what happens if we use a geographic distance unit
  24. instead, say **-S**\ 0.5k (0.5 nTesla/year per km). Internally, this becomes a map scale of
  25. 2 km per nTesta/year. Given our node magnitude of 28 nTesla/year, the vector length will
  26. be 28 x 2 km = 56 km. Again, the user's data unit do not enter. Now, that vector length
  27. of 56 km must be projected onto the Earth, and because of map distortions, a 56 km vector
  28. will be mapped to a length on the plot that is a function of the user's map projection,
  29. the map scale, and possibly the location on the map. E.g., a 56 km vector due east at
  30. Equator on a Mercator map would seem to equal ~0.5 degree longitude but at 60 north it
  31. would be more like ~1 degree longitude. A consequence of this effect is that a user
  32. who wants to add a 10 nTesla/year reference vector to a legend faces the same problem we do
  33. when we wish to draw a 100 km map scale on a map: the plotted length usually will depend
  34. on latitude and hence that reference scale is only useful around that latitude.
  35. This brings us to the inverse scale option, **-Si**\ *length*. This variant is useful
  36. when providing the inverse of the scale is simpler. In the Cartesian case above, we
  37. could instead give **-Si**\ 0.1c which would directly imply a plot scale of 0.1 cm per
  38. nTesla/year. Likewise, for geographic distances we could give **-Si**\ 2k for 2 km per
  39. nTesla/year scale as well. As the **-Si** argument increases, the plotted vector length
  40. increases as well, while for plain **-S** the plot length decreases with increasing scale.
  41. Notes
  42. -----
  43. Be aware that using **-I** may lead to aliasing unless
  44. your grid is smoothly varying over the new length increments.
  45. It is generally better to filter your grids and resample at a
  46. larger grid increment and use these grids instead of the originals.
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...