mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.71k stars 1.32k forks source link

ENH: add EGI sensor layout #1214

Closed dengemann closed 10 years ago

dengemann commented 10 years ago

title says it.

agramfort commented 10 years ago

Do you have one? Take it from fieldtrip ?

fraimondo commented 10 years ago

Here's the SFP file for the EGI 256 GSN HydroCel sensor layout

E1  71.9872 33.5519 -12.4579
E2  66.5644 42.5133 8.59
E3  58.0961 49.3772 28.2045
E4  48.6026 53.9002 46.916
E5  36.05   49.8077 64.9877
E6  21.8467 38.7535 78.4805
E7  10.7682 25.583  89.0865
E8  -1.3975 8.9851  93.8693
E9  -13.1647    -12.1274    96.6725
E10 61.5573 53.2255 -4.7359
E11 52.3    61.959  14.8732
E12 39.6349 67.3205 36.0606
E13 26.2733 65.6068 54.4194
E14 11.9321 55.9521 70.1803
E15 -0.8647 42.1566 81.1926
E16 -13.1036    25.6825 88.3434
E17 -24.4005    2.363   90.7837
E18 42.5764 73.1806 2.2186
E19 30.0226 78.2286 19.6983
E20 14.8743 77.5092 39.2769
E21 0.0176  69.804  56.5523
E22 -12.8364    56.0554 69.4094
E23 -23.3909    38.9421 77.0724
E24 -34.6222    17.9589 82.5333
E25 15.7138 85.6183 4.9794
E26 1.1949  85.0222 20.7678
E27 -13.6712    77.6282 38.3884
E28 -26.0887    65.8251 52.7895
E29 -36.635 50.1107 62.7252
E30 -45.7434    30.7668 69.0533
E31 2.1536  85.6989 -9.9396
E32 -12.3084    85.7351 4.1072
E33 -27.566 78.4686 17.9057
E34 -38.2678    67.6453 33.6356
E35 -48.0048    54.3029 43.9089
E36 -51.3387    39.991  54.2574
E37 -39.0499    73.5208 -0.3222
E38 -49.635 62.3839 11.7002
E39 -56.3535    49.8542 24.642
E40 -61.574 37.9399 38.8814
E41 -60.531 25.1736 53.8308
E42 -54.2404    12.8149 68.0377
E43 -47.6294    -0.2957 79.3179
E44 -36.8835    -16.002 88.3827
E45 -21.6855    -33.4393    95.957
E46 -57.7271    53.7227 -8.449
E47 -63.6424    43.0561 4.537
E48 -69.0538    31.6015 18.2175
E49 -70.8422    19.3762 33.6133
E50 -69.0879    7.4547  51.5356
E51 -62.0285    -5.7442 65.7286
E52 -54.4197    -20.0184    77.6474
E53 -38.8374    -38.2922    88.0442
E54 -67.82  34.1346 -16.8098
E55 -71.8924    23.0121 -1.7381
E56 -75.928 11.1946 14.0571
E57 -76.11  0.0998  31.2115
E58 -74.0971    -10.6531    48.5772
E59 -67.9854    -24.5887    64.362
E60 -55.3657    -42.1938    76.0642
E61 -73.5787    11.0171 -21.7665
E62 -76.4444    0.0144  -5.3127
E63 -79.0176    -9.6877 11.9231
E64 -80.5793    -18.9186    29.54
E65 -76.5672    -29.8091    47.2408
E66 -69.0629    -44.4906    59.9509
E67 -74.6126    -1.082  -39.3048
E68 -75.6833    -9.0589 -22.6141
E69 -78.1137    -19.8358    -8.2611
E70 -79.2173    -29.2484    9.3539
E71 -80.5478    -37.9958    28.1492
E72 -76.0784    -47.0968    43.1782
E73 -72.4016    -10.0791    -57.7182
E74 -76.4617    -39.0533    -8.9971
E75 -77.3728    -49.2668    10.745
E76 -74.6521    -58.0939    28.9923
E77 -69.3177    -62.3691    48.3714
E78 -57.6157    -63.9704    65.0226
E79 -42.717 -61.9566    80.0486
E80 -24.0512    -56.7381    90.7393
E81 -1.7418 -46.9478    97.4385
E82 -67.9915    -21.4725    -72.2903
E83 -72.204 -54.8711    -22.5174
E84 -74.1656    -57.9639    -5.9659
E85 -71.1152    -69.4042    13.8673
E86 -65.0735    -75.1549    33.3834
E87 -56.1031    -79.5268    53.8203
E88 -41.599 -78.3258    69.887
E89 -24.4773    -75.5716    82.9624
E90 -1.6459 -64.7557    91.9748
E91 -64.5643    -34.3896    -86.5432
E92 -64.3411    -45.4959    -67.6343
E93 -65.3458    -58.3165    -51.061
E94 -68.3241    -63.5803    -36.6986
E95 -68.4279    -70.3117    -20.4031
E96 -65.909 -78.7986    -0.8173
E97 -59.4331    -88 18.2447
E98 -51.3943    -91.4482    37.2956
E99 -38.3171    -91.8728    54.9586
E100    -22.6743    -89.0141    70.5083
E101    -1.0686 -97.6091    69.0286
E102    -60.1829    -54.3722    -82.7602
E103    -59.4692    -63.4617    -66.0936
E104    -58.5943    -74.531 -48.4668
E105    -61.23  -79.4547    -34.5644
E106    -58.5144    -88.0093    -16.3299
E107    -51.6195    -97.5152    2.1098
E108    -42.7354    -104.1792   21.2829
E109    -32.7893    -105.7871   39.9809
E110    -18.0708    -101.6289   55.5438
E111    -52.9998    -74.5331    -79.2039
E112    -51.0153    -82.0458    -63.6896
E113    -48.5595    -91.9992    -45.6554
E114    -50.9249    -94.3075    -31.3117
E115    -40.1136    -107.0107   -13.3504
E116    -30.6411    -113.4896   5.3057
E117    -19.2803    -115.6653   23.6772
E118    -11.193 -111.7214   39.4554
E119    -0.5817 -106.0184   52.2625
E120    -43.765 -88.9071    -77.6195
E121    -39.2687    -95.9321    -60.9462
E122    -34.0109    -104.9387   -43.2126
E123    -28.7093    -114.9108   -22.7014
E124    -20.8409    -118.3467   -9.3604
E125    -9.447  -119.4818   6.9597
E126    0.2721  -115.6783   23.5385
E127    10.7577 -111.8129   40.1387
E128    16.7053 -101.7739   56.6263
E129    20.4741 -89.194 71.8515
E130    21.611  -75.7637    84.397
E131    20.8589 -56.9253    92.1373
E132    18.3673 -33.6063    97.2038
E133    -31.4671    -102.9747   -71.0456
E134    -24.436 -107.5564   -58.2978
E135    -18.2514    -115.0888   -37.3942
E136    -7.4658 -116.582    -24.6694
E137    1.3442  -117.0396   -11.086
E138    10.9715 -119.5669   7.5953
E139    19.7775 -115.8281   24.8929
E140    32.3281 -106.0586   42.0079
E141    37.0294 -92.1868    57.304
E142    39.4892 -78.6638    72.4111
E143    40.1093 -62.3018    82.6268
E144    35.9371 -38.6039    90.3718
E145    -15.7174    -109.5457   -70.6892
E146    -7.872  -113.5766   -57.1472
E147    2.2762  -114.1391   -40.6387
E148    10.9855 -116.6589   -24.0951
E149    23.3674 -118.531    -7.9843
E150    32.2767 -113.7518   7.2642
E151    43.431  -104.5384   23.9651
E152    51.1829 -91.8757    40.4886
E153    54.954  -79.9897    57.2773
E154    55.8964 -64.4435    68.556
E155    53.1454 -42.6461    79.4419
E156    13.4359 -113.6654   -56.484
E157    22.5538 -115.2589   -36.124
E158    32.0787 -115.1642   -20.8092
E159    42.9447 -107.3569   -10.765
E160    53.5455 -97.9536    5.3834
E161    60.4194 -88.4996    21.9754
E162    65.2142 -75.6979    37.4389
E163    68.6243 -62.9441    52.6652
E164    67.7987 -45.061 64.2111
E165    22.1416 -109.7035   -69.5108
E166    30.089  -107.7837   -56.6006
E167    38.7286 -105.2419   -40.9484
E168    54.9576 -94.7488    -28.0158
E169    61.6528 -88.5102    -12.5894
E170    68.1447 -79.3574    3.3555
E171    72.5056 -70.0028    18.3378
E172    75.1891 -58.7185    33.6565
E173    75.8219 -47.7299    47.9065
E174    37.9372 -103.264    -68.8852
E175    45.154  -96.284 -58.3183
E176    53.5082 -92.4246    -42.4783
E177    65.5684 -79.9832    -30.6174
E178    71.9475 -70.8968    -16.0335
E179    76.8788 -58.5935    -1.2642
E180    79.1128 -49.9191    15.616
E181    81.2929 -38.6704    33.1869
E182    76.201  -30.4459    51.9961
E183    66.6147 -25.1498    68.5518
E184    52.2875 -20.4631    80.9689
E185    34.1516 -16.2981    90.5939
E186    9.9963  -12.224 97.3934
E187    50.7369 -89.301 -74.6779
E188    57.1637 -82.4967    -60.3223
E189    63.8436 -75.0413    -44.6556
E190    72.9135 -64.169 -32.3022
E191    75.9763 -55.4887    -17.9049
E192    79.5164 -39.7034    -4.1418
E193    81.2069 -29.9171    14.3475
E194    81.3968 -19.5937    34.5819
E195    73.8122 -11.2696    53.1813
E196    60.7415 -6.2559 69.5501
E197    45.571  -0.6841 82.219
E198    21.6968 2.1709  92.2186
E199    60.1717 -75.0049    -75.6812
E200    65.9052 -63.9843    -62.191
E201    70.8782 -58.8843    -46.8206
E202    81.2794 -20.5001    -3.2995
E203    81.0107 -10.3548    16.9044
E204    76.9907 -0.5383 35.9771
E205    68.7797 6.88    55.8271
E206    52.9797 12.368  71.3752
E207    32.5415 17.679  84.624
E208    67.7297 -54.9054    -78.7786
E209    71.013  -46.0601    -63.4211
E210    79.8362 -9.7071 -17.7731
E211    79.5953 -0.636  -0.4555
E212    77.9684 10.5531 18.8475
E213    71.7444 18.7819 38.0517
E214    60.2444 24.6702 57.5903
E215    44.5857 30.3903 71.8651
E216    72.5043 -34.9609    -82.2766
E217    75.1458 -22.0691    -67.8347
E218    78.7358 -10.7091    -53.0137
E219    79.8721 -1.7259 -34.4961
E220    77.8503 10.3859 -17.0529
E221    75.0215 22.3998 2.835
E222    71.0189 31.0176 22.5777
E223    62.3214 37.4235 42.7379
E224    51.1671 39.5637 57.4482
E225    79.3065 13.5308 -35.7965
E226    75.6101 29.353  -38.6076
E227    79.1695 7.4866  -54.9622
E228    77.8761 -3.2226 -71.591
E229    73.0385 -17.4029    -85.7303
E230    70.9309 41.9734 -48.6336
E231    76.0721 24.1555 -60.2421
E232    77.4399 15.5937 -76.3863
E233    75.5783 1.1137  -90.7508
E234    62.6075 54.8537 -55.2766
E235    70.6713 39.625  -67.1663
E236    72.0051 30.3047 -81.5461
E237    70.6903 18.2789 -96.1096
E238    50.6947 65.0832 -57.3711
E239    62.5078 48.1113 -76.8843
E240    65.1617 38.3127 -89.1377
E241    -43.5136    65.4759 -60.3036
E242    -54.2312    48.5979 -80.5181
E243    -56.1993    38.8186 -92.9154
E244    -55.6183    55.3465 -58.9567
E245    -63.0536    40.1823 -71.3288
E246    -63.5681    30.8697 -85.7661
E247    -61.4503    18.8297 -100.2228
E248    -64.4457    42.5377 -52.8475
E249    -69.0033    24.7602 -64.7579
E250    -69.4356    16.2059 -80.9582
E251    -66.8049    1.7071  -95.1828
E252    -69.8444    29.9592 -43.1352
E253    -73.8402    14.1691 -40.5636
E254    -72.5617    8.119   -59.6852
E255    -70.3259    -2.6048 -76.2042
E256    -64.7365    -16.8286    -90.0189
dengemann commented 10 years ago

@fraimondo (just sitting behind me) thanks!

dengemann commented 10 years ago

@fraimondo I created a small script that allows to bootstrap the layout in the final MNE format.

https://gist.github.com/dengemann/10581948

Some geometrical scaling parameters need to be adjusted by trying to plot stuff.