general/cotrans/special/
tcrossp.pro
PROCEDURE: TCROSSP Purpose: Vectorized routine to calculate the cross product of two tplot variables containing arrays of 3d vectors and storing the result in a tplot variable. Also, can perform vectorized cross product on arrays. Arguments: v1: The name of the tplot variable or an Nx3 length array storing the first vector in the cross product v2: The name of the tplot variable or an Nx3 length array storing the second vector in the cross product newname(optional): the name of the output tplot variable error(optional): named variable in which to return error state of the computation. 1 = success 0 = failure diff_tsize_ok = if set, allows the arrays to have a different number of elements in time, uses data_cut, which interpolates the data in v2 to the number of times given by v1 Outputs(optional): out: Returns output in array format, if this argument is present, no tplot variable will be created Example: TPLOT; tcrossp,'tvarname1','tvarname2' Array: tcrossp,array_2d_1,array_2d_2,out=array_output NOTES:
Routines
File attributes
Modification date: | Thu Feb 13 16:43:35 2014 |
Lines: | 103 |