<div dir="ltr">Hi Dan,<div><br></div><div>The only thing I could see as potentially problematic would be the leading zeros for the cardinal points (and making the hpi as well) in the hpts file. I know that in the Python implementation of MNE, the hpts format is compatible. This implementation is the most up-to-date. I know that the original command line tools should be compatible for hpts but it is not being actively developed anymore. Have you tried using the Python implementation?</div><div><br></div><div>HTH,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div><a href="http://teonbrooks.github.io" target="_blank">teon</a><br></div><div>--</div><div>twitter: <a href="http://www.twitter.com/teon_io" target="_blank">@teon_io</a></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Feb 28, 2017 at 2:02 PM, Song, Daniel <span dir="ltr">&lt;<a href="mailto:DSONG2@mgh.harvard.edu" target="_blank">DSONG2@mgh.harvard.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Dear MNE users,<br>
<br>
I am running into a problem when trying to convert and edf file into a fif file with EEG electrode coordinates. I&#39;m using the command mne_edf2fiff as below:<br>
<br>
mne_edf2fiff --edf MGH118_CTvsFspikes.edf --hpts MGH118.hpts --fifout MGH118_CTvsFspikes.fif<br>
<br>
This is the output I get:<br>
<br>
mne_edf2fiff version 1.9 compiled at Apr 26 2016 04:25:02<br>
<br>
EDF/EDF+/BDF file (input)     : MGH118_CTvsFspikes.edf<br>
hpts file (input)             : MGH118.hpts<br>
fif file (output)             : MGH118_CTvsFspikes.fif<br>
<br>
Parsing EDF/EDF+/BDF header...[done]<br>
<br>
Reading the digitization data from MGH118.hpts (coordinates in millimeters)...<br>
Unknown digitizer point type : <br>
<br>
I&#39;m not sure what it means by unknown digitizer point type. I&#39;ve checked the format of my hpts file and believe it follows the correct format. Contents of my hpts file are below. Anyone have any ideas as to what I&#39;m missing?<br>
<div><br>
Thanks!<br>
<br>
#<br>
#    This file contains digitization data in the hpts format.<br>
<br>
#    Cardinal landmark identifiers:<br>
#<br>
#    Left auricular  = 001<br>
#    Nasion          = 002<br>
#    Right auricular = 003<br>
#<br>
cardinal    0001    -59.95    0    0<br>
cardinal    0002    0    91.6    0<br>
cardinal    0003    83.74    0    0<br>
hpi    0001    -0.46    101.9    21.3<br>
hpi    0002    2.82    98.76    15.96<br>
hpi    0003    0.94    95.24    13.23<br>
hpi    0004    5.87    94.18    23.95<br>
eeg    0000    2.65    95.39    36.05<br>
eeg    AF7    -37.97    73.14    33.62<br>
eeg     F7    -50.35    54.66    40.98<br>
eeg    T1    -58.07    26.11    23.78<br>
eeg     AFF5H    -37.96    71.27    52.79<br>
eeg     F5    -50.35    57.85    46.63<br>
eeg     FFT7H    -56.62    40.88    44.92<br>
eeg     FT7    -64.94    21.17    35.39<br>
eeg     FTT9H    -61.42    15.27    31.15<br>
eeg     F3    -32.48    66.12    65.86<br>
eeg     FFC5H    -46.99    54.59    58.63<br>
eeg     FC5    -59.21    34.36    54.51<br>
eeg     FTT7H    -62.64    18.41    48.83<br>
eeg     T3    -65.73    -0.25    32.56<br>
eeg     M1    -58.66    -41.14    -6.6<br>
eeg     FFC3H    -29.88    56.92    77.83<br>
eeg     FC3    -43.76    43.64    72.05<br>
eeg     FCC5H    -53.68    28.7    70.71<br>
eeg     C5    -64.25    2.9    64.59<br>
eeg     TTP7H    -64.83    -10.83    56.67<br>
eeg     TP7    -66.08    -34.52    44.47<br>
eeg     TPP9H    -56.39    -49.5    30.54<br>
eeg    P9    -48.47    -61.04    24.36<br>
eeg    FCC3H    -43.99    31.75    74.99<br>
eeg     C3    -51.16    19.61    74.22<br>
eeg     CCP5H    -66.49    -9.06    62.36<br>
eeg     CP5    -64.71    -24.54    59.74<br>
eeg     TPP7H    -62.63    -41.31    51.49<br>
eeg     T5    -55.15    -48.5    41.28<br>
eeg    PPO9H    -48.78    -61.25    34.82<br>
eeg    PO9    -38.43    -73.6    34.07<br>
eeg     CCP3H    -38.18    -7.19    101.44<br>
eeg     CP3    -46.21    -23.31    93.37<br>
eeg    CPP5H    -55.48    -38.38    74.97<br>
eeg     P5    -52.39    -51.54    63.24<br>
eeg    CPP3H    -32.22    -27.76    100.45<br>
eeg     P3    -38.02    -47.18    87.8<br>
eeg     PPO5H    -40.49    -58.59    75.37<br>
eeg    PO5    -39.5    -70.89    62.22<br>
eeg     PO7    -39.65    -71.63    51.18<br>
eeg     FP2    34.29    92.34    22<br>
eeg     FPZ    6.13    98.7    14.67<br>
eeg     FP1    -22.08    91.15    14.69<br>
eeg     AFP4H    25.64    93.76    33.25<br>
eeg    AFP3H    -5.79    95.95    24.42<br>
eeg     AF4    41.28    84.42    47.11<br>
eeg    AFZ    11.63    93.36    47.68<br>
eeg     AF3    -23.21    86.04    46.55<br>
eeg     AFF2    32.25    85.59    64.85<br>
eeg    AFF1    -0.59    85.29    65.42<br>
eeg     F2    43.21    70.55    80.43<br>
eeg     FZ    18.24    71.87    90.29<br>
eeg     F1    -10.75    59.33    94.14<br>
eeg     FFC2H    21.55    67.83    88.7<br>
eeg     FFC1H    12.05    67.33    96.39<br>
eeg    FC2    41.62    42.56    102.48<br>
eeg     FCZ    20.95    58.32    98.8<br>
eeg    FC1    0.42    51.7    104.35<br>
eeg     FCC2H    42.62    36.53    114.62<br>
eeg     FCC1H    17.72    42.91    115.61<br>
eeg     C2    54.52    20.76    110.55<br>
eeg     CZ    25.96    25.92    116.86<br>
eeg    C1    -3.5    26.33    114.14<br>
eeg    CCP2H    42.46    9.07    119.59<br>
eeg     CCP1H    16.85    10.55    125.16<br>
eeg     CP2    49.22    -11.4    116.48<br>
eeg     CPZ    26.47    -3.48    121.61<br>
eeg    CP1    -0.77    -5.16    121.76<br>
eeg     CPP2H    37.18    -24.47    117.69<br>
eeg    CPP1H    12.18    -20.87    120.96<br>
eeg     P2    43.12    -36.34    108.23<br>
eeg     PZ    21.99    -28.15    114<br>
eeg     P1    -1.44    -30.06    115.4<br>
eeg     PPO2    32.74    -52.95    107.03<br>
eeg     PPO1    4.83    -46.84    107.71<br>
eeg     PO4    46.16    -57.99    89.04<br>
eeg     POZ    12.61    -58.72    92.68<br>
eeg    PO3    -20.31    -49.97    89.52<br>
eeg    POO4H    26.74    -73.74    76.6<br>
eeg     POO3H    -4.63    -65.32    80.67<br>
eeg     O2    30.09    -75.58    64.35<br>
eeg     OZ    11.37    -78.78    70.8<br>
eeg     O1    -13.96    -72.55    68.66<br>
eeg     POO10H    20.84    -84.17    49.96<br>
eeg     OI2H    -4.82    -80.9    53.31<br>
eeg     OI1H    -17.22    -75.93    53.87<br>
eeg     POO9H    -21.33    -75.19    52.69<br>
eeg     EKG/I2    32.11    -78.36    31.28<br>
eeg     IZ/CII    4.22    -78.45    39.36<br>
eeg     I1    -25.2    -75.61    38.32<br>
eeg     AF8    43.95    53.92    87.89<br>
eeg     F8    52.49    63.39    73.55<br>
eeg     T2    59.31    69.68    62.18<br>
eeg     AFF6H    40.94    20.87    104.59<br>
eeg     F6    50.68    32.43    94.38<br>
eeg     FFT8H    62.29    41.84    76.37<br>
eeg     FT8    51.14    47.97    70.51<br>
eeg     FTT10H    53.47    72.25    40.1<br>
eeg     F4    32.48    -9.98    107.59<br>
eeg     FFC6H    50.65    3.46    101.84<br>
eeg     FC6    66.27    13.06    92.57<br>
eeg     FTT8H    76.24    22.78    77.56<br>
eeg     T4    77.11    35.35    63.04<br>
eeg     M2    79.96    47.36    46.1<br>
eeg     FFC4H    31.83    -35.07    105.78<br>
eeg    FC4    42.7    -22.78    103.62<br>
eeg     FCC6H    59.31    -9.84    91.93<br>
eeg    C6    70.4    -1.11    81.92<br>
eeg     TTP8H    80.55    9.7    64.02<br>
eeg     TP8    83.08    16.12    53.75<br>
eeg    TPP10H    70.62    23.3    32.23<br>
eeg     P10    77.1    -40.89    8.48<br>
eeg     FCC4H    47    -53.69    97.52<br>
eeg     C4    60.96    -43.34    93.15<br>
eeg    CCP6H    75.4    -30.64    83.67<br>
eeg    CP6    82.22    -20.77    71.26<br>
eeg     TPP8H    88.17    -0.93    44.3<br>
eeg     T6    86.04    13.86    37.3<br>
eeg    PPO10H    84.55    23.35    22.8<br>
eeg    PO10    76.12    29.61    -12.63<br>
eeg    CCP4H    50.18    -58.79    84.25<br>
eeg    CP4    59.18    -52.25    80.79<br>
eeg     CPP6H    71.43    -41.73    64.74<br>
eeg     P6    79.15    -32.69    51.56<br>
eeg     CPP4H     48.35    -72.68    72.11<br>
eeg    P4    70.41    -58.23    58.92<br>
eeg    PPO6H    76.69    -51.94    40.74<br>
eeg     PO6     73.98    -32.38    10.64<br>
eeg    PO8    75.13    -20.76    -0.01<br>
<br>
<br>
<br>
<div class="m_1903716203098021422BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="m_1903716203098021422PlainText">Dan Song<br>
Clinical Research Coordinator<br>
Massachusetts General Hospital Neurology Department<br>
</div>
</span></font></div>
</div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.<wbr>edu/mailman/listinfo/mne_<wbr>analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/<wbr>complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>