Documentation for /home/davin/idl/socware/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

general/cotrans/

gse2agsm.pro


Routines

top source gse2agsm

gse2agsm, data_in, data_out, sw_velocity=sw_velocity, rotation_angle=rotation_angle, aGSM2GSE=aGSM2GSE

Procedure: gse2agsm Purpose: Converts between GSE coordinates and aberrated GSM coordinates Inputs: in_data: structure containing data to be transformed in GSE coordinates Output: out_data: structure containing the transformed data in aberrated GSM coordinates Keywords: sw_velocity (optional): vector containing solar wind velocity data, [Vx, Vy, Vz] in GSE coordinates rotation_angle (optional): angle to rotate about the Z axis to point into the solar wind (degrees) Notes: Either the solar wind velocity (/sw_velocity) or rotation angle (/rotation_angle) keyword needs to be defined to do the transformation Examples: In the following example, the data to be transformed into aGSM coordinates is in a standard tplot variable named 'position_gse'. get_data, 'position_gse', data=position_gse ; load solar wind velocity data using OMNI (GSE coordinates, km/s) omni_hro_load, varformat=['Vx', 'Vy', 'Vz'] ; remove NaNs from the solar wind velocity tdeflag, ['OMNI_HRO_1min_Vx', 'OMNI_HRO_1min_Vy', 'OMNI_HRO_1min_Vz'], 'remove_nan' ; get the IDL structures containing the velocity components get_data, 'OMNI_HRO_1min_Vx_deflag', data=Vx_data get_data, 'OMNI_HRO_1min_Vy_deflag', data=Vy_data get_data, 'OMNI_HRO_1min_Vz_deflag', data=Vz_data option 1: ; do the transformation to aberrated GSM (aGSM) using a rotation angle gse2agsm, position_gse, agsm_pos_from_angle, rotation_angle=4.0 option 2: ; do the transformation to aberrated GSM (aGSM) using solar wind velocity loaded from OMNI gse2agsm, position_gse, agsm_pos_from_vel, sw_velocity = [[Vx_data.Y], [Vy_data.Y], [Vz_data.Y]] $LastChangedBy: egrimes $ $LastChangedDate: 2014-02-25 15:48:12 -0800 (Tue, 25 Feb 2014) $ $LastChangedRevision: 14436 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/general/cotrans/gse2agsm.pro $

Parameters

data_in
data_out

Keywords

sw_velocity
rotation_angle
aGSM2GSE

File attributes

Modification date: Thu Mar 13 16:35:40 2014
Lines: 59