projects/themis/spin/
correct_delta_phi_tensor.pro
NAME: CORRECT_DELTA_PHI_TENSOR.PRO PURPOSE: Apply eclipse delta_phi corrections to L1 MOM tensor quantities. CATEGORY: TDAS CALLING SEQUENCE: correct_delta_phi_tensor, tens=mflux, delta_phi=delta_phi INPUTS: OUTPUTS: KEYWORDS: tens: An Nx6 input array representing the xx,yy,zz,xy,xz,yz components of a 3x3 matrix. (The other three elements are implied by symmetry.) The data is modified in place. delta_phi: An array of delta_phi correction values, in degrees. The sample counts of tens and delta_phi must match. PROCEDURE: For each sample: construct a 3-d rotation matrix corresponding to a delta_phi degree counterclockwise rotation about the DSL-Z axis. Construct a 3x3 matrix from the 6-element tensor sample. Apply the rotation by performing matrix multiplication: transpose(rotation) # tensor # rotation Then strip the redundant terms of the result, yielding a modified 6-element representation of the original tensor. EXAMPLE:
Routines
File attributes
Modification date: | Thu Feb 13 16:42:34 2014 |
Lines: | 13 |