AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
January 23, 2018 04:40PM
Hello,

I'm in the process of writing a script to sort & rename lots of dicom files based on information in the dicom header. Ideally I wanted to include the series description (dicom field "0008,103e") as part of the output directory name (with spaces replaced with underscores, using sed). However, dicom_hinfo only returns the first word of the series description. I could use dcmdump from DCMTK, but dicom_hinfo is a lot faster. I could use dicom_hdr & grep, but I'm not sure how I'd grep for multiple elements (instance number, series description, etc.) without reading in the header multiple times. I need to read through tens of thousands of dicom files, so speed is an issue.

Is there a way for dicom_hinfo to output the entire field for series description, rather than just the first word?

Thanks,
Rasmus
Subject Author Posted

dicom_hinfo

rbirn January 23, 2018 04:40PM

Re: dicom_hinfo

discoraj January 24, 2018 12:49PM

Re: dicom_hinfo

rbirn January 24, 2018 04:44PM

Re: dicom_hinfo

discoraj January 29, 2018 12:57PM

Re: dicom_hinfo

rbirn January 30, 2018 12:26PM

Re: dicom_hinfo

Ziad Saad January 03, 2019 02:12PM

Re: dicom_hinfo

rick reynolds January 11, 2019 07:46PM

Re: dicom_hinfo

Ziad Saad January 22, 2019 12:07PM

Re: dicom_hinfo

rick reynolds January 22, 2019 12:52PM

Re: dicom_hinfo

Ziad Saad January 23, 2019 12:39PM