// // time: Sat Oct 29 14:15:57 2005 // // version: 3.2.0 (format), 4.3.2 (DX) // // // // macro reference (direct): MapToSphere /usr/local/CISM_DX/OpenDX/macros/MapToSphere.net include "MapToSphere.net" // // macro reference (indirect): Constants /usr/local/CISM_DX/OpenDX/macros/Constants.net // // macro reference (direct): Earth /usr/local/CISM_DX/OpenDX/macros/Earth.net include "Earth.net" // // macro reference (direct): FieldLineTracer2 /usr/local/CISM_DX/Labs/2005_AFWA_ShortCourse/Lab03/nets/FieldLineTracer2.net include "FieldLineTracer2.net" // // MODULE main // page assignment: CompFields order=4, windowed=0, showing=0 // page assignment: FieldTubes order=3, windowed=0, showing=0 // page assignment: Image order=5, windowed=0, showing=0 // page assignment: README order=2, windowed=0, showing=1 // workspace: width = 598, height = 192 // layout: snap = 1, width = 20, height = 20, align = UL // macro main( ) -> ( ) { // // node Selector[19]: x = 440, y = 580, inputs = 7, label = Selector // input[1]: defaulting = 0, visible = 0, type = 32, value = "Selector_19" // input[2]: defaulting = 0, visible = 0, type = 32, value = "IGRF" // input[3]: defaulting = 0, visible = 0, type = 29, value = 0 // input[4]: defaulting = 1, visible = 1, type = 16777248, value = { "IGRF" "IGRFDipole" "Tsyganenko89" "Tsyganenko89+IGRF" "Tsyganenko96" "Tsyganenko96+IGRF" "Tsyganenko01" "Tsyganenko01+IGRF" "Tsyganenko03" "Tsyganenko03+IGRF" } // input[5]: defaulting = 1, visible = 0, type = 16777245, value = { 0 1 2 3 4 5 6 7 8 9 } // output[1]: visible = 1, type = 29, value = 0 // output[2]: visible = 1, type = 32, value = "IGRF" // page group: CompFields // // // node Transmitter[14]: x = 460, y = 760, inputs = 1, label = ModelName // page group: CompFields // ModelName = main_Selector_19_out_2; // // node Receiver[21]: x = 0, y = 220, inputs = 1, label = ModelName // page group: Image // main_Receiver_21_out_1[cache: 0] = ModelName; // // node Format[5]: x = 0, y = 320, inputs = 3, label = Format // input[1]: defaulting = 0, visible = 1, type = 32, value = "The yellow grid shows points where the %s field was computed on" // page group: Image // main_Format_5_out_1 = Format( main_Format_5_in_1, main_Receiver_21_out_1, main_Format_5_in_3 ) [instance: 5, cache: 1]; // // node Caption[1]: x = 0, y = 400, inputs = 9, label = Caption // input[1]: defaulting = 1, visible = 1, type = 32, value = "The blue grid shows points where (red) field lines were started, \nThe yellow grid shows points where field was computed on" // page group: Image // main_Caption_1_out_1 = Caption( main_Format_5_out_1, main_Caption_1_in_2, main_Caption_1_in_3, main_Caption_1_in_4, main_Caption_1_in_5, main_Caption_1_in_6, main_Caption_1_in_7, main_Caption_1_in_8, main_Caption_1_in_9 ) [instance: 1, cache: 1]; // // node Earth[2]: x = 0, y = 0, inputs = 0, label = Earth // page group: Image // main_Earth_2_out_1 = Earth( ) [instance: 2, cache: 1]; // // node SPTransform[2]: x = 0, y = 80, inputs = 8, label = SPTransform // input[4]: defaulting = 0, visible = 1, type = 32, value = "GEO" // input[5]: defaulting = 0, visible = 1, type = 32, value = "GSM" // page group: Image // main_SPTransform_2_out_1 = SPTransform( main_Earth_2_out_1, main_SPTransform_2_in_2, main_SPTransform_2_in_3, main_SPTransform_2_in_4, main_SPTransform_2_in_5, main_SPTransform_2_in_6, main_SPTransform_2_in_7, main_SPTransform_2_in_8 ) [instance: 2, cache: 1]; // // node Grid[8]: x = 160, y = 20, inputs = 4, label = Grid // input[1]: defaulting = 0, visible = 1, type = 8, value = [0.0 0.0 10.0] // input[3]: defaulting = 0, visible = 1, type = 16777224, value = {[89 0 0][0 180 0][0 0 9]} // input[4]: defaulting = 0, visible = 1, type = 16777217, value = {20,20,20} // page group: CompFields // main_Grid_8_out_1 = Grid( main_Grid_8_in_1, main_Grid_8_in_2, main_Grid_8_in_3, main_Grid_8_in_4 ) [instance: 8, cache: 1]; // // node MapToSphere[6]: x = 280, y = 20, inputs = 3, label = MapToSphere // input[2]: defaulting = 0, visible = 1, type = 16777245, value = {0.0} // input[3]: defaulting = 0, visible = 1, type = 16777245, value = {1} // page group: CompFields // main_MapToSphere_6_out_1 = MapToSphere( main_Grid_8_out_1, main_MapToSphere_6_in_2, main_MapToSphere_6_in_3 ) [instance: 6, cache: 1]; // // node ShowConnections[7]: x = 640, y = 120, inputs = 1, label = ShowConnections // page group: CompFields // main_ShowConnections_7_out_1 = ShowConnections( main_MapToSphere_6_out_1 ) [instance: 7, cache: 1]; // // node Color[24]: x = 660, y = 200, inputs = 5, label = Color // input[2]: defaulting = 0, visible = 1, type = 32, value = "yellow" // input[3]: defaulting = 0, visible = 1, type = 5, value = 0.01 // page group: CompFields // main_Color_24_out_1 = Color( main_ShowConnections_7_out_1, main_Color_24_in_2, main_Color_24_in_3, main_Color_24_in_4, main_Color_24_in_5 ) [instance: 24, cache: 1]; // // node Transmitter[3]: x = 660, y = 280, inputs = 1, label = FieldGrid // page group: CompFields // FieldGrid = main_Color_24_out_1; // // node Receiver[1]: x = 180, y = 160, inputs = 1, label = FieldGrid // page group: Image // main_Receiver_1_out_1[cache: 0] = FieldGrid; // // node Pick[3]: x = 0, y = 100, inputs = 9, label = White Field Line // input[1]: defaulting = 0, visible = 0, type = 32, value = "Pick_2" // input[2]: defaulting = 0, visible = 0, type = 32, value = NULL // input[3]: defaulting = 0, visible = 0, type = 16777224, value = NULL // input[4]: defaulting = 0, visible = 0, type = 3, value = 283 // input[5]: defaulting = 0, visible = 1, type = 3, value = 1 // page group: FieldTubes // main_Pick_3_out_1 = Pick( main_Pick_3_in_1, main_Pick_3_in_2, main_Pick_3_in_3, main_Pick_3_in_4, main_Pick_3_in_5, main_Pick_3_in_6, main_Pick_3_in_7, main_Pick_3_in_8, main_Pick_3_in_9 ) [instance: 3, cache: 1]; // // node Extract[3]: x = 0, y = 200, inputs = 2, label = Extract // input[2]: defaulting = 0, visible = 1, type = 32, value = "positions" // page group: FieldTubes // main_Extract_3_out_1 = Extract( main_Pick_3_out_1, main_Extract_3_in_2 ) [instance: 3, cache: 1]; // // node IGRF[4]: x = 0, y = 120, inputs = 2, label = IGRF // page group: CompFields // main_IGRF_4_out_1 = IGRF( main_MapToSphere_6_out_1, main_IGRF_4_in_2 ) [instance: 4, cache: 1]; // // node IGRFDipole[1]: x = 60, y = 120, inputs = 2, label = IGRFDipole // page group: CompFields // main_IGRFDipole_1_out_1 = IGRFDipole( main_MapToSphere_6_out_1, main_IGRFDipole_1_in_2 ) [instance: 1, cache: 1]; // // node Tsyganenko89[1]: x = 160, y = 120, inputs = 3, label = Tsyganenko89 // page group: CompFields // main_Tsyganenko89_1_out_1 = Tsyganenko89( main_MapToSphere_6_out_1, main_Tsyganenko89_1_in_2, main_Tsyganenko89_1_in_3 ) [instance: 1, cache: 1]; // // node Compute[48]: x = 120, y = 300, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+$1" // page group: CompFields // expression: value = a+b // name[2]: value = a // name[3]: value = b // main_Compute_48_out_1 = Compute( main_Compute_48_in_1, main_IGRF_4_out_1, main_Tsyganenko89_1_out_1 ) [instance: 48, cache: 1]; // // node Tsyganenko96[1]: x = 280, y = 120, inputs = 3, label = Tsyganenko96 // page group: CompFields // main_Tsyganenko96_1_out_1 = Tsyganenko96( main_MapToSphere_6_out_1, main_Tsyganenko96_1_in_2, main_Tsyganenko96_1_in_3 ) [instance: 1, cache: 1]; // // node Compute[49]: x = 240, y = 300, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+$1" // page group: CompFields // expression: value = a+b // name[2]: value = a // name[3]: value = b // main_Compute_49_out_1 = Compute( main_Compute_49_in_1, main_IGRF_4_out_1, main_Tsyganenko96_1_out_1 ) [instance: 49, cache: 1]; // // node Tsyganenko01[1]: x = 400, y = 120, inputs = 3, label = Tsyganenko01 // page group: CompFields // main_Tsyganenko01_1_out_1 = Tsyganenko01( main_MapToSphere_6_out_1, main_Tsyganenko01_1_in_2, main_Tsyganenko01_1_in_3 ) [instance: 1, cache: 1]; // // node Compute[50]: x = 340, y = 300, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+$1" // page group: CompFields // expression: value = a+b // name[2]: value = a // name[3]: value = b // main_Compute_50_out_1 = Compute( main_Compute_50_in_1, main_IGRF_4_out_1, main_Tsyganenko01_1_out_1 ) [instance: 50, cache: 1]; // // node Tsyganenko03[1]: x = 520, y = 120, inputs = 3, label = Tsyganenko03 // page group: CompFields // main_Tsyganenko03_1_out_1 = Tsyganenko03( main_MapToSphere_6_out_1, main_Tsyganenko03_1_in_2, main_Tsyganenko03_1_in_3 ) [instance: 1, cache: 1]; // // node Compute[51]: x = 460, y = 300, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+$1" // page group: CompFields // expression: value = a+b // name[2]: value = a // name[3]: value = b // main_Compute_51_out_1 = Compute( main_Compute_51_in_1, main_IGRF_4_out_1, main_Tsyganenko03_1_out_1 ) [instance: 51, cache: 1]; // // node Collect[25]: x = 300, y = 460, inputs = 10, label = Collect // page group: CompFields // main_Collect_25_out_1 = Collect( main_IGRF_4_out_1, main_IGRFDipole_1_out_1, main_Tsyganenko89_1_out_1, main_Compute_48_out_1, main_Tsyganenko96_1_out_1, main_Compute_49_out_1, main_Tsyganenko01_1_out_1, main_Compute_50_out_1, main_Tsyganenko03_1_out_1, main_Compute_51_out_1 ) [instance: 25, cache: 1]; // // node Select[8]: x = 360, y = 580, inputs = 3, label = Select // page group: CompFields // main_Select_8_out_1 = Select( main_Collect_25_out_1, main_Selector_19_out_1, main_Select_8_in_3 ) [instance: 8, cache: 1]; // // node Transmitter[1]: x = 360, y = 660, inputs = 1, label = FieldOnGrid // page group: CompFields // FieldOnGrid = main_Select_8_out_1; // // node Receiver[22]: x = 80, y = 180, inputs = 1, label = FieldOnGrid // page group: FieldTubes // main_Receiver_22_out_1[cache: 0] = FieldOnGrid; // // node FieldLineTracer2[1]: x = 0, y = 320, inputs = 5, label = FieldLineTracer2 // input[4]: defaulting = 0, visible = 1, type = 5, value = 0.05 // page group: FieldTubes // main_FieldLineTracer2_1_out_1 = FieldLineTracer2( main_Extract_3_out_1, main_Receiver_22_out_1, main_Extract_3_out_1, main_FieldLineTracer2_1_in_4, main_FieldLineTracer2_1_in_5 ) [instance: 1, cache: 1]; // // node Color[26]: x = 0, y = 400, inputs = 5, label = Color // input[2]: defaulting = 0, visible = 1, type = 32, value = "blue" // page group: FieldTubes // main_Color_26_out_1 = Color( main_FieldLineTracer2_1_out_1, main_Color_26_in_2, main_Color_26_in_3, main_Color_26_in_4, main_Color_26_in_5 ) [instance: 26, cache: 1]; // // node Collect[20]: x = 0, y = 480, inputs = 2, label = Collect // page group: FieldTubes // main_Collect_20_out_1 = Collect( main_Color_26_out_1, main_Collect_20_in_2 ) [instance: 20, cache: 1]; // // node Transmitter[5]: x = 0, y = 580, inputs = 1, label = FieldLineTubes // page group: FieldTubes // FieldLineTubes = main_Collect_20_out_1; // // node Receiver[5]: x = 260, y = 160, inputs = 1, label = FieldLineTubes // page group: Image // main_Receiver_5_out_1[cache: 0] = FieldLineTubes; // // node Receiver[3]: x = 340, y = 240, inputs = 1, label = StartPointGrid // page group: Image // main_Receiver_3_out_1[cache: 0] = StartPointGrid; // // node Construct[31]: x = 400, y = 40, inputs = 4, label = Construct // input[1]: defaulting = 0, visible = 1, type = 16777224, value = {[0 0 0]} // input[2]: defaulting = 0, visible = 1, type = 16777224, value = {[0 0 0]} // input[3]: defaulting = 0, visible = 1, type = 8, value = [2 2 1] // input[4]: defaulting = 0, visible = 1, type = 16777245, value = NULL // page group: Image // main_Construct_31_out_1 = Construct( main_Construct_31_in_1, main_Construct_31_in_2, main_Construct_31_in_3, main_Construct_31_in_4 ) [instance: 31, cache: 1]; // // node Extract[2]: x = 520, y = 40, inputs = 2, label = Extract // input[2]: defaulting = 0, visible = 1, type = 32, value = "positions" // page group: Image // main_Extract_2_out_1 = Extract( main_Construct_31_out_1, main_Extract_2_in_2 ) [instance: 2, cache: 1]; // // node Construct[32]: x = 480, y = 120, inputs = 4, label = Construct // input[1]: defaulting = 0, visible = 1, type = 16777224, value = {[ -20 -10 0]} // input[2]: defaulting = 0, visible = 1, type = 16777224, value = {[20 20 0]} // input[3]: defaulting = 0, visible = 1, type = 8, value = [2 2 1] // input[4]: defaulting = 1, visible = 1, type = 16777245, value = NULL // page group: Image // main_Construct_32_out_1 = Construct( main_Construct_32_in_1, main_Construct_32_in_2, main_Construct_32_in_3, main_Extract_2_out_1 ) [instance: 32, cache: 1]; // // node Color[14]: x = 400, y = 120, inputs = 5, label = Color // input[2]: defaulting = 0, visible = 1, type = 8, value = [0.0 1.0 0.0] // input[3]: defaulting = 0, visible = 1, type = 5, value = 0.2 // page group: Image // main_Color_14_out_1 = Color( main_Construct_32_out_1, main_Color_14_in_2, main_Color_14_in_3, main_Color_14_in_4, main_Color_14_in_5 ) [instance: 14, cache: 1]; // // node Collect[19]: x = 140, y = 300, inputs = 6, label = Collect // page group: Image // main_Collect_19_out_1 = Collect( main_Caption_1_out_1, main_SPTransform_2_out_1, main_Receiver_1_out_1, main_Receiver_5_out_1, main_Receiver_3_out_1, main_Color_14_out_1 ) [instance: 19, cache: 1]; // // node Image[10]: x = 140, y = 380, inputs = 49, label = Image // input[1]: defaulting = 0, visible = 0, type = 67108863, value = "Image_10" // input[4]: defaulting = 0, visible = 0, type = 1, value = 1 // input[5]: defaulting = 0, visible = 0, type = 8, value = [1.1855 -2.32363 -0.445152] // input[6]: defaulting = 0, visible = 0, type = 8, value = [-25.6525 93.9328 27.4847] // input[7]: defaulting = 0, visible = 0, type = 5, value = 43.6395 // input[8]: defaulting = 0, visible = 0, type = 1, value = 1376 // input[9]: defaulting = 0, visible = 0, type = 5, value = 0.675 // input[10]: defaulting = 0, visible = 0, type = 8, value = [0.0775677 -0.25782 0.963074] // input[11]: defaulting = 1, visible = 0, type = 5, value = 23.752 // input[12]: defaulting = 0, visible = 0, type = 1, value = 0 // input[14]: defaulting = 0, visible = 0, type = 1, value = 1 // input[15]: defaulting = 1, visible = 0, type = 32, value = "none" // input[16]: defaulting = 1, visible = 0, type = 32, value = "none" // input[17]: defaulting = 1, visible = 0, type = 1, value = 1 // input[18]: defaulting = 1, visible = 0, type = 1, value = 1 // input[19]: defaulting = 0, visible = 0, type = 3, value = 0 // input[29]: defaulting = 0, visible = 0, type = 3, value = 1 // input[30]: defaulting = 0, visible = 0, type = 16777248, value = {"X (GSM, R_E)", "Y (GSM, R_E)", "Z (GSM, R_E)"} // input[31]: defaulting = 0, visible = 0, type = 1, value = 15 // input[32]: defaulting = 1, visible = 0, type = 16777224, value = {[-10 -5 -5] [10 5 5]} // input[33]: defaulting = 0, visible = 0, type = 3, value = 0 // input[36]: defaulting = 0, visible = 0, type = 3, value = 0 // input[41]: defaulting = 0, visible = 0, type = 32, value = "panzoom" // input[42]: defaulting = 0, visible = 0, type = 32, value = "EarthExternalField" // page group: Image // title: value = EarthExternalField // depth: value = 16 // window: position = (0.0000,0.0000), size = 0.9929x0.9238 // internal caching: 1 // main_Image_10_out_1, main_Image_10_out_2, main_Image_10_out_3 = Image( main_Image_10_in_1, main_Collect_19_out_1, main_Image_10_in_3, main_Image_10_in_4, main_Image_10_in_5, main_Image_10_in_6, main_Image_10_in_7, main_Image_10_in_8, main_Image_10_in_9, main_Image_10_in_10, main_Image_10_in_11, main_Image_10_in_12, main_Image_10_in_13, main_Image_10_in_14, main_Image_10_in_15, main_Image_10_in_16, main_Image_10_in_17, main_Image_10_in_18, main_Image_10_in_19, main_Image_10_in_20, main_Image_10_in_21, main_Image_10_in_22, main_Image_10_in_23, main_Image_10_in_24, main_Image_10_in_25, main_Image_10_in_26, main_Image_10_in_27, main_Image_10_in_28, main_Image_10_in_29, main_Image_10_in_30, main_Image_10_in_31, main_Image_10_in_32, main_Image_10_in_33, main_Image_10_in_34, main_Image_10_in_35, main_Image_10_in_36, main_Image_10_in_37, main_Image_10_in_38, main_Image_10_in_39, main_Image_10_in_40, main_Image_10_in_41, main_Image_10_in_42, main_Image_10_in_43, main_Image_10_in_44, main_Image_10_in_45, main_Image_10_in_46, main_Image_10_in_47, main_Image_10_in_48, main_Image_10_in_49 ) [instance: 10, cache: 1]; // // node VectorList[2]: x = 160, y = 260, inputs = 11, label = VectorList // input[1]: defaulting = 0, visible = 0, type = 32, value = "VectorList_2" // input[3]: defaulting = 0, visible = 0, type = 16777224, value = { [-10.0 0.0 0.0 ] } // input[5]: defaulting = 1, visible = 0, type = 8, value = [ -1000000.0 -1000000.0 -1000000.0 ] // input[6]: defaulting = 1, visible = 0, type = 8, value = [ 1000000.0 1000000.0 1000000.0 ] // input[7]: defaulting = 1, visible = 0, type = 8, value = [ 1 1 1] // input[9]: defaulting = 1, visible = 0, type = 8, value = [ 5.0 5.0 5.0 ] // output[1]: visible = 1, type = 16777224, value = { [-10.0 0.0 0.0 ] } // page group: FieldTubes // // // decorator Annotate pos=(0,20) size=598x172 style(Label), value = // annotation user_begin: 255 // annotation user: Author: R.S. Weigel // annotation user: Date: 01/08/2005 // annotation user: // annotation user: Category: Lab // annotation user: // annotation user: Function: Provides a menu for selection of TsyganenkoX and TsyganenkoX + IGRF, // annotation user: where X = 89c,96,01,03. // annotation user: // annotation user: See also: Tsyganenko89Demo.net, Tsyganenko96Demo.net, Tsyganenko01Demo.net, // annotation user: Tsganenko03Demo.net // annotation user_end: // page group: README // // decorator Annotate pos=(0,20) size=124x44 style(Label), value = // annotation user_begin: 25 // annotation user: Grid to compute // annotation user: Fields on // annotation user_end: // page group: CompFields // // decorator Annotate pos=(400,20) size=315x44 style(Label), value = // annotation user_begin: 85 // annotation user: Note on MapToSphere: z does not reach // annotation user: below 1.0. This forces the grid to end at 1.0. // annotation user_end: // page group: CompFields // // decorator Annotate pos=(740,200) size=247x76 style(Label), value = // annotation user_begin: 133 // annotation user: Input to Field Grid is an object // annotation user: that tells the Image module how // annotation user: the grid points are connected and // annotation user: how to render the lines. // annotation user_end: // page group: CompFields // // decorator Annotate pos=(0,420) size=239x220 style(Label), value = // annotation user_begin: 384 // annotation user: The output of each field module // annotation user: is a magnetic field module // annotation user: computed on the grid it was // annotation user: passed to on its input. The // annotation user: compute module adds the // annotation user: magnetic fields on the grids // annotation user: for select combinations of // annotation user: field models. // annotation user: // annotation user: The collect module bundles each // annotation user: of the Fields on its input into // annotation user: an OpenDX data structure called // annotation user: a Group. // annotation user_end: // page group: CompFields // // decorator Annotate pos=(740,300) size=385x76 style(Label), value = // annotation user_begin: 170 // annotation user: The FieldGrid is a Transmitter. It sends its input // annotation user: to the Image page where there is a FieldGrid Reciever. // annotation user: Transmitters and Recievers are used to simplify // annotation user: program layout. // annotation user_end: // page group: CompFields // // decorator Annotate pos=(0,760) size=311x92 style(Label), value = // annotation user_begin: 191 // annotation user: The FieldGrid is a Transmitter. It sends its // annotation user: input to the FieldTubes page where there is // annotation user: a FieldGrid Reciever. Transmitters and // annotation user: Recievers are used to simplify program // annotation user: layout. // annotation user_end: // page group: CompFields // // decorator Annotate pos=(0,0) size=290x92 style(Label), value = // annotation user_begin: 183 // annotation user: This page is used to trace magnetic field // annotation user: lines given a grid with a magnetic field // annotation user: vector associated with each grid point, // annotation user: and a set of points to start the field line // annotation user: tracing on. // annotation user_end: // resource *decorator.foreground:#b30000 // page group: FieldTubes // // decorator Annotate pos=(520,580) size=230x156 style(Label), value = // annotation user_begin: 242 // annotation user: The Selector module creates a // annotation user: user-interface menu. Double // annotation user: click on it to see the options. // annotation user: // annotation user: The Select module is passed an // annotation user: integer from Selector and only // annotation user: allows that element of the // annotation user: Group it was input to pass // annotation user: through. // annotation user_end: // page group: CompFields // // decorator Annotate pos=(400,0) size=162x28 style(Label), value = // annotation user_begin: 19 // annotation user: Green GSM X-Y plane // annotation user_end: // page group: Image // network: end of macro body CacheScene(main_Image_10_in_1, main_Image_10_out_1, main_Image_10_out_2); } main_Selector_19_in_1 = "Selector_19"; main_Selector_19_in_2 = "IGRF" ; main_Selector_19_in_3 = 0 ; main_Selector_19_in_4 = NULL; main_Selector_19_in_5 = NULL; main_Selector_19_in_6 = NULL; main_Selector_19_in_7 = NULL; main_Selector_19_out_1 = 0 ; main_Selector_19_out_2 = "IGRF" ; main_Transmitter_14_out_1 = NULL; main_Receiver_21_out_1 = NULL; main_Format_5_in_1 = "The yellow grid shows points where the %s field was computed on"; main_Format_5_in_3 = NULL; main_Format_5_out_1 = NULL; main_Caption_1_in_2 = NULL; main_Caption_1_in_3 = NULL; main_Caption_1_in_4 = NULL; main_Caption_1_in_5 = NULL; main_Caption_1_in_6 = NULL; main_Caption_1_in_7 = NULL; main_Caption_1_in_8 = NULL; main_Caption_1_in_9 = NULL; main_Caption_1_out_1 = NULL; main_Earth_2_out_1 = NULL; main_SPTransform_2_in_2 = NULL; main_SPTransform_2_in_3 = NULL; main_SPTransform_2_in_4 = "GEO"; main_SPTransform_2_in_5 = "GSM"; main_SPTransform_2_in_6 = NULL; main_SPTransform_2_in_7 = NULL; main_SPTransform_2_in_8 = NULL; main_SPTransform_2_out_1 = NULL; main_Grid_8_in_1 = [0.0 0.0 10.0]; main_Grid_8_in_2 = NULL; main_Grid_8_in_3 = {[89 0 0][0 180 0][0 0 9]}; main_Grid_8_in_4 = {20,20,20}; main_Grid_8_out_1 = NULL; main_MapToSphere_6_in_2 = {0.0}; main_MapToSphere_6_in_3 = {1}; main_MapToSphere_6_out_1 = NULL; main_ShowConnections_7_out_1 = NULL; main_Color_24_in_2 = "yellow"; main_Color_24_in_3 = 0.01; main_Color_24_in_4 = NULL; main_Color_24_in_5 = NULL; main_Color_24_out_1 = NULL; main_Transmitter_3_out_1 = NULL; main_Receiver_1_out_1 = NULL; main_Pick_3_in_1 = "Pick_2"; main_Pick_3_in_2 = NULL; main_Pick_3_in_3 = NULL; main_Pick_3_in_4 = 283; main_Pick_3_in_5 = 1; main_Pick_3_in_6 = NULL; main_Pick_3_in_7 = NULL; main_Pick_3_in_8 = NULL; main_Pick_3_in_9 = NULL; main_Pick_3_out_1 = NULL; main_Extract_3_in_2 = "positions"; main_Extract_3_out_1 = NULL; main_IGRF_4_in_2 = NULL; main_IGRF_4_out_1 = NULL; main_IGRFDipole_1_in_2 = NULL; main_IGRFDipole_1_out_1 = NULL; main_Tsyganenko89_1_in_2 = NULL; main_Tsyganenko89_1_in_3 = NULL; main_Tsyganenko89_1_out_1 = NULL; main_Compute_48_in_1 = "$0+$1"; main_Compute_48_out_1 = NULL; main_Tsyganenko96_1_in_2 = NULL; main_Tsyganenko96_1_in_3 = NULL; main_Tsyganenko96_1_out_1 = NULL; main_Compute_49_in_1 = "$0+$1"; main_Compute_49_out_1 = NULL; main_Tsyganenko01_1_in_2 = NULL; main_Tsyganenko01_1_in_3 = NULL; main_Tsyganenko01_1_out_1 = NULL; main_Compute_50_in_1 = "$0+$1"; main_Compute_50_out_1 = NULL; main_Tsyganenko03_1_in_2 = NULL; main_Tsyganenko03_1_in_3 = NULL; main_Tsyganenko03_1_out_1 = NULL; main_Compute_51_in_1 = "$0+$1"; main_Compute_51_out_1 = NULL; main_Collect_25_out_1 = NULL; main_Select_8_in_3 = NULL; main_Select_8_out_1 = NULL; main_Transmitter_1_out_1 = NULL; main_Receiver_22_out_1 = NULL; main_FieldLineTracer2_1_in_4 = 0.05; main_FieldLineTracer2_1_in_5 = NULL; main_FieldLineTracer2_1_out_1 = NULL; main_Color_26_in_2 = "blue"; main_Color_26_in_3 = NULL; main_Color_26_in_4 = NULL; main_Color_26_in_5 = NULL; main_Color_26_out_1 = NULL; main_Collect_20_in_2 = NULL; main_Collect_20_out_1 = NULL; main_Transmitter_5_out_1 = NULL; main_Receiver_5_out_1 = NULL; main_Receiver_3_in_1 = NULL; main_Receiver_3_out_1 = NULL; main_Construct_31_in_1 = {[0 0 0]}; main_Construct_31_in_2 = {[0 0 0]}; main_Construct_31_in_3 = [2 2 1]; main_Construct_31_in_4 = NULL; main_Construct_31_out_1 = NULL; main_Extract_2_in_2 = "positions"; main_Extract_2_out_1 = NULL; main_Construct_32_in_1 = {[ -20 -10 0]}; main_Construct_32_in_2 = {[20 20 0]}; main_Construct_32_in_3 = [2 2 1]; main_Construct_32_out_1 = NULL; main_Color_14_in_2 = [0.0 1.0 0.0]; main_Color_14_in_3 = 0.2; main_Color_14_in_4 = NULL; main_Color_14_in_5 = NULL; main_Color_14_out_1 = NULL; main_Collect_19_out_1 = NULL; macro Image( id, object, where, useVector, to, from, width, resolution, aspect, up, viewAngle, perspective, options, buttonState = 1, buttonUpApprox = "none", buttonDownApprox = "none", buttonUpDensity = 1, buttonDownDensity = 1, renderMode = 0, defaultCamera, reset, backgroundColor, throttle, RECenable = 0, RECfile, RECformat, RECresolution, RECaspect, AAenable = 0, AAlabels, AAticks, AAcorners, AAframe, AAadjust, AAcursor, AAgrid, AAcolors, AAannotation, AAlabelscale, AAfont, interactionMode, title, AAxTickLocs, AAyTickLocs, AAzTickLocs, AAxTickLabels, AAyTickLabels, AAzTickLabels, webOptions) -> ( object, camera, where) { ImageMessage( id, backgroundColor, throttle, RECenable, RECfile, RECformat, RECresolution, RECaspect, AAenable, AAlabels, AAticks, AAcorners, AAframe, AAadjust, AAcursor, AAgrid, AAcolors, AAannotation, AAlabelscale, AAfont, AAxTickLocs, AAyTickLocs, AAzTickLocs, AAxTickLabels, AAyTickLabels, AAzTickLabels, interactionMode, title, renderMode, buttonUpApprox, buttonDownApprox, buttonUpDensity, buttonDownDensity) [instance: 1, cache: 1]; autoCamera = AutoCamera( object, "front", object, resolution, aspect, [0,1,0], perspective, viewAngle, backgroundColor) [instance: 1, cache: 1]; realCamera = Camera( to, from, width, resolution, aspect, up, perspective, viewAngle, backgroundColor) [instance: 1, cache: 1]; coloredDefaultCamera = UpdateCamera(defaultCamera, background=backgroundColor) [instance: 1, cache: 1]; nullDefaultCamera = Inquire(defaultCamera, "is null + 1") [instance: 1, cache: 1]; resetCamera = Switch( nullDefaultCamera, coloredDefaultCamera, autoCamera) [instance: 1, cache: 1]; resetNull = Inquire( reset, "is null + 1") [instance: 2, cache: 1]; reset = Switch( resetNull, reset, 0) [instance: 2, cache: 1]; whichCamera = Compute( "($0 != 0 || $1 == 0) ? 1 : 2", reset, useVector) [instance: 1, cache: 1]; camera = Switch( whichCamera, resetCamera, realCamera) [instance: 3, cache: 1]; AAobject = AutoAxes( object, camera, AAlabels, AAticks, AAcorners, AAframe, AAadjust, AAcursor, AAgrid, AAcolors, AAannotation, AAlabelscale, AAfont, AAxTickLocs, AAyTickLocs, AAzTickLocs, AAxTickLabels, AAyTickLabels, AAzTickLabels) [instance: 1, cache: 1]; switchAAenable = Compute("$0+1", AAenable) [instance: 2, cache: 1]; object = Switch( switchAAenable, object, AAobject) [instance:4, cache: 1]; SWapproximation_options = Switch( buttonState, buttonUpApprox, buttonDownApprox) [instance: 5, cache: 1]; SWdensity_options = Switch( buttonState, buttonUpDensity, buttonDownDensity) [instance: 6, cache: 1]; HWapproximation_options = Format( "%s,%s", buttonDownApprox, buttonUpApprox) [instance: 1, cache: 1]; HWdensity_options = Format( "%d,%d", buttonDownDensity, buttonUpDensity) [instance: 2, cache: 1]; switchRenderMode = Compute( "$0+1", renderMode) [instance: 3, cache: 1]; approximation_options = Switch( switchRenderMode, SWapproximation_options, HWapproximation_options) [instance: 7, cache: 1]; density_options = Switch( switchRenderMode, SWdensity_options, HWdensity_options) [instance: 8, cache: 1]; renderModeString = Switch( switchRenderMode, "software", "hardware")[instance: 9, cache: 1]; object_tag = Inquire( object, "object tag")[instance: 3, cache: 1]; annoted_object = Options( object, "send boxes", 0, "cache", 1, "object tag", object_tag, "ddcamera", whichCamera, "rendering approximation", approximation_options, "render every", density_options, "button state", buttonState, "rendering mode", renderModeString) [instance: 1, cache: 1]; RECresNull = Inquire( RECresolution, "is null + 1") [instance: 4, cache: 1]; ImageResolution = Inquire( camera, "camera resolution") [instance: 5, cache: 1]; RECresolution = Switch( RECresNull, RECresolution, ImageResolution) [instance: 10, cache: 1]; RECaspectNull = Inquire( RECaspect, "is null + 1") [instance: 6, cache: 1]; ImageAspect = Inquire( camera, "camera aspect") [instance: 7, cache: 1]; RECaspect = Switch( RECaspectNull, RECaspect, ImageAspect) [instance: 11, cache: 1]; switchRECenable = Compute( "$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4", RECenable, switchRenderMode, RECresolution, ImageResolution, RECaspect, ImageAspect) [instance: 4, cache: 1]; NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object); Display( NoRECobject, camera, where, throttle) [instance: 1, cache: 1]; image = Render( RECNoRerenderObject, camera) [instance: 1, cache: 1]; Display( image, NULL, where, throttle) [instance: 2, cache: 1]; WriteImage( image, RECfile, RECformat) [instance: 1, cache: 1]; rec_where = Display( RECNoRerHW, camera, where, throttle) [instance: 1, cache: 0]; rec_image = ReadImageWindow( rec_where) [instance: 1, cache: 1]; WriteImage( rec_image, RECfile, RECformat) [instance: 1, cache: 1]; RECupdateCamera = UpdateCamera( camera, resolution=RECresolution, aspect=RECaspect) [instance: 2, cache: 1]; Display( RECRerenderObject, camera, where, throttle) [instance: 1, cache: 1]; RECRerenderObject = ScaleScreen( RECRerenderObject, NULL, RECresolution, camera) [instance: 1, cache: 1]; image = Render( RECRerenderObject, RECupdateCamera) [instance: 2, cache: 1]; WriteImage( image, RECfile, RECformat) [instance: 2, cache: 1]; } main_Image_10_in_1 = "Image_10"; main_Image_10_in_3 = "X16,,EarthExternalField"; main_Image_10_in_4 = 1; main_Image_10_in_5 = [1.1855 -2.32363 -0.445152]; main_Image_10_in_6 = [-25.6525 93.9328 27.4847]; main_Image_10_in_7 = 43.6395; main_Image_10_in_8 = 1376; main_Image_10_in_9 = 0.675; main_Image_10_in_10 = [0.0775677 -0.25782 0.963074]; main_Image_10_in_11 = NULL; main_Image_10_in_12 = 0; main_Image_10_in_13 = NULL; main_Image_10_in_14 = 1; main_Image_10_in_15 = NULL; main_Image_10_in_16 = NULL; main_Image_10_in_17 = NULL; main_Image_10_in_18 = NULL; main_Image_10_in_19 = 0; main_Image_10_in_20 = NULL; main_Image_10_in_21 = NULL; main_Image_10_in_22 = NULL; main_Image_10_in_23 = NULL; main_Image_10_in_25 = NULL; main_Image_10_in_26 = NULL; main_Image_10_in_27 = NULL; main_Image_10_in_28 = NULL; main_Image_10_in_29 = 1; main_Image_10_in_30 = {"X (GSM, R_E)", "Y (GSM, R_E)", "Z (GSM, R_E)"}; main_Image_10_in_31 = 15; main_Image_10_in_32 = NULL; main_Image_10_in_33 = 0; main_Image_10_in_34 = NULL; main_Image_10_in_35 = NULL; main_Image_10_in_36 = 0; main_Image_10_in_37 = NULL; main_Image_10_in_38 = NULL; main_Image_10_in_39 = NULL; main_Image_10_in_40 = NULL; main_Image_10_in_41 = "panzoom"; main_Image_10_in_42 = "EarthExternalField"; main_Image_10_in_43 = NULL; main_Image_10_in_44 = NULL; main_Image_10_in_45 = NULL; main_Image_10_in_46 = NULL; main_Image_10_in_47 = NULL; main_Image_10_in_48 = NULL; main_Image_10_in_49 = NULL; main_VectorList_2_in_1 = "VectorList_2"; main_VectorList_2_in_2 = NULL; main_VectorList_2_in_3 = { [-10.0 0.0 0.0 ] }; main_VectorList_2_in_4 = NULL; main_VectorList_2_in_5 = NULL; main_VectorList_2_in_6 = NULL; main_VectorList_2_in_7 = NULL; main_VectorList_2_in_8 = NULL; main_VectorList_2_in_9 = NULL; main_VectorList_2_in_10 = NULL; main_VectorList_2_in_11 = NULL; Executive("product version 4 3 2"); $sync main();