general/cotrans/lmn_transform/
gsm2lmn.pro
NAME: GSM2LMN PURPOSE: Routine transforms vector field from GSM to LMN (boundary-normal) coordinate system for magnetopause. Shue et al., 1998 magnetopause model is used. CATEGORY: Coordinate Transformation CALLING SEQUENCE: gsm2lmn,txyz,Bxyz,Blmn,swdat INPUTS: txyz: | t | x | y | z | - time and GSM position of the input vector (Bxyz). - 2D array (nvectors,4) Bxyz: | Bx | By | Bz | - vector field to transform (in GSM). - 2D array (nvectors,3) OPTIONAL INPUT: swdat: | t | Dp | Bz | of IMF at the bow-shock nose covering time interval of interest. 2D array (ntimepoints,3). The time points may be different from those of the vector field. However, they should use the same time units. If this input is not provided, the SPDF standard static SW data are generated. KEYWORDS: none PARAMETERS: none OUTPUTS: Blmn: | Bl | Bm | Bn | - vector in LMN at the same space-time points. - 2D array (nvectors,3) DEPENDENCIES: None - can be used alone. Lowest-level part of LMN transform package. MODIFICATION HISTORY: Written by: Vladimir Kondratovich 2007/12/28 on the base of the code xyz2lmnshue by Liu Jiang (09/21/2007) Modified for error handling, changed () to [] for arrays, and now correctly indexes for loop with long integers for large arrays by: Lynn B. Wilson III 2012/10/26
Routines
File attributes
Modification date: | Thu Feb 13 16:43:35 2014 |
Lines: | 68 |