-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let pybv write [coordinates] section to vhdr files #44
Comments
this will be particularly interesting once MNE starts to export to pybv ... because we'll want to capture as much of the FIF data as possible for a round-trip. |
as discussed in #77, the input for a
pybv would then:
PS: I have a very lengthy email discussion on this topic with Brain Products that I didn't post here ... But I think what we plan here would be spec conformant: Especially if we put coordsystem info, units, and landmarks as "comments". BV Readers can then optionally check the VHDR for whether the file was created by "pybv" and if it was, make use of that "comment". BV Readers that dont check for that, will still get sensible data: At least as sensible as the underspecified "Coordinates" section allows :-) |
This sounds great! |
we'd probably need to look at these three functions in mne
and simplify them for use here without adding mne as a dependency. |
See BrainVision data file specification.
The OPTIONAL
[Coordinates]
section in avhdr
file comes right after the REQUIRED[Channels]
section, and it looks like this:For the radius, the spec say the following [emphasis by me]:
All coordinates that pybv writes to the
[Coordinates]
section must first be transformed to the Analyzer's standard coordinate system, which happens to be theCapTrak
system (more info in FieldTrip wiki). For this conversion to work, we will need the Nasion, left, and right preauricular point coordinates (to rescale the coordsystem).I suggest that furthermore, pybv writes a more extensive comment in the
[Coordinates]
section:The text was updated successfully, but these errors were encountered: