source $HOME/SPICE/solarsoft_startup.csh sswidl -32 IDL> !QUIET=1 IDL> .compile mag_xform_packet.pro IDL> .compile mag_packet_driver.pro IDL> .compile $HOME/load_struct.pro -OR- IDL> .compile mag_packet_driver_20x.pro IDL> .compile mag_packet_driver_270.pro IDL> .compile $HOME/load_struct.pro IDL> .compile mag_load_cal_table.pro IDL> .compile mag_init_zero.pro IDL> .compile mag_scale_factor.pro IDL> .compile mag_internal_cal.pro IDL> .compile mag_sensor_orth_correction.pro IDL> .compile mag_frequency_response.pro IDL> .compile mag_rotation_cal.pro IDL> .compile mag_xform_packet.pro IDL> .compile mag_load_struct_20x.pro IDL> .compile mag_load_struct_270.pro IDL> MAG_PACKET_DRIVER,'0310040008mag.tlm' - short IDL> MAG_PACKET_DRIVER,'A0502241144.tlm' - long Cut & Paste at IDL> prompt !QUIET=1 .compile mag_packet_driver_20x.pro .compile mag_packet_driver_270.pro .compile mag_load_cal_table.pro .compile mag_init_zero.pro .compile mag_scale_factor.pro .compile mag_internal_cal.pro .compile mag_sensor_orth_correction.pro .compile mag_frequency_response.pro .compile mag_rotation_cal.pro .compile mag_xform_packet.pro .compile mag_load_struct_20x.pro .compile mag_load_struct_270.pro MAG_PACKET_DRIVER,'0310040008mag.tlm' - short MAG_PACKET_DRIVER,'A0502241144.tlm' - long .compile $HOME/load_struct.pro # other test packets ls -l *tlm -rw-r--r-- 1 alam users 60196 Aug 24 2005 0310040008mag.tlm -rw-rw-r-- 1 alam users 1847898 Oct 6 2005 0310040143.tlm -rw-r--r-- 1 alam users 63474 Aug 24 2005 0310092133sep.tlm -rw-r--r-- 1 alam users 7498752 Aug 24 2005 A0502241144.tlm -rw-r--r-- 1 alam users 7112192 Oct 24 10:40 B0510241028.tlm telemetry:99>ls -l *ptp -rw-r--r-- 1 alam users 4857400 Apr 21 09:14 impact_ahead_2006_310_1_00.ptp -rw-r--r-- 1 alam users 6556 Jul 31 09:57 impact_behind_2006_302_1_00.ptp -rw-r--r-- 1 alam users 6556 Jul 31 09:57 impact_behind_2006_302_1_01.ptp RUN LOG ------- Turn on log IDL> journal, "session.log" IDL> issue commands Turn off log IDL> journal Turn on another log IDL> journal, "session_1.log" IDL> issue commands IDL> .compile alex_stereo_state_demo.pro IDL> stereo_state_demo, '2006-09-01T12:00:00','A', state, ltime,REF="IAU_EARTH",OBS='Earth' IDL> print,state 118080.89 -94913.265 41699.352 -5.4664667 -9.2467175 0.61612022 Using defaults: IDL> stereo_state_demo, '2006-09-01T12:00:00','A', state, ltime,REF="IAU_EARTH" IDL> print,state -1.4930155e+08 -258275.66 -21552868. -18.513230 10859.250 11.628814 IDL> .compile alex_stereo_coord_demo.pro % Compiled module: STEREO_COORD_DEMO. Using defaults: IDL> STEREO_COORD_DEMO,'2006-09-01T12:00:00','A','GEO',state,ltime IDL> print,state 118080.89 -94913.265 41699.352 -5.4664667 -9.2467175 0.61612022 IDL> To use GET_STEREO_CMAT ( Cmat = GET_STEREO_CMAT( '2006-09-01T11:30:00', 'A' ) ) One must compile the load_spice/unload_spice .compile /space/ssw/stereo/gen/idl/spice/load_stereo_spice_gen.pro .compile /space/ssw/stereo/gen/idl/spice/load_stereo_spice.pro .compile /space/ssw/stereo/gen/idl/spice/unload_stereo_spice_gen.pro .compile /space/ssw/stereo/gen/idl/spice/unload_stereo_spice.pro Cmat = GET_STEREO_CMAT( '2006-05-06T11:30:00', 'A' ) IDL> print,GET_STEREO_CMAT( '2006-09-01T11:30:00', 'A') -1.0000000 -1.3877788e-17 0.0000000 0.0000000 0.12187978 0.99254487 -6.9388939e-17 0.99254487 -0.12187978 IDL>print,get_stereo_coord('2007/02/11','A') IDL>print,get_stereo_coord('2007/02/11','A',system="GSM") IDL>print,get_stereo_coord('2007/02/11','A',system="SM") IDL>print,get_stereo_coord('2007/02/11','A',system="MAG") IDL> print,get_stereo_coord('2006-09-01T12:00:00','A',system='GSM') 8724257.3 -8242220.7 5450945.5 1.0488803 -22.330453 -28.961033 IDL> print,GET_STEREO_CMAT( '2006-09-01T11:30:00', 'A',system='GSM') 0.99759821 0.057577207 -0.038505560 -2.7755576e-17 0.55590655 0.83124480 0.069266246 -0.82924832 0.55457137 IDL> IDL> print,get_stereo_coord('2006-09-01T11:30:00', 'A',system='GEO') 9187516.2 -7909927.5 5162856.4 -573.81084 -670.45791 0.76330895 IDL> stereo_coord_demo,'2006-09-01T11:30:00', 'A','GEO',STATE, LTIME IDL> print,state 9187516.2 -7909927.5 5162856.4 -573.81084 -670.45791 0.76330895 IDL> print,GET_STEREO_CMAT( '2006-09-01T11:30:00', 'A',system='GEO') 0.97431051 0.19341110 0.11537407 -0.18275749 0.37965967 0.90689483 0.13160065 -0.90468264 0.40525373 IDL>