GeoVectorXYZ

GeoVectorXYZ[loc{vX,vY,vZ}]

represents a three-dimensional vector of Cartesian components vX, vY, vZ in an orthonormal frame parallel to the geocentric frame, at location loc.

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

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

GeoVectorXYZ[{loc1vec1,loc2vec2,}]

represents the same collection of vectors.

GeoVectorXYZ[vec]

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

Details

  • GeoVectorXYZ[] can represent any vectorial magnitude on the surface of the Earth or any other celestial globe, like wind speed, magnetic field, scalar gradients, etc.
  • GeoVectorXYZ describes data using an orthonormal frame of fixed orientation with respect to the ambient 3D space, but origin at the given location.
  • GeoVectorXYZ acts both as a vector data container and as a converter from other types of geo vector data, like GeoVector or GeoGridVector.
  • In GeoVectorXYZ[locvec], the components of the vector vec can be quantities, but their units must be compatible.
  • In GeoVectorXYZ[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.
  • GeoVectorXYZ[][prop] gives the specified property of a geo vector.
  • Possible properties include:
  • "Count"number of vectors in the GeoVectorXYZ object
    "Data"first argument of the GeoVectorXYZ object
    "Depth"vector depth: 0 for a single vector, 1 for a list of them,
    "Location"location data of the GeoVectorXYZ object
    "LocationDimension"number of coordinates for each position
    "LocationPackingType"Integer or Real if positions are packed; None otherwise
    "Vector"vector data of the GeoVectorXYZ 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  (2)

Construct two north-pointing vectors at different locations:

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

Their GeoVectorXYZ forms have different components, due to their different orientations in 3D space:

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

This is the angle in degrees formed by those two vectors in 3D space:

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

Take 50 random locations in the world:

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

Compute the magnetic field at those locations and convert it into GeoVectorXYZ form:

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

Extract the 3D coordinates of the locations and the 3D components of the vectors, in numeric form:

In[3]:=
Click for copyable input

Draw 3D arrows for those vectors:

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

Scope  (7)

Properties & Relations  (3)

Introduced in 2019
(12.0)