pidf v2_IMA_AZ4 {
$******************************************************************************
    float version = 2.0;
    string institution = "SwRI";                     $$ institution
    string project = "MARS";                         $$ project
    string mission = "Mars Express";                 $$ mission
    string experiment = "ASPERA-3";                  $$ experiment
    string instrument = "IMA";                       $$ instrument
    string vinst = "IMA_AZ4";                        $$ virtual inst.
$******************************************************************************
    int num_groups = 1;                              $$ number of groups
    string group_name = "IMA Sector 4 Mass Channels"; $$ group name
    int plot_avail_flag = 7;                         $$ plots available
    int data_type_mask = 27;                         $$ measures available
    int instrument_dep = 1;                          $$ instrument dependencies
    float scan_min = 1.00;                           $$ scan_min
    float scan_max = 40000.0;                        $$ scan_max
    char flow_into = 'Y';                            $$ flow into
$******************************************************************************
    int num_bin_sets = 0;                            $$ number of bins
$******************************************************************************
    int num_units = 24;                              $$ number of units
$---------------------------------UNIT 00--------------------------------------
    struct Unit0 {
        int id = 13;                                 $$ units id
        float min = 0.00;                            $$ Unit0. min
        float max = 65535.00;                        $$ Unit0. max
        int unit_scaling = 1;                        $$ units scaling
        string unit_label = "Telemetry";             $$ unit label
        string long_description = "Telemetry";       $$ unit long descr.
        string short_description = "RAW";            $$ unit short descr.
        int num_tables = 0;                          $$ num. tables
    };
$---------------------------------UNIT 01--------------------------------------
    struct Unit1 {
        int id = 13;                                 $$ units id
        float min = -10.00;                          $$ Unit1. min
        float max = 100.00;                          $$ Unit1. max
        int unit_scaling = 1;                        $$ units scaling
        string unit_label = "Index";                 $$ unit label
        string long_description = "Telemetry";       $$ unit long descr.
        string short_description = "TM";             $$ unit short descr.
        int num_tables = 0;                          $$ num. tables
    };
$---------------------------------UNIT 02--------------------------------------
    struct Unit2 {
        int id = 0;                                        $$ units id
        float min = 5.0;                                   $$ Unit2 min
        float max = 40000.00;                              $$ Unit2 max
        int unit_scaling = 2;                              $$ units scaling
        string unit_label = "eV";                          $$ unit label
        string long_description = "Electron Volts";        $$ unit long descr.
        string short_description = "eV";                   $$ unit short descr.
        int num_tables = 1;                                $$ num. tables
        int tbl_app_flag = 0;                              $$ table numbers
        int tbl_app_oper = 0;                              $$ operations
    };
$---------------------------------UNIT 03--------------------------------------
    struct Unit3 {
        int id = 12;                                      $$ units id
        float min = -1.0;                                 $$ Unit3 min
        float max = 5.0;                                  $$ Unit3 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Flag";                 $$ unit long descr.
        string short_description = "Dqual";               $$ unit short descr.
        int num_tables = 0;                               $$ num. tables
    };
$---------------------------------UNIT 04--------------------------------------
    struct Unit4 {
        int id = 13;                                      $$ units id
        float min = -1.0;                                 $$ Unit4 min
        float max = 100.0;                                $$ Unit4 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "index";                $$ unit long descr.
        string short_description = "SWIndx";              $$ unit short descr.
        int num_tables = 0;                               $$ num. tables
    };
$---------------------------------UNIT 05--------------------------------------
    struct Unit5 {
        int id = 13;                                      $$ units id
        float min = -2.0;                                 $$ Unit5 min
        float max = 18.0;                                 $$ Unit5 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Index";                $$ long desc.
        string short_description = "PolarA";              $$ unit short descr.
        int num_tables = 0;                               $$ num. tables
    };
$---------------------------------UNIT 06--------------------------------------
    struct Unit6 {
        int id = 13;                                      $$ units id
        float min = -2.0;                                 $$ Unit6 min
        float max = 8.0;                                  $$ Unit6 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Telemetry";            $$ long desc.
        string short_description = "ASum";                $$ unit short descr.
        int num_tables = 0;                               $$ num. tables
    };
$---------------------------------UNIT 07--------------------------------------
    struct Unit7 {
        int id = 13;                                      $$ units id
        float min = -2.0;                                 $$ Unit7 min
        float max = 18.0;                                 $$ Unit7 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Number";               $$ long desc.
        string short_description = "ANum";                $$ unit short descr.
        int num_tables = 1;                               $$ num. tables
        int tbl_app_flag = 9;                             $$ table numbers
        int tbl_app_oper = 0;                             $$ operations
    };
$---------------------------------UNIT 08--------------------------------------
    struct Unit8 {
        int id = 13;                                      $$ units id
        float min = -2.0;                                 $$ Unit8 min
        float max = 8.0;                                  $$ Unit8 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Telemetry";            $$ long desc.
        string short_description = "PSum";                $$ unit short descr.
        int num_tables = 0;                               $$ num. tables
    };
$---------------------------------UNIT 09--------------------------------------
    struct Unit9 {
        int id = 13;                                      $$ units id
        float min = -2.0;                                 $$ Unit9 min
        float max = 18.0;                                 $$ Unit9 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Number";               $$ long desc.
        string short_description = "PNum";                $$ unit short descr.
        int num_tables = 1;                               $$ num. tables
        int tbl_app_flag = 9;                             $$ table numbers
        int tbl_app_oper = 0;                             $$ operations
    };
$---------------------------------UNIT 10--------------------------------------
    struct Unit10 {
        int id = 12;                                      $$ units id
        float min = -1.0;                                 $$ Unit10 min
        float max = 4.0;                                  $$ Unit10 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Flag";                 $$ unit long descr.
        string short_description = "SMask";               $$ unit short descr.
        int num_tables = 0;                               $$ num. tables
    };
$---------------------------------UNIT 11--------------------------------------
    struct Unit11 {
        int id = 12;                                      $$ units id
        float min = -1.0;                                 $$ Unit11 min
        float max = 4.0;                                  $$ Unit11 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Flag";                 $$ unit long descr.
        string short_description = "HVMask";              $$ unit short descr.
        int num_tables = 0;                               $$ num. tables
    };
$---------------------------------UNIT 12--------------------------------------
    struct Unit12 {
        int id = 13;                                      $$ units id
        float min =  0.0;                                 $$ Unit12 min
        float max =  50.0;                                $$ Unit12 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "index";                $$ unit long descr.
        string short_description = "OpMode";              $$ unit short descr.
        int num_tables = 0;                               $$ num. tables
    };
$---------------------------------UNIT 13--------------------------------------
    struct Unit13 {
        int id = 12;                                      $$ units id
        float min = -1.0;                                 $$ Unit13 min
        float max = 4.0;                                  $$ Unit13 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Flag";                 $$ unit long descr.
        string short_description = "#Estps";              $$ unit short descr.
        int num_tables = 0;                               $$ num. tables
    };
$---------------------------------UNIT 14--------------------------------------
    struct Unit14 {
        int id = 13;                                      $$ units id
        float min = -2.0;                                 $$ Unit14 min
        float max = 8.0;                                  $$ Unit14 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Telemetry";            $$ long desc.
        string short_description = "RSum";                $$ unit short descr.
        int num_tables = 0;                               $$ num. tables
    };
$---------------------------------UNIT 15--------------------------------------
    struct Unit15 {
        int id = 13;                                      $$ units id
        float min = -2.0;                                 $$ Unit15 min
        float max = 18.0;                                 $$ Unit15 max
        int unit_scaling = 1;                             $$ units scaling
        string unit_label = "Unitless";                   $$ unit label
        string long_description = "Number";               $$ long desc.
        string short_description = "RNum";                $$ unit short descr.
        int num_tables = 1;                               $$ num. tables
        int tbl_app_flag = 9;                             $$ table numbers
        int tbl_app_oper = 0;                             $$ operations
    };
    struct Unit16 {
$--------------------UNITS 16-----------------------------------------
        int id = 2;                                       $$ units id
        float min = 0.1;                                  $$ unit min/max
        float max = 1.0e5;                                $$ unit min/max
        int unit_scaling = 2;                             $$ unit lin/log
        string unit_label = "c/acc";                      $$ unit label
        string long_description = "Raw counts/acc";       $$ long desc.
        string short_description = "c/acc";               $$ short desc.
        int num_tables = 4;                               $$ num table app.
        int tbl_app_flag = 2;                             $$ table numbers
        int tbl_app_oper = 0;                             $$ operations
        int tbl_app_flag = 3;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 4;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 5;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
    };
    struct Unit17 {
$--------------------UNITS 17-----------------------------------------
        int id = 3;                                       $$ units id
        float min = 0.1;                                  $$ unit min/max
        float max = 1.0e5;                                $$ unit min/max
        int unit_scaling = 2;                             $$ unit lin/log
        string unit_label = "counts/acc";                 $$ unit label
        string long_description = "Raw cor. cnts/acc";    $$ long desc.
        string short_description = "#/acc";               $$ short desc.
        int num_tables = 5;                               $$ num table app.
        int tbl_app_flag = 2;                             $$ table numbers
        int tbl_app_oper = 0;                             $$ operations
        int tbl_app_flag = 3;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 4;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 5;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 6;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
    };
    struct Unit18 {
$--------------------UNITS 18-----------------------------------------
        int id = 4;                                       $$ units id
        float min = 0.1;                                  $$ unit min/max
        float max = 1.0e5;                                $$ unit min/max
        int unit_scaling = 2;                             $$ unit lin/log
        string unit_label = "counts/sec";                 $$ unit label
        string long_description = "Frequency";            $$ long desc.
        string short_description = "Hz";                  $$ short desc.
        int num_tables = 5;                               $$ num table app.
        int tbl_app_flag = 2;                             $$ table numbers
        int tbl_app_oper = 0;                             $$ operations
        int tbl_app_flag = 3;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 4;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 5;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 6;                             $$ table numbers
        int tbl_app_oper = 154;                           $$ operations
    };
    struct Unit19 {
$--------------------UNITS 19-----------------------------------------
        int id = 45;                                      $$ units id
        float min = 1.0e4;                                $$ unit min/max
        float max = 1.0e10;                               $$ unit min/max
        int unit_scaling = 2;                             $$ unit lin/log
        string unit_label = "eV/(cm**2-sr-sec-eV)";       $$ unit label
        string long_description = "Differential Energy Flux";  $$ long desc.
        string short_description = "DEF";                 $$ short desc.
        int num_tables = 6;                               $$ num table app.
        int tbl_app_flag = 2;                             $$ table numbers
        int tbl_app_oper = 0;                             $$ operations
        int tbl_app_flag = 3;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 4;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 5;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 6;                             $$ table numbers
        int tbl_app_oper = 154;                           $$ operations
        int tbl_app_flag = 7;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
    };
    struct Unit20 {
$--------------------UNITS 20-----------------------------------------
        int id = 6;                                       $$ units id
        float min = 1.0e0;                                $$ unit min/max
        float max = 1.0e9;                                $$ unit min/max
        int unit_scaling = 2;                             $$ unit lin/log
        string unit_label = "cnts/(cm**2-sr-sec-eV)";     $$ unit label
        string long_description = "Differential Number Flux";  $$ long desc.
        string short_description = "DNF";                 $$ short desc.
        int num_tables = 7;                               $$ num table app.
        int tbl_app_flag = 2;                             $$ table numbers
        int tbl_app_oper = 0;                             $$ operations
        int tbl_app_flag = 3;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 4;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 5;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 6;                             $$ table numbers
        int tbl_app_oper = 154;                           $$ operations
        int tbl_app_flag = 7;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 0;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
    };
    struct Unit21 {
$--------------------UNITS 21-----------------------------------------
        int id = 7;                                       $$ units id
        float min = 1.0e-7;                               $$ unit min/max
        float max = 1.0e-2;                               $$ unit min/max
        int unit_scaling = 2;                             $$ unit lin/log
        string unit_label = "ergs/(cm**2-sr-sec-eV)";     $$ unit label
        string long_description = "Differential Energy Flux";  $$ long desc.
        string short_description = "DEF";                 $$ short desc.
        int num_tables = 7;                               $$ num table app.
        int tbl_app_flag = 2;                             $$ table numbers
        int tbl_app_oper = 0;                             $$ operations
        int tbl_app_flag = 3;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 4;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 5;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 6;                             $$ table numbers
        int tbl_app_oper = 154;                           $$ operations
        int tbl_app_flag = 7;                             $$ table numbers
        int tbl_app_oper = 4;                             $$ operations
        int tbl_app_flag = 1;                             $$ table numbers
        int tbl_app_oper = 3;                             $$ operations
    };
$---------------------------------UNIT 22--------------------------------------
    struct Unit22 {
        int id = 12;                                 $$ units id
        float min = -1.0;                            $$ Unit22 min
        float max = 9.0;                             $$ Unit22 max
        int unit_scaling = 1;                        $$ units scaling
        string unit_label = "Unitless";              $$ unit label
        string long_description = "Index";           $$ long desc.
        string short_description = "PACCI";          $$ unit short descr.
        int num_tables = 0;                          $$ num. tables
    };
$---------------------------------UNIT 23--------------------------------------
    struct Unit23 {
        int id = 33;                                 $$ units id
        float min = 1.0e2;                           $$ Unit23 min
        float max = 1.0e5;                           $$ Unit23 max
        int unit_scaling = 2;                        $$ units scaling
        string unit_label = "Volt";                  $$ unit label
        string long_description = "Potential";       $$ long desc.
        string short_description = "PACCV";          $$ unit short descr.
        int num_tables = 1;                          $$ num. tables
        int tbl_app_flag = 9;                        $$ table numbers
        int tbl_app_oper = 0;                        $$ operations
    };
$******************************************************************************
    int num_sensors = 32;                            $$ number of sensors
$---------------------------------SENSOR 00------------------------------------
    struct Sensor0 {
        string name = "MEx IMA-04 Mass Channel 0";   $$ sensor name
        string component = "Mass Channel 0";         $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 0;                     $$ pidf sensor number
        int vidf_sensor_num = 0;                     $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 01------------------------------------
    struct Sensor1 {
        string name = "MEx IMA-04 Mass Channel 1";   $$ sensor name
        string component = "Mass Channel 1";         $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 1;                     $$ pidf sensor number
        int vidf_sensor_num = 1;                     $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 02------------------------------------
    struct Sensor2 {
        string name = "MEx IMA-04 Mass Channel 2";   $$ sensor name
        string component = "Mass Channel 2";         $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 2;                     $$ pidf sensor number
        int vidf_sensor_num = 2;                     $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 03------------------------------------
    struct Sensor3 {
        string name = "MEx IMA-04 Mass Channel 3";   $$ sensor name
        string component = "Mass Channel 3";         $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 3;                     $$ pidf sensor number
        int vidf_sensor_num = 3;                     $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 04------------------------------------
    struct Sensor4 {
        string name = "MEx IMA-04 Mass Channel 4";   $$ sensor name
        string component = "Mass Channel 4";         $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 4;                     $$ pidf sensor number
        int vidf_sensor_num = 4;                     $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 05------------------------------------
    struct Sensor5 {
        string name = "MEx IMA-04 Mass Channel 5";   $$ sensor name
        string component = "Mass Channel 5";         $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 5;                     $$ pidf sensor number
        int vidf_sensor_num = 5;                     $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 06------------------------------------
    struct Sensor6 {
        string name = "MEx IMA-04 Mass Channel 6";   $$ sensor name
        string component = "Mass Channel 6";         $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 6;                     $$ pidf sensor number
        int vidf_sensor_num = 6;                     $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 07------------------------------------
    struct Sensor7 {
        string name = "MEx IMA-04 Mass Channel 7";   $$ sensor name
        string component = "Mass Channel 7";         $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 7;                     $$ pidf sensor number
        int vidf_sensor_num = 7;                     $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 08------------------------------------
    struct Sensor8 {
        string name = "MEx IMA-04 Mass Channel 8";   $$ sensor name
        string component = "Mass Channel 8";         $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 8;                     $$ pidf sensor number
        int vidf_sensor_num = 8;                     $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 09------------------------------------
    struct Sensor9 {
        string name = "MEx IMA-04 Mass Channel 9";   $$ sensor name
        string component = "Mass Channel 9";         $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 9;                     $$ pidf sensor number
        int vidf_sensor_num = 9;                     $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 10------------------------------------
    struct Sensor10 {
        string name = "MEx IMA-04 Mass Channel 10";  $$ sensor name
        string component = "Mass Channel 10";        $$ sensor component
        char source = 'V';                           $$ sensor source 
        int pidf_sensor_num = 10;                    $$ pidf sensor number
        int vidf_sensor_num = 10;                    $$ vidf sensor number 
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag 
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };  
$---------------------------------SENSOR 11------------------------------------
    struct Sensor11 {
        string name = "MEx IMA-04 Mass Channel 11";  $$ sensor name 
        string component = "Mass Channel 11";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 11;                    $$ pidf sensor number
        int vidf_sensor_num = 11;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };  
$---------------------------------SENSOR 12------------------------------------
    struct Sensor12 {
        string name = "MEx IMA-04 Mass Channel 12";  $$ sensor name 
        string component = "Mass Channel 12";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 12;                    $$ pidf sensor number
        int vidf_sensor_num = 12;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 13------------------------------------
    struct Sensor13 {
        string name = "MEx IMA-04 Mass Channel 13";  $$ sensor name
        string component = "Mass Channel 13";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 13;                    $$ pidf sensor number
        int vidf_sensor_num = 13;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 14------------------------------------
    struct Sensor14 {
        string name = "MEx IMA-04 Mass Channel 14";  $$ sensor name
        string component = "Mass Channel 14";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 14;                    $$ pidf sensor number
        int vidf_sensor_num = 14;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 15------------------------------------
    struct Sensor15 {
        string name = "MEx IMA-04 Mass Channel 15";  $$ sensor name
        string component = "Mass Channel 15";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 15;                    $$ pidf sensor number
        int vidf_sensor_num = 15;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 16------------------------------------
    struct Sensor16 {
        string name = "MEx IMA-04 Mass Channel 16";  $$ sensor name
        string component = "Mass Channel 16";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 16;                    $$ pidf sensor number
        int vidf_sensor_num = 16;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 17------------------------------------
    struct Sensor17 {
        string name = "MEx IMA-04 Mass Channel 17";  $$ sensor name
        string component = "Mass Channel 17";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 17;                    $$ pidf sensor number
        int vidf_sensor_num = 17;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 18------------------------------------
    struct Sensor18 {
        string name = "MEx IMA-04 Mass Channel 18";  $$ sensor name
        string component = "Mass Channel 18";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 18;                    $$ pidf sensor number
        int vidf_sensor_num = 18;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 19------------------------------------
    struct Sensor19 {
        string name = "MEx IMA-04 Mass Channel 19";  $$ sensor name
        string component = "Mass Channel 19";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 19;                    $$ pidf sensor number
        int vidf_sensor_num = 19;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 20------------------------------------
    struct Sensor20 {
        string name = "MEx IMA-04 Mass Channel 20";  $$ sensor name
        string component = "Mass Channel 20";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 20;                    $$ pidf sensor number
        int vidf_sensor_num = 20;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 21------------------------------------
    struct Sensor21 {
        string name = "MEx IMA-04 Mass Channel 21";  $$ sensor name
        string component = "Mass Channel 21";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 21;                    $$ pidf sensor number
        int vidf_sensor_num = 21;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 22------------------------------------
    struct Sensor22 {
        string name = "MEx IMA-04 Mass Channel 22";  $$ sensor name
        string component = "Mass Channel 22";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 22;                    $$ pidf sensor number
        int vidf_sensor_num = 22;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 23------------------------------------
    struct Sensor23 {
        string name = "MEx IMA-04 Mass Channel 23";  $$ sensor name
        string component = "Mass Channel 23";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 23;                    $$ pidf sensor number
        int vidf_sensor_num = 23;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 24------------------------------------
    struct Sensor24 {
        string name = "MEx IMA-04 Mass Channel 24";  $$ sensor name
        string component = "Mass Channel 24";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 24;                    $$ pidf sensor number
        int vidf_sensor_num = 24;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 25------------------------------------
    struct Sensor25 {
        string name = "MEx IMA-04 Mass Channel 25";  $$ sensor name
        string component = "Mass Channel 25";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 25;                    $$ pidf sensor number
        int vidf_sensor_num = 25;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 26------------------------------------
    struct Sensor26 {
        string name = "MEx IMA-04 Mass Channel 26";  $$ sensor name
        string component = "Mass Channel 26";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 26;                    $$ pidf sensor number
        int vidf_sensor_num = 26;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 27------------------------------------
    struct Sensor27 {
        string name = "MEx IMA-04 Mass Channel 27";  $$ sensor name
        string component = "Mass Channel 27";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 27;                    $$ pidf sensor number
        int vidf_sensor_num = 27;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 28------------------------------------
    struct Sensor28 {
        string name = "MEx IMA-04 Mass Channel 28";  $$ sensor name
        string component = "Mass Channel 28";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 28;                    $$ pidf sensor number
        int vidf_sensor_num = 28;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 29------------------------------------
    struct Sensor29 {
        string name = "MEx IMA-04 Mass Channel 29";  $$ sensor name
        string component = "Mass Channel 29";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 29;                    $$ pidf sensor number
        int vidf_sensor_num = 29;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 30------------------------------------
    struct Sensor30 {
        string name = "MEx IMA-04 Mass Channel 30";  $$ sensor name
        string component = "Mass Channel 30";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 30;                    $$ pidf sensor number
        int vidf_sensor_num = 30;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$---------------------------------SENSOR 31------------------------------------
    struct Sensor31 {
        string name = "MEx IMA-04 Mass Channel 31";  $$ sensor name
        string component = "Mass Channel 31";        $$ sensor component
        char source = 'V';                           $$ sensor source
        int pidf_sensor_num = 31;                    $$ pidf sensor number
        int vidf_sensor_num = 31;                    $$ vidf sensor number
        int group_num = 0;                           $$ sensor group number
        int display_flag = 1;                        $$ display flag
        int scan_block_info = 0;                     $$ sensor scan block number
        int num_units = 7;                           $$ num sensor units
        int unit_number = 0;                         $$ sensor unit numbers
        int unit_number = 16;                        $$ sensor unit numbers
        int unit_number = 17;                        $$ sensor unit numbers
        int unit_number = 18;                        $$ sensor unit numbers
        int unit_number = 20;                        $$ sensor unit numbers
        int unit_number = 21;                        $$ sensor unit numbers
        int unit_number = 19;                        $$ sensor unit numbers
    };
$******************************************************************************
    int num_scan = 1;                                     $$ number of scans
$---------------------------------SCAN 00--------------------------------------
    struct Scan0 {
        int num_units = 2;                                $$ number of scans
        int scan_block_num = 0;                           $$ scan block number
        struct ScanUnit0 {
            char spacing = 'I';                           $$ spacing
            int units_index = 1;                          $$ scan units index
        };
        struct ScanUnit1 {
            char spacing = 'L';                           $$ spacing
            int units_index = 2;                          $$ scan units index
        };
    };
$******************************************************************************
    int num_modes = 10;                                   $$ number of modes
$---------------------------------MODE 00--------------------------------------
    struct Mode0 {
        string name = "Shadow Masking";                   $$ mode name
        string short_name = "Shadow Masking";             $$ mode short name
        int pidf_mode_num = 0;                            $$ pidf mode number
        int vidf_mode_num = 0;                            $$ vidf mode number
        int num_units = 1;                                $$ num mode units
        int unit_number = 10;                             $$ mode unit numbers
    };
$---------------------------------MODE 01--------------------------------------
    struct Mode1 {
        string name = "High Voltage Masking";             $$ mode name
        string short_name = "High Voltage Masking";       $$ mode short name
        int pidf_mode_num = 1;                            $$ pidf mode number
        int vidf_mode_num = 1;                            $$ vidf mode number
        int num_units = 1;                                $$ num mode units
        int unit_number = 11;                             $$ mode unit numbers
    };
$---------------------------------MODE 02--------------------------------------
    struct Mode2 {
        string name = "Operational Mode";                 $$ mode name
        string short_name = "Operational Mode";           $$ mode short name
        int pidf_mode_num = 2;                            $$ pidf mode number
        int vidf_mode_num = 2;                            $$ vidf mode number
        int num_units = 1;                                $$ num mode units
        int unit_number = 12;                             $$ mode unit numbers
    };
$---------------------------------MODE 03--------------------------------------
    struct Mode3 {
        string name = "SW Start Index";                   $$ mode name
        string short_name = "SW Start Index";             $$ mode short name
        int pidf_mode_num = 3;                            $$ pidf mode number
        int vidf_mode_num = 3;                            $$ vidf mode number
        int num_units = 1;                                $$ num mode units
        int unit_number = 4;                              $$ mode unit numbers
    };
$---------------------------------MODE 04--------------------------------------
    struct Mode4 {
        string name = "Polar Angle Index";                $$ mode name
        string short_name = "Polar Angle Index";          $$ mode short name
        int pidf_mode_num = 4;                            $$ pidf mode number
        int vidf_mode_num = 4;                            $$ vidf mode number
        int num_units = 1;                                $$ num mode units
        int unit_number = 5;                              $$ mode unit numbers
    };
$---------------------------------MODE 05--------------------------------------
    struct Mode5 {
        string name = "Azimuth Sum";                      $$ mode name
        string short_name = "Azimuth Sum";                $$ mode short name
        int pidf_mode_num = 5;                            $$ pidf mode number
        int vidf_mode_num = 5;                            $$ vidf mode number
        int num_units = 2;                                $$ num mode units
        int unit_number = 6;                              $$ mode unit numbers
        int unit_number = 7;                              $$ mode unit numbers
    };
$---------------------------------MODE 06--------------------------------------
    struct Mode6 {
        string name = "Polar Angle Sum";                  $$ mode name
        string short_name = "Polar Angle Sum";            $$ mode short name
        int pidf_mode_num = 6;                            $$ pidf mode number
        int vidf_mode_num = 6;                            $$ vidf mode number
        int num_units = 2;                                $$ num mode units
        int unit_number = 8;                              $$ mode unit numbers
        int unit_number = 9;                              $$ mode unit numbers
    };
$---------------------------------MODE 07--------------------------------------
    struct Mode7 {
        string name = "Energy Cycle";                     $$ mode name
        string short_name = "Energy Cycle";               $$ mode short name
        int pidf_mode_num = 7;                            $$ pidf mode number
        int vidf_mode_num = 7;                            $$ vidf mode number
        int num_units = 1;                                $$ num mode units
        int unit_number = 13;                             $$ mode unit numbers
    };
$---------------------------------MODE 08--------------------------------------
    struct Mode8 {
        string name = "Mass Channel Sum";                 $$ mode name
        string short_name = "Mass Channel Sum";           $$ mode short name
        int pidf_mode_num = 8;                            $$ pidf mode number
        int vidf_mode_num = 8;                            $$ vidf mode number
        int num_units = 2;                                $$ num mode units
        int unit_number = 14;                             $$ mode unit numbers
        int unit_number = 15;                             $$ mode unit numbers
    };
$---------------------------------MODE 09--------------------------------------
    struct Mode9 {
        string name = "MEx IMA PACC";                $$ mode name
        string short_name = "MEx IMA PACC";          $$ mode short name
        int pidf_mode_num = 9;                       $$ pidf mode number
        int vidf_mode_num = 9;                       $$ vidf mode number
        int num_units = 2;                           $$ num mode units
        int unit_number = 22;                        $$ mode unit numbers
        int unit_number = 23;                        $$ mode unit numbers
    };
$******************************************************************************
    struct DataQual {
        string name = "MEx IMA-04 Data Quality";     $$ quality name
        string short_name = "Dqual";                 $$ quality short name
        int num_units = 1;                           $$ num. units
        int unit_number = 3;                         $$ quality units
    };
}
