Module gplately.ptt.velocity_tools

Functions

def get_plate_velocities(velocity_domain_features, topology_features, rotation_model, time, delta_time, rep='vector_comp')

function to get velocites via pygplates

def get_velocities(time, rotation_model, topology_filenames, delta_time=5.0, Xnodes=[], Ynodes=[])

get velocity data

Parameters

time : number
the reconstruction time
rotation_model
the rotation model
topology_filenames
the topology files
delta_time : number
the time increment
Xnodes, Ynodes : the coordinates of domain points
 

Returns

the coordinates of domain points and velocity data
 
def get_velocity_x_y_u_v(time, rotation_model, topology_filenames, delta_time=5.0, Xnodes=[], Ynodes=[])

get velocity data in x ,y, u, v form

Parameters

time : number
the reconstruction time
rotation_model
the rotation model
topology_filenames
the topology files
delta_time : number
the time increment
Xnodes, Ynodes : the coordinates of domain points
 

Returns

the coordinates of domain points and velocity u, v components
 
def get_x_y_u_v(Xnodes, Ynodes, all_velocities)

get velocity u,v components from velocity data

Parameters

all_velocities : the velocity data
 
Xnodes, Ynodes : the coordinates of domain points
 

Returns

the coordinates of domain points and velocity u, v components
 
def make_GPML_velocity_feature(Long, Lat)
def plot_velocities(x, y, velocities, ax)

draw the velocity vectors in a map Some arrows are long and some are very short. To make the plot clearer, we nomalize the velocity magnitude and use color to denote the different speed.

Parameters

x, y : the domain points coordinates
 
velocities : the velocity data
 
ax : the matplotlib axes object
 

Returns

A colour bar object
 
def plot_velocities_uv(x, y, u, v, ax)

draw the velocity vectors in a map Some arrows are long and some are very short. To make the plot clearer, we nomalize the velocity magnitude and use color to denote the different speed.

Parameters

x, y : the domain points coordinates
 
u, v : the u and v component of the velocities
 
ax : the matplotlib axes object
 

Returns

A colour bar object