Skip to content

Scanner attribute for the k-space data #313

Answered by mmuckley
NebiyouTen asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @NebiyouTen, yes you can get this information.

import h5py
from lxml import etree

hf = h5py.File("file1001067.h5", "r")
root = etree.fromstring(hf['ismrmrd_header'][()])
print(etree.tostring(root, pretty_print=True).decode())

Output:

<ismrmrdHeader xmlns="http://www.ismrm.org/ISMRMRD" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.ismrm.org/ISMRMRD ismrmrd.xsd">
	<studyInformation>
		<studyTime>19:43:20</studyTime>
	</studyInformation>
	<measurementInformation>
		<measurementID>45167_61209532_61209541_9702</measurementID>
		<patientPosition>FFS</patientPosition>
		<protocolName>COR</protocolName>
		<f…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@NebiyouTen
Comment options

Answer selected by mmuckley
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants