Closed GoogleCodeExporter closed 9 years ago
Have you tried the "force=True" argument to read_file()? It was added more
recently, but I don't think the documentation was updated.
Original comment by darcymason@gmail.com
on 19 Feb 2011 at 3:51
Issue 100 has been merged into this issue.
Original comment by darcymason@gmail.com
on 19 Feb 2011 at 3:52
[deleted comment]
Nice, wasn't aware of that. When using force=True, very little info is found
in the header.
In [46]: d=dicom.read_file('case01080_t2.035', force=True)
In [47]: d
Out[47]: (4d49, 4647) Private tag data OB: Array of 138968
bytes
We have an in-house tool that shows a lot more information than this:
% print-header-mark case01080_t2.030
print_header V1.0
ENTRY AND POSITION ARE 1 1
input_prefix = case01080_t2
output_prefix =
suffix = <none>
filename_format = %s.%03d
patient_name = XXLASTXX,XXFIRSTXX
patient_sex = X
date = X/XX/XX
time_hr_min_sec = XX:XX:XX
study_desc = BRAIN
series_desc = AXIAL PD/T2 CONVENTIONAL
hospital_name = XXLOCATIONXX
patient_id = XXXXXX
exam_modality = MR
image_type_text = genesis
image_type = N/A
sop_instance_uid = N/A
etc...
where X's are censoring I just did. If I just open the file in vim I can find
most of this information, but pydicom doesn't seem to.
Original comment by ThomasBallinger
on 19 Feb 2011 at 4:02
Hmmm... it would be hard to offer much more help without a file. Rather than
email (not necessarily secure), perhaps you could upload to google docs and
email me the link? darcymason <at> gmail (dot) com. Not completely certain how
secure that is either, but better at least.
Original comment by darcymason@gmail.com
on 19 Feb 2011 at 4:12
Forgot to update this at the time. File was not valid DICOM. Closing issue.
Original comment by darcymason@gmail.com
on 27 Oct 2011 at 12:29
Original issue reported on code.google.com by
ThomasBallinger
on 19 Feb 2011 at 2:50