GeoVector

GeoVector[loc{m,α}]

represents a horizontal two-dimensional vector of magnitude m and bearing α at geo location loc.

GeoVector[loc{m,α,w}]

represents a three-dimensional vector of horizontal modulus m, bearing α and vertical component w at geo location loc.

GeoVector[{loc1,loc2,}{vec1,vec2,}]

represents a collection of vectors veci at respective geo locations loci.

GeoVector[{loc1vec1,loc2vec2,}]

represents the same collection of vectors.

GeoVector[vec]

represents a geo vector whose associated location has been implicitly specified.

Details

  • GeoVector[] can represent any vectorial magnitude on the surface of the Earth or any other celestial globe, like wind speed, magnetic field, scalar gradient, etc.
  • GeoVector describes vector data using an orthonormal frame tangent to the reference ellipsoid at the given location.
  • In GeoVector[loc{m,α}], the vector modulus m can be given as a numeric expression or numeric Quantity object with any units. The bearing α can be given as a number of degrees or a Quantity angle, measured clockwise from north. The vertical component is assumed to be zero.
  • In GeoVector[loc{m,α,w}], the horizontal modulus m and the vertical component w can be quantities, but their units must be compatible.
  • In GeoVector[locvec], the location loc can be given as a {lat,lon} pair in degrees, a geo Entity object or any geo location object with head GeoPosition or similar.
  • GeoVector[GeoVectorENU[]] converts a vector in GeoVectorENU form to GeoVector form, and similarly for GeoVectorXYZ and GeoGridVector objects.
  • GeoGraphics[GeoVector[locvec]] takes loc into account for geo range estimation, but does not display a vector. Use GeoGraphics[GeoMarker[GeoVector[locvec],vmarker]] to display a vector at the given location, styled as specified by the vector marker vmarker.
  • GeoVector[][prop] gives the specified property of a geo vector.
  • Possible properties include:
  • "Count"number of vectors in the GeoVector object
    "Data"first argument of the GeoVector object
    "Depth"vector depth: 0 for a single vector, 1 for a list of them,
    "Location"location data of the GeoVector object
    "LocationDimension"number of coordinates for each position
    "LocationPackingType"Integer or Real if positions are packed; None otherwise
    "Vector"vector data of the GeoVector object
    "VectorDimension"number of components for each vector
    "VectorPackingType"Integer or Real if vectors are packed; None otherwise

Examples

open all close all

Basic Examples  (3)

Take current wind data near your location:

In[1]:=
Click for copyable input
Out[1]=

Place a dart with such direction in a local map of your area:

In[2]:=
Click for copyable input
Out[2]=

Show the direction in a world map with a different geo projection, using a smaller dart:

In[3]:=
Click for copyable input
Out[3]=

Get data about the Earth's magnetic field vector at Anchorage:

In[1]:=
Click for copyable input
Out[1]=

The horizontal component, declination and negative of the down component form a GeoVector object:

In[2]:=
Click for copyable input
Out[2]=

Transform that geo vector to its Cartesian form along the east-north-up axes:

In[3]:=
Click for copyable input
Out[3]=

Transform back to cylindrical form:

In[4]:=
Click for copyable input
Out[4]=

Draw arrows at random locations over the world, always pointing in the north direction:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Use GeoVectorPlot for a smoother representation:

In[3]:=
Click for copyable input
Out[3]=

Scope  (8)

Applications  (1)

Properties & Relations  (4)

Interactive Examples  (2)

Introduced in 2019
(12.0)