ess 265 winter quarter 2010 - igpp home page

40
ESS 265 Winter Quarter 2010 Coordinate Systems, Discontinuity Analysis Geophysical and Spacecraft Coordinate Systems: To and Fro Field Aligned Coordinates and Discontinuity analysis +Left-over IDL tools from past lectures References: G C f C 19 1 Russell, Geophysical Coordinate Transformations, Cosmic Electrodynamics, 1971. Hapgood, Space Physics Coordinate Transformations: A users guide, PSS, 40, 711, 1992 Lecture 5 1 Feb 04, 2009

Upload: others

Post on 23-Apr-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ESS 265 Winter Quarter 2010 - IGPP Home Page

ESS 265 Winter Quarter 2010

Coordinate Systems, Discontinuity AnalysisGeophysical and Spacecraft Coordinate Systems: To and Fro

Field Aligned Coordinates and Discontinuity analysis+Left-over IDL tools from past lectures

References:G C f C 19 1Russell, Geophysical Coordinate Transformations, Cosmic Electrodynamics, 1971.

Hapgood, Space Physics Coordinate Transformations: A users guide, PSS, 40, 711, 1992

Lecture 5

1Feb 04, 2009

Page 2: ESS 265 Winter Quarter 2010 - IGPP Home Page

Inertial Coordinates• Celestial Coordinates• Celestial Coordinates

– Z along north celestial pole (Polaris)– X along vernal equinox (the Earth-to-Sun line when night and day are equal in spring)

• Precession of Equinoxes– Celestial pole is ~1o within Polaris– Celestial pole rocks because Moon/Sun torque

Earth’s budge resulting in precession of

Earth (Centerof Celestial Sphere)

Earth s budge resulting in precession ofequinoxes by 50arcsec/year. Completesfull revolution in 26,000 years

– A few thousand years ago, vernal equinox wasalong Aries (Ram, ) “First point in Aries”.g ( , ) p

– Now vernal equinox moved through Piscesinto Acquarius (zodiacal “Age of the Acquarius”).

– The Autumnal equinox is towards Libra, .

Sun

• Right ascension, , Declination

• Minutes/seconds of right ascension,

2

g– 1hr=15deg of , 1min = 1/60hrs = 1/4deg, 1sec=1/60th of min=0.00416deg– Not to be confused with arcminutes (1/60 deg), arcseconds (1/3600 deg) of arc

Page 3: ESS 265 Winter Quarter 2010 - IGPP Home Page

TIME

• Precession of equinoxes causes a slow change in celestial coordinates of stars.– Time need to be considered to determine orientation and coordinate transformations from

fspacecraft to inertial coordinates.• Celestial coordinates require date to define position of vernal equinox.

– 1950 coordinates (the Vernal Equinox specified on Jan 1, 1950)– 2000 coordinates (Vernal Equinox on Jan 1, 2000)2000 coordinates (Vernal Equinox on Jan 1, 2000)

• J2000.0 coordinates is the above but specifies that it is measured in Julian Time• Julian Time is measured in fixed years of 365.25 days (1day=86400 SI seconds).

– This is the average length of a year in the Julian Calendar

– True of Date (TOD) coordinates (Vernal Equinox is floating with time)( ) ( q g )• Good to use for propagating coordinates as coordinate transformations are exact.• Computation of Earth pole precession is accounted for in propagators.

• Sidereal Time (Time it takes Earth to make complete revolution around stars)– 1 SD = 23hrs 56min 4sec (cannot be used as standard because stars have proper motion)1 SD 23hrs 56min 4sec (cannot be used as standard because stars have proper motion)

• True Solar Time (~24hrs but differs +/- 15min due to Earth’s elliptical orbit, tilt)

3

Page 4: ESS 265 Winter Quarter 2010 - IGPP Home Page

• Universal Time (UT). This is “Mean Solar Day” averaging out Earth’s rotation

TIME … continued

– UT often referred to as GMT (Obsolete: Greenwich Mean Time) incorrectly– UT = 00:00 when Greenwich Meridian points at the Sun

• UTC (Coordinated Universal Time) is time based on atomic clock to follow UTCombines atomic standard (precision) and convenience (adjusted to Earth rotation)– Combines atomic standard (precision) and convenience (adjusted to Earth rotation)

– Adjustments result in removal of leap seconds to account for Earth spin rate changes– Synonymous to Zulu Time (Zulu comes from articulation of letter “Z” appended on the

Greenwich Time transmitted from the British Naval Observatory in Greenwich, England)K t ithi / 0 5 d f UT b b dj t t– Kept within +/- 0.5 seconds from UT by above adjustments.

• TDT = TT (Terrestrial Dynamic Time, renamed Terrestrial Time)– Is a uniform atomic time equals International Atomic Time (TAI) except for a constant– TDT = TAI + 32.184sec Offset is present to equate TDT its predecessor , ETp q p ,– TT is TDT – just renamed – and replaced Ephemeris Time because ET was based on

tropical year whereas atomic standard time was needed.• JD (Julian Date) Number of days since Greenwich mean noon on Jan 1, 4713B.C.

New day advances at noon (no day change through night astronomical observations)– New day advances at noon (no day change through night astronomical observations) • MJD (Modified Julian Day) Defined as MJD=JD-2400000.5

– MJD=0 on Nov 17, 1958 at 00:00 UT

4

Page 5: ESS 265 Winter Quarter 2010 - IGPP Home Page

Geophysical Coordinate Systems: Geocentric

• EME2000 is the Earth Centered Inertial (ECI) system, which is GEI fixed on J2000

Hapgood, 1992

5

EME2000 is the Earth Centered Inertial (ECI) system, which is GEI fixed on J2000• Planetocentric (e.g., Moon)

– SSE (Solar Selenocentric Ecliptic)

Page 6: ESS 265 Winter Quarter 2010 - IGPP Home Page

Hapgood, 1992

e ge.g.

6

Page 7: ESS 265 Winter Quarter 2010 - IGPP Home Page

Hapgood, 1992

7

Page 8: ESS 265 Winter Quarter 2010 - IGPP Home Page

Hapgood, 1992

8

Page 9: ESS 265 Winter Quarter 2010 - IGPP Home Page

• A simple way to go from one to another system is to combine the above rotations

9 Hapgood, 1992

Page 10: ESS 265 Winter Quarter 2010 - IGPP Home Page

Geophysical Coordinate Systems: Heliocentric

Hapgood, 1992Hapgood, 1992

10

Page 11: ESS 265 Winter Quarter 2010 - IGPP Home Page

LAT/LON• Geographic Lat/LonGeographic Lat/Lon

– Simply transform from Cartesian GEO to Spherical coordinates• (Radius, Azimuth, Colatitude)• Longitude is Azimuth; Latitude is 90deg-colatitude

• Magnetic Local Time (MLT) Magnetic Longitude (MLON) Magnetic Latitude (MLAT)• Magnetic Local Time (MLT), Magnetic Longitude (MLON), Magnetic Latitude (MLAT)– Simply take GEO position, convert to SM (dipole), obtain Spherical coordinates

• MLON=(Azimuth+180o) mod 360o; MLT is Azimuth/24; MLAT = 90o-colatitude• Footpoint MLT, MLAT/MLON

– Take magnetic footpoint using a magnetic model, then convert to MLT, MLAT/MLON• Dipole MLat/MLon: when using simple dipole for projection to ionosphere

– Going from SM Radius, SM Lat/Lon to Dipole Magnetic Coordinates use:

2Bddd

2/1

22

)/1sin(

sinsinsincos2

LaMLAT

LRrrrddBB

rdr

Brd

Bdr

Eor

r

32/12

030

330

3 /)cos31(

/sinsin

4

/cos2cos

2 :Recall

EE

o

E

or Rr

BBRr

Br

MBRr

Br

MB

11

Page 12: ESS 265 Winter Quarter 2010 - IGPP Home Page

• Definition “Corrected GeoMagnetic Coordinates are the Ionospheric MLAT/MLON

CGMLAT/LON• Definition. Corrected GeoMagnetic Coordinates are the Ionospheric MLAT/MLON

coordinates of given point which projects on the equator, when using simple dipole, at the same location as a real field line starting from the point of interest.”

– Effectively, this corrects for distortion of dipole– A point’s CGM coordinates order spatial relationships of phenomena at the equator.– Plotted on regular grid in CGM coordinates, phenomena dependent on equatorial

processes are better organized (e.g., auroral arcs, cosmic noise absorption, polar cap).• Recipe to obtain CGMLAT/LONp

– Map point to the equator using accurate field line model (specifically IGRF) – Obtain MLAT/MLON of that equatorial point

• L=req/ RE; GCMMLAT=sin-1(1/L)• Convert equatorial point to SM: CGMLON=SMLONCo e t equato a po t to S CG O S O

12

Page 13: ESS 265 Winter Quarter 2010 - IGPP Home Page

Spacecraft Coordinate Systems• Instrument Coordinates (spinning spacecraft)

Th d d i di id l i d i l i– These depend on individual instrument geometry and articulation.• E.g., FGM XmYmZm instrument magnetic axes related to XuYuZu instr. mechanical axes as shown

– Mechanical and magnetic axes are orthogonal; calibrations applied to signals to correct for mechanical and electronics non-orthogonality.

• E.g., ESA and SST naturally expressed in spacecraft body coordinates.E.g., ESA and SST naturally expressed in spacecraft body coordinates.

Sun Sensor

13Angelopoulos, SSR, 2008

Page 14: ESS 265 Winter Quarter 2010 - IGPP Home Page

Spacecraft Coordinate Systems … instrument locations, and field of views

ESA

Sun Sensor

IDPU

ESAFuel Tank

Gyros

FGM

EFI/AxB

EFI/SpB Tx/RxSCM preamp

SST

FGM

SCM

Battery

BAU

Shunt

SCMEFI/AxBSST

14FGM

IDPU/ESA

EFI/SpB

Angelopoulos, SSR, 2008

Page 15: ESS 265 Winter Quarter 2010 - IGPP Home Page

Spacecraft Coordinate Systems … continued• SPG (Spinning Probe Geometric)

– ZSPG is along probe geometric axis– XSPG is along EFI Sphere #1

• SSL (Spinning Sun-sensor L-momentum vector)SSL (Spinning Sun sensor L momentum vector)– XSSL is along field of the Sun-sensor– ZSSL is along the angular momentum vector L

• THEMIS: During spin balance weights were placed at appropriate locations to ensure spin axis is along geometric axis It was then verified that the maximum axis of inertia was <0 25o away fromalong geometric axis. It was then verified that the maximum axis of inertia was <0.25 away from the probe geometric axis

– YSSL completes orthogonal system• THEMIS: Since ZSSL is along ZSPG the SSL system is derived from SPG by a 135o rotation about Z.

• DSL (Despun Sun-pointing L-momentum vector)DSL (Despun, Sun pointing L momentum vector)– ZDSL is identical to ZSS– XDSL - ZDSL plane contains the Sun direction (XDSL – positive towards the Sun)– YDSL completes the orthogonal system

Eff ti l Y i d fi d Z S di ti• Effectively YDSL is defined as ZDSL x Sun_direction• THEMIS: DSL is obtained from SSL by rotation opposite to spin phase, by an angle that elapsed

since the last Sun crossing by the Sun Sensor

15

Page 16: ESS 265 Winter Quarter 2010 - IGPP Home Page

Spacecraft Coordinate Systems … continued• NOTE: on THEMIS, DSL is roughly along GSE system (within 8o)

– Specification in 2007-2009:• Inner probes: Spin axis ecliptic North: toward Sun by 8o (+/-2o) 2008/02/05 06:30 UT.• Outer probes: Spin axis ecliptic South: away from Sun by 8o (+/-2o) 2008/02/05 06:30 UT

– Specification in 2010-2012:• Inner probes (THEMIS): Spin axis ecliptic North: toward Sun by 8o (+/-2o) 2010/05/01 03:30 UT.• Outer probes (ARTEMIS): Spin axis ecliptic South: any angle around 8o (5o - 15o)

• From DSL (a common system in most missions) to GEI or GSE:– STEP#1: Knowing spacecraft spin axis attitude (in GEI or GSE coordinates), rotate to GEI

• Then rotate to GSE or other systems• THEMIS: attitude file is STATE file (contains spin axis right ascension, declination in GEI coord’s).

– STEP#2: Go from Spacecraft-centered to Earth-centered coordinates• on Earth orbiting spacecraft this is a very small angle, arctan(rA/1AU) and usually ignored.

O THEMIS/ARTEMIS l i (60R /1AU) 0 003• On THEMIS/ARTEMIS angle is <arctan(60RE/1AU)~0.003o.

16

Page 17: ESS 265 Winter Quarter 2010 - IGPP Home Page

Magnetospheric Models• Dipole system

Assumes Earth’s field is a centered dipole– Assumes Earth s field is a centered dipole– Usually planetary fields are expressed in terms of spherical harmonic expansion

• Legendre polynomials (see Kivelson and Russell, 6.2.2 Generalized Planetary Magnetic Fields)– Coefficients of harmonic expansion of internal field into: Pn

m(cos) (gnm cos(m)+ hn

m sin(m))• Dipole Moment M = RE

3[ (g10)2 + (g1

1)2 + (h11)2 ]1/2Dipole Moment M RE [ (g1 ) + (g1 ) + (h1 ) ]

• Tilt = cos-1(g10/M)

• IGRF International Geophysical Reference FieldT b l t th ffi i t t N 10 ti l i d t d f d i ll– Tabulates the coefficients up to N=10, a practical compromise adopted for producing well-determined main field models, while avoiding most of the contamination from crustal fields.

– Released once per 5 years. Secular variations expressed as time rate of change of parameters.M i fi ld ffi i t d d t th t t l t fl t th li it f th– Main field coefficients are rounded to the nearest nanotesla to reflect the limit of the resolution of the data.

– ASCII files of the IGRF coefficients and computer programs for synthesizing field components are available from the World Data CentersA il bl th h THEMIS l i t l b l ti T89 d k <0– Available through THEMIS analysis tools by selecting T89 and kp<0.

• Mapping:– Equation of a field line is: B

dzBdy

Bdx

17

q– Integrate as initial value problem with fixed step size (e.g., Tsyganenko routine TRACE)– Integrate using Runge-Kutta method with adaptive stepsize control (THEMIS routines)

• See Numerical Recipies, Ch. 15 – Integration of ODEs.

zyx BBB

Page 18: ESS 265 Winter Quarter 2010 - IGPP Home Page

Magnetospheric Models … continued• Tsyganenko models

Use of internal (latest IGRF) plus modeled external fields– Use of internal (latest IGRF) plus modeled external fields– External field coefficients fit to magnetospheric data (ISEE, POLAR, Geotail, GOES…)

• Ring current• Magnetotail current• Magnetopause current• Magnetopause current• (recent) Large scale field aligned currents (T96 an beyond)• (most recent) Substorm current wedge, plasma sheet inclination due to solar wind Vz

• T89:E t l fi ld bi d di t K ( AE i ti f K ) d t il t– External fields binned according to Kp (or AE as approximation of Kp), warped tail current

– Has no magnetopause– Ends at X=-70Re unless extended explicitly by user

• T96:– Realistic magnetopause– Region 1 and Region 2 currents– IMF penetration across magnetopause boundary

Parametrized by Pdyn Dst and IMF By Bz– Parametrized by Pdyn, Dst, and IMF By, Bz• T02

– Variable configuration of inner and near magnetosphere for IMF, ground disturbance– Partial ring current included

18

• TS05– Dynamical model of storm–time including 37 storms (1996-2000) using concurrent SW/IMF

Page 19: ESS 265 Winter Quarter 2010 - IGPP Home Page

Magnetospheric Models … accessibility

T k d l• Tsyganenko models– http://geo.phys.spbu.ru/~tsyganenko/modeling.html– LEFT: changes due to tilt angle– RIGHT: changes due to IMF Bz increase – Does not simulate substorms or reconnection.

19

g– EXAMPLES OF TRACING:

• http://geo.phys.spbu.ru/~tsyganenko/Examples1_and_2.html – Available in Fortran from above site, or as dynamically linked executables thru THEMIS

Page 20: ESS 265 Winter Quarter 2010 - IGPP Home Page

THEMIS TRANSFORMATION ROUTINES• Command Line:

h ( l i bl )– thm_cotrans.pro (operates on tplot variables)• thm_load_state, /get_support• thm_cotrans, probe='a', datatype='fgl', out_suffix='_gsm';• ; ; or equivalently• thm_cotrans, 'tha_fgl', 'tha_fgl_gsm', out_coord='gsm‘• ;• ; ; to transform all th?_fg?_dsl to th?_fg?_gsm• ;;• ; thm_cotrans, 'th?_fg?', in_suffix='_dsl', out_suffix='_gsm'• ;• ; ; for arbitrary input variables, specify in_coord and probe:• ; thm cotrans 'mydslvar1 mydslvar2 mydslvar3' $; thm_cotrans, mydslvar1 mydslvar2 mydslvar3 , $• ; in_coord='dsl', probe='b c d', out_suff='_gse‘

– cotrans.pro (operates on arrays as well as tplot variables)• Choices:GSM2GSE GSE2GEI GSE2GSM GEI2GSE GSM2SM SM2GSM GEI2GEO GEO2GEIGSM2GSE,GSE2GEI,GSE2GSM,GEI2GSE,GSM2SM,SM2GSM,GEI2GEO, GEO2GEI• cotrans,tha_fgl_gse_array,tha_fgl_gsm_array, tha_fgl_gse_time,/GSE2GSM• ; or• cotrans,'tha_fgl_gse','tha_fgl_gsm',/GSE2GSM

20

– dsl2gse.pro (operates on arrays only)• dsl2gse,name_thx_xxx_in,name_thx_spinras,name_thx_spindec,

name_thx_xxx_out,GSE2DSL=GSE2DSL

Page 21: ESS 265 Winter Quarter 2010 - IGPP Home Page

THEMIS MODELS/MAPPING ROUTINES• Command Line:

89 ib (A il bl h \ l\IDL GEOPACK\ 89\ 89 ib )– tt89_crib.pro (Available at: thm\external\IDL_GEOPACK\t89\tt89_crib.pro)• timespan, '2007-03-23'• ;load state data• thm_load_state, probe = 'b', coord = 'gsm'• ;calculate model field• tt89, 'thb_state_pos'• ;load fgm data for comparison• thm load fgm, probe = 'b', coord = 'gsm'_ _ g , p , g• tplot_names• tplot, ['thb_state_pos_bt89', 'thb_fgs_gsm']

– thm_crib_trace.pro (Available at: thm\themis\examples\thm_crib_trace.pro)• date = '2008 03 27/02:00:00' ;date to be plotted• date = 2008-03-27/02:00:00 ;date to be plotted• hrs = 3 ;specifies the interval over which data will be loaded • sdate = time_double(date)-3600*hrs/2• edate = time_double(date)+3600*hrs/2

ti d t h /h• timespan,sdate,hrs,/hour• ;generate parameters for the tsyganenko model• model = 't89‘ & par = 2.0D ; use kp 2.0 for t89 model• ;generate points from which to trace for XZ projection

21

• x = [-22,-22,-22,-22,-17,-12,-8,-5,-3,2,4,7,8,8] & y = replicate(0,14) & z = [10,7,4,0,replicate(0,9),4]• times = replicate(time_double(date),14)• … continued next page

Page 22: ESS 265 Winter Quarter 2010 - IGPP Home Page

• Command Line:– thm_crib_trace.pro (Available at: thm\themis\examples\thm_crib_trace.pro)

• … continued• trace_pts_north = [[x],[y],[z]] & trace_pts_south = [[x],[y],[-1*z]] • store_data,'trace_pts_north',data={x:times,y:trace_pts_north}{ y }• store_data,'trace_pts_south',data={x:times,y:trace_pts_south}• ;trace the field lines• ttrace2iono,'trace_pts_north',trace_var_name = 'trace_n',

external_model=model,par=par,in_coord='gsm',out_coord='gsm'_ p p _ g _ g• ttrace2iono,'trace_pts_south',trace_var_name = 'trace_s',

external_model=model,par=par,in_coord='gsm',out_coord='gsm', /south• window,xsize=800,ysize=600• xrange = [-22,10] ;x range of the xz plotg [ ] g p• zrange = [-11,11] ;z range of the xz plot• ;generate the plot of field lines• tplotxy,'trace_n',versus='xrz',xrange=xrange,yrange=zrange,charsize=charsize,title="XZ field

line/probe position” p pplot,xthick=axisthick,ythick=axisthick,thick=linethick,charthick=charthick,ymargin=[.15,.1]

• tplotxy,'trace_s',versus='xrz',xrange=xrange,yrange=zrange,/over,xthick=axisthick,ythick=axisthick,thick=linethick,charthick=charthick

22

Page 23: ESS 265 Winter Quarter 2010 - IGPP Home Page

Trace / Orbit Plots

Trace / Orbit Plots

• New routines have been added to perform different 2d projections of 3d data. p p jThis particularly useful for plotting orbits and field lines.

• A Tsyganenko interface has been added to TDAS that allows us to calculate model field lines for T89,T96,T01,&T04 models. Field lines can also be Traced.

• Examples of these routines can be found in themis/examples/thm_crib_trace.pro,themis/examples/thm_crib_plotxy.pro and themis/examples/thm_crib_tplotxy

• The graphics in this slide were generated with thm_crib_trace.proExample: .run thm_crib_trace.pro

• A routine was added to plot an arbitrarily sized and spaced AACGM (altitude

reduced

y (adjusted corrected geomagnetic coordinates/100km-reference altitude) coordinate grid on a world map.

23

reduced

Page 24: ESS 265 Winter Quarter 2010 - IGPP Home Page

Trace / Orbit Plots

Trace/Orbit Plots - AACGM/Iono Trace Plot

reduced

24

reduced

Page 25: ESS 265 Winter Quarter 2010 - IGPP Home Page

Trace / Orbit Plots

Trace / Orbit Plots – XY Plot

reduced

25

reduced

Page 26: ESS 265 Winter Quarter 2010 - IGPP Home Page

Trace / Orbit Plots

Trace / Orbit Plots – XZ Plot

reduced

26

reduced

Page 27: ESS 265 Winter Quarter 2010 - IGPP Home Page

FIELD ALIGNED COORDINATES

• Often it is important to rotate data in Field Aligned Coordinates in order to study:– Wave polarization relative to a coordinate system aligned with local B-field– Correlations of particle pitch angle distributions with E and B fields in proper coordinates

• Transformation consists of:– Obtaining background B-field data (forms the new “Z” direction) from:

• Local measurements, low-pass filtered, or• Magnetospheric model

– Determining the “other dimension” normal to the magnetic field. Objective is to minimize the variation of the coordinate system relative to natural coordinate system for the waves or particles, depending on application.

If b t S E th li d t• If you care about Sun-Earth aligned system: • Pick “X” towards Sun, (“X-Z” plane to contain “Xgse” determined as Y= Z x Xgse then X=Y x Z).

Exception when B is near Xgse , which introduces un-necessary matrix rotations due to waves• Pick “Y” towards Dusk, e.g., Ygse (again ensure there are no instances of B along Y).

• If you care about alignment with L-shells and radial direction (e g toroidal/poloidal modes):If you care about alignment with L shells and radial direction (e.g., toroidal/poloidal modes):• Pick “X” towards Earth or “Y” towards West

27

Page 28: ESS 265 Winter Quarter 2010 - IGPP Home Page

THEMIS APPLICATION OF FAC TRANSFORMATION

• Examples: Look in “fac_crib.pro”; Example of FAC-Xgse matrix generation and rotationtimespan, '2007-03-23'

thm load fgm probe = ‘d’ coord = 'gse‘ level=2thm_load_fgm,probe d , coord gse , level 2

;smooth the Bfield data appropriatelytsmooth2, 'thd_fgs_gse', 601, newname = 'thd_fgs_gse_sm601'

;make transformation matrixfac_matrix_make, 'thd_fgs_gse_sm601', other_dim='xgse', $

newname = 'thd_fgs_gse_sm601_fac_mat'

;transform Bfield vector (or any other) vector into field aligned coordinates

tvector rotate 'thd fgs gse sm601 fac mat' 'thd fgs gse' $tvector_rotate, 'thd_fgs_gse_sm601_fac_mat', 'thd_fgs_gse', $ newname = 'thd_fgs_facx'

options,'thd_fgs_facx',ytitle=['thd_fgs_facx']options,'thd_fgs_facx',ysubtitle=['nT']tplot, ['thd_fgs_gse', 'thd_fgs_gse_sm601', 'thd_fgs_facx']tlimit,'2007-03-23/10:00:00','2007-03-23/13:00:00‘tlimit, 2007 03 23/10:00:00 , 2007 03 23/13:00:00;;….; … to be continued

28

Page 29: ESS 265 Winter Quarter 2010 - IGPP Home Page

THEMIS OPTIONS IN FAC TRANSFORMATIONLook at: fac_matrix_make.pro;;Purpose: generates a field aligned coordinate transformation matrix;from an input B vector array(and sometimes a position vector array);then stores it in a tplot variable;

'X ' (DEFAULT) t l t f i t FAC D fi iti ( k GSE GSM) X A i l d fi d b X Z; 'Xgse', (DEFAULT) translates from gse or gsm into FAC Definition(works on GSE, or GSM): X Axis = on plane defined by Xgse - Z; Second coordinate definition: Y = Z x X_gse; Third coordinate, X completes orthogonal RHS (right hand system) triad: XYZ; Note: X_gse is a unit vector pointing in direction from earth to the sun; 'Rgeo',translate from geo into FAC using radial position vector. Rgeo is radial position vector, positive radialy outwards.; Second coordinate definition: Y = Z x Rgeo (westward); Third coordinate, X completes orthogonal RHS XYZ.; 'mRgeo',translate into FAC using radial position vector mRgeo is radial position vector, positive radially inwards.; Second coordinate definition: Y = Z x mRgeo (eastward); Third coordinate, X completes orthogonal RHS XYZ.; 'Phigeo', translate into FAC using azimuthal position vector. Phigeo is the azimuthal geo position vector, positive Eastward; First coordinate definition: X = Phigeo x Z (positive outwards); g (p ); Second coordinate, Y ~ Phigeo (eastward) completes orthogonal RHS XYZ; 'mPhigeo', translate into FAC using azimuthal position vector. mPhigeo is minus the azimuthal geo position vector; positive Westward; First coordinate definition: X = mPhigeo x Z (positive inwards); Second coordinate, Y ~ mPhigeo (Westward) completes orthogonal RHS XYZ; 'Phism', translate into FAC using azimuthal Solar Magnetospheric vector. Phism is "phi" vector of satellite position in SM coordinates.; Y Axis = on plane defined by Phism-Z, normal to Z; Y Axis on plane defined by Phism Z, normal to Z; Second coordinate definition: X = Phism x Z; Third completes orthogonal RHS XYZ; 'mPhism', translate into FAC using azimuthal Solar Magnetospheric vector. mPhism is minus "phi“ of satellite in SM coordinates.; Y Axis = on plane defined by Phism-Z, normal to Z; Second coordinate definition: X = mPhism x Z; Third completes orthogonal RHS XYZ

29

; Third completes orthogonal RHS XYZ; 'Ygsm', translate into FAC using cartesian Ygsm position as other dimension. Y Axis on plane defined by Ygsm and Z; First coordinate definition: X = Ygsm x Z; Third completes orthogonal RHS XYZ

Page 30: ESS 265 Winter Quarter 2010 - IGPP Home Page

OPTIONS FOR MINVAR/FAC MATRIX ROTATIONS;+;+;Procedure: tvector_rotate;;Purpose: rotates a set of vectors by a set of coordinate; transformation matrices inputs and outputs are tplot; variables. This is designed mainly for use with; g y; fac_matrix_make.pro and minvar_matrix_make, but can be used; for more general purposes;;Warning:; The transformation matrices generated byf t i k th f t i k d i t i k;fac_matrix_make,thm_fac_matrix_make, and minvar_matrix_make are

;defined relative to a specific coordinate system. This means that if;you use vectors in one coordinate system to generate the rotation;matrices they will only correctly transform data from that coordinate;system into the functional coordinate system.;;; For example if you use;magnetic field data in gsm to generate Rgeo transformation matrices;using fac_matrix_make then the vectors being provided to tvector;rotate to be transformed by those matrices should only be in gsm coordinates.;;Arguments:;; mat_var_in: the name of the tplot variable storing input matrices; The y component of the tplot variable's data struct should be; an Mx3x3 array, storing a list of transformation matrices.

30

;

Page 31: ESS 265 Winter Quarter 2010 - IGPP Home Page

EXAMPLE OF MINVAR/FAC MATRIX ROTATIONS;+;+; timespan, '2007-03-23/11:05',20,/minutes;thm_load_fgm,probe ='d', coord = 'gse', level=2;;smooth the Bfield data appropriately; pp p ytsmooth2, 'thd_fgs_gse', 101, newname = 'thd_fgs_gse_sm101‘;make transformation matrixfac_matrix_make, 'thd_fgs_gse_sm101', other_dim='xgse', $newname = 'thd_fgs_gse_sm101_fac_mat‘;transform Bfield vector (or any other) vector into

fi ld li d di t; field aligned coordinatestvector_rotate, 'thd_fgs_gse_sm101_fac_mat', $

'thd_fgs_gse', newname = 'thd_fgs_facx'options,'thd_fgs_facx',ytitle=['thd_fgs_facx']options,'thd_fgs_facx',ysubtitle=['nT']tplot ['thd fgs gse' 'thd fgs gse sm101' 'thd fgs facx']tplot, [ thd_fgs_gse , thd_fgs_gse_sm101 , thd_fgs_facx ]tzoom1='2007-03-23/11:15:00'tzoom2='2007-03-23/11:25:00'tlimit,tzoom1,tzoom2thm_load_esa,probe='d',level=2,coord='gse'tplot,'thd_peir_velocity_gse’,/addp _p _ y_gtdegap,'thd_peir_velocity_gse',dt=3.,margin=1.,newname='thd_peir_velocity_gse_dg'tdeflag,'thd_peir_velocity_gse_dg','linear',newname='thd_peir_velocity_gse_df'tinterpol_mxn,'thd_peir_velocity_gse_df','thd_fgs_gse_sm101'tvector_rotate,'thd_fgs_gse_sm101_fac_mat', $'thd_peir_velocity_gse_df_interp',newname='thd_peir_velocity_fac’t l t 'thd i l it df i t thd i l it f ' / dd

31

tplot,'thd_peir_velocity_gse_df_interp thd_peir_velocity_fac',/add

Page 32: ESS 265 Winter Quarter 2010 - IGPP Home Page

• Shock Conservation Laws (Rankine-Hygoniot Relations)– In both fluid dynamics and MHD conservation equations for mass,

Qenergy and momentum have the form: where Q and

are the density and flux of the conserved quantity.

If th h k i t d ( ) d di i l

0 F

tQ

F

0 t F– If the shock is steady ( ) and one-dimensional or

where u and d refer to upstream and downstream and

is the unit normal to the shock surface. We normally write this as a

0 t 0

nFn

0ˆ)( nFF du

is the unit normal to the shock surface. We normally write this as a

jump condition .

– Conservation of Mass or . If the shock slows

0][ nF

0)(

nvn

0][ nvthe plasma then the plasma density increases.

– Conservation of Momentum where the first

term is the rate of change of momentum and the second and third

n

02 0

2

tn

nB

nnp

nvv

term is the rate of change of momentum and the second and third

terms are the gradients of the gas and (transverse) magnetic pressures

in the normal direction. Remembering [ vn]=0 and using [Bn]=0 from

32

Gauss’s law (below), we get:0

2 0

22

Bpvn

Page 33: ESS 265 Winter Quarter 2010 - IGPP Home Page

– In the transverse direction: . The subscript t 0

t

ntn BBvv

p

refers to components that are transverse to the shock (i.e. parallel

to the shock surface).

0

)

– Conservation of energy 01 00

22

21

nnn

BBvBvpvv

There we have used

Th fi t t t th fl f ki ti (fl d

.constp

The first two terms are the flux of kinetic energy (flow energy and

internal energy) while the last two terms come from the

electromagnetic energy flux 0BE

g gy

– Gauss Law gives

– Faraday’s Law gives

0

0 B

tBE 0nB

0 ttntn EvBBv

33

ttntn

Page 34: ESS 265 Winter Quarter 2010 - IGPP Home Page

• The conservation laws are 6 equations. If we want to find the downstream quantities from upstream ones, we have 6 unknowns: (,vn,,vt,p,Bn,Bt).

• The solutions to these equations are not necessarily shocks A multitude• The solutions to these equations are not necessarily shocks. A multitude discontinuities can also be described by these equations. Low-amplitude step waves (F,S,I MHD waves) also satisfy them. Shocks are the non-linear, dissipative versions of those waves, so they have similar types., p , y yp

Types of Discontinuities in Ideal MHD

Contact Discontinuity , Density jumps arbitrary, all others continuous No

0nB0nvothers continuous. No plasma flow. Both sides flow together at vt.

Tangential Discontinuity Complete separation

n

0

n

0BTangential Discontinuity , Complete separation. Plasma pressure and field change arbitrarily, but pressure balance

0nv 0nB

Rotational Discontinuity , Large amplitude intermediate wave, field and flow change direction but not magnitude

21

0nn Bv

0nv 0nB

34

but not magnitude.

Page 35: ESS 265 Winter Quarter 2010 - IGPP Home Page

Types of Shocks in Ideal MHD

Shock Waves Flow crosses surface ofShock Waves Flow crosses surface of discontinuity accompanied by compression.

Parallel Shock ( along shock

B unchanged by shock.(Transverse momentum and electric

0nv

B

along shock normal)

(Transverse momentum and electric field continuity result in [Bt]=0 ). Hydrodynamic-like.

Perpendicular Shock

P and B increase at shock.There is no slow perp shock

0tB

0BShock There is no slow perp. shock.

Oblique Shocks

Fast Shock P, and B increase, B bends away

0nB

0,0 nt BB

Fast Shock P, and B increase, B bends away from normal

Slow Shock P increases, B decreases, B bends toward normaltoward normal.

Intermediate Shock

B rotates 1800 in shock plane. [p]=0 non-compressive, propagates at uA,density jump in anisotropic case

35

density jump in anisotropic case.

Page 36: ESS 265 Winter Quarter 2010 - IGPP Home Page

•Configuration of magnetic field lines for fast and slow shocks. The lines are closer together for a fast shock, indicating that the field strength increases.

In all cases [Bn]=0 across a shock, so minimum variance analysis b d t d t i th h k l C t b t k f thcan be used to determine the shock normal. Care must be taken for the

data to encompass the shock transition primarily. Normal should be independent of window chosen for windows encompassing shock.

36

Page 37: ESS 265 Winter Quarter 2010 - IGPP Home Page

• For compressive fast-mode and slow-mode oblique shocks the upstream and downstream magnetic field directions and the shock normal all lie in the same plane (Coplanarity Theorem)shock normal all lie in the same plane. (Coplanarity Theorem)

• The transverse component of the momentum equation can be 0)(ˆ ud BBn

written as and Faraday’s Law gives

• Therefore both and are parallel to and thus are

00

t

ntn BBvv

0 tntn vBBv

tB tnBv

tvp

parallel to each other.

• Thus Expanding

t tn t

0 BvB 0 tdtdttddtdtdtt BBvBBvBBvBBv

Thus . Expanding

• If and must be parallel.

Th l t i i f th t d th l

0 tnt BvB0))(( ,,,, dtutdnun BBvv

dnun vv ,, utB ,

dtB ,

0 utdtundtutdndtdtdnututun BBvBBvBBvBBv

• The plane containing one of these vectors and the normal

contains both the upstream and downstream fields.

Since this means both and are0ˆ)( nBB

BB

37

• Since this means both and are

perpendicular to the normal and )()(/)()(ˆ dudududu BBBBBBBBn

0)( nBB du ud BB du BB

Page 38: ESS 265 Winter Quarter 2010 - IGPP Home Page

• Minimum Variance Method: For compressive fast-mode andMinimum Variance Method: For compressive fast mode and slow-mode oblique shocks the minimum variance is along the shock normal, and, because of the coplanarity theorem, the maximum variance direction is on the plane of the discontinuity

d d fi th l it l Th th i t di t iand defines the coplanarity plane. Thus the intermediate variance direction is also the direction normal to the discontinuity plane. For perpendicular and parallel shocks there is no coplanaritydefined and the other two dimensions are indeterminate (ordefined and the other two dimensions are indeterminate (or arbitrary).

• Coplanarity Method: For fast and slow shocks, form the p y ,upstream and downstream values (Bu and Bd) using averages of the data over a long enough period that the values are stable but near enough the shock that they are representative. Form the quantity: )()(/)()(ˆ BBBBBBBBn

quantity:

This method cannot be applied to perpendicular and parallel shocks.

)()(/)()( dudududu BBBBBBBBn

38

Page 39: ESS 265 Winter Quarter 2010 - IGPP Home Page

• Other ways of determining shock normal: – Using velocity

• We note that velocity change is coplanar with B B• We note that velocity change is coplanar with Bu, Bd• Then either one of them crossed into the velocity change will lie on the shock plane:

• Using either of the above and the divergenceless constraint0ˆ)(

0ˆ)(

nvB

nvB

d

u

0ˆ)( nBB d

g g

will also result in a high fidelity shock normal.– Using mass conservation

• [vn]=0, so we expect the minimum variance direction to be along normal.• Method often suffers from lack of composition measurements

Using constancy of the tangential electric field

0)( nBB du

0E

– Using constancy of the tangential electric field• Maximum variance on E-field data a good predictor of magnetopause/shock normal• Method applied on VxB data as proxy of E-field, because typically E field data noisy• Velocity still suspect due to composition effects• When Efield data can be reliably obtained, they should result in independent and

0tE

y y probust determination of the normal

• Method can give different results dependent on frame, because VxB dominates over noise

– Transformation to the deHoffman-Teller frame, that minimizes Efield across layer is a natural frame for maximum variance analysis

• Finally, the shock may be traveling at speeds of 10-100km/s andwith a single spacecraft it is possible to determine its speed. Using thecontinuity equation in shock frame we get: [(vn-vsh)]=0 which gives:

39

nvvvud

uuddsh ˆ

Page 40: ESS 265 Winter Quarter 2010 - IGPP Home Page

ISSI book, Ch. 8

40

(Sonnerup and Scheible)