gdcmscanner(1) GDCM gdcmscanner(1)NAME
gdcmscanner - Scan a directory containing DICOM files.
SYNOPSIS
gdcmscanner [options] directory
DESCRIPTION
The gdcmscanner is a command line tool to quickly extract value from a set of DICOM attribute in a DICOM File-Set.
PARAMETERS
-d --dir DICOM directory
-t --tag %d,%d DICOM tag(s) to look for
options
-p --print Print output.
-r --recursive Recusively descend directory.
general options
-h--help
print this help text and exit
-v--version
print version information and exit
-V--verbose
verbose mode (warning+error).
-W--warning
warning mode, print warning information
-E--error
error mode, print error information
-D--debug
debug mode, print debug information
Typical usageSimple usage
In order to display all the value for Patient Name (0010,0010) in the directory name gdcmData, simply do:
$ gdcmscanner -t 10,10 -d gdcmData -p
Complex usage
Because gdcmscanner does not support progress, you have to wait until all files are traversed to see any results. This is quite cumbersome,
on UNIX this can be worked around with the following trick:
$ find gdcmData -type d -exec gdcmscanner -t 10,10 -d {} -p ;
So all directory are locally traversed (no child directory are recursively traversed), which means results comes out much faster.
SEE ALSO gdcmdump(1), gdcmraw(1)COPYRIGHT
Copyright (c) 2006-2011 Mathieu Malaterre
Version 2.2.0 Tue Feb 5 2013 gdcmscanner(1)
Check Out this Related Man Page
gdcmgendir(1) GDCM gdcmgendir(1)NAME
gdcmgendir - Tool to generate a DICOMDIR file from a File-Set.
SYNOPSIS
gdcmgendir [options] file-in file-out
DESCRIPTION PARAMETERS
file-in DICOM input filename
file-out DICOM output filename
options
Parameters
options
-i --input DICOM filename or directory
-o --output DICOM filename or directory
-r --recursive recursive.
--descriptor descriptor.
--root-uid Root UID.
general options
-h--help
print this help text and exit
-v--version
print version information and exit
-V--verbose
verbose mode (warning+error).
-W--warning
warning mode, print warning information
-E--error
error mode, print error information
-D--debug
debug mode, print debug information
environment variable
GDCM_ROOT_UID Root UID
Typical usageNOTE
One may have to run some preliminary steps in order to get gdcmgendir to generate the DICOMDIR file. Namely two steps:
o Batch renaming of the DICOM filename into something compatible with ISO 9660 filename convention
o Convert all DICOM file into the Explicit VR Little Endian Uncompressed (1.2.840.10008.1.2.1)
Step 1. can be solved in a numerous way. Eg. on UNIX environment this could either be solved using the mkisofs command line tool. filename
should not contains any extension since the VR CS does not allow for the '.' character. Only upper case, digit 0-9, the space ' ' and the
underscore '_' character are valid in VR CS, with a maximum of 8 bytes. Another simple tool that can be handy is 'rename' in conjunction
with 'basename'.
Step 2. can simply be achieved using the gdcmconv command line tool:
$ for i in `ls IMG*`; do gdcmconv --raw --force $i /tmp/out/$i; done
SEE ALSO gdcmconv(1), gdcmanon(1), rename(1)COPYRIGHT
Copyright (c) 2006-2011 Mathieu Malaterre
Version 2.2.0 Tue Feb 5 2013 gdcmgendir(1)
Platform: AIX
Shell: KSH
Does anyone have a good way of warning users that when they do a 'vi' in a certain directory that they cannot save any changes in that directory.
For instance, if I have a production id that has all scripts in /myprod/dir, and if anyone comes to this directory and does... (1 Reply)
Hi!
I'm new here and glad to meet everyone!
I've been wrestling with a problem lately however! How do I recursively (recursive means to keep going through the subdirectories until no more are there) search a bunch of textfiles in a long directory structure for a specific string.. but only... (1 Reply)
hello
Please tell me the command to sort files in specific directory
i have several files in one directory the files names are
2006-01-25
2006-01-23
2006-01-08
2006-01-07
I WANT TO DISPLAY FILES DATEWISE . THE LATEST DATE SHOULD BE FIRST FILE AND OLDEST WILL BE LAST ONE
PLS... (10 Replies)
I tried opening the files in a directory and print thier names.
But it was thowing the error "unable to open directorty at t5.pl line 2."
Can u plz correct this error in below mentioned code.
#!/data/scoredev/perl
opendir(HOMEDIR,"c:\vin") || die("unable to open directorty");... (3 Replies)
Hi all
i need your help .. I am having a multiple file in directory and i have find out the Rcopy word from these files and need to print those files which contains the Rcopy word
Thanks and regards
Vijay sahu (2 Replies)
What is the best way to find the largest files in a directory? I used du -k|sort -rn |less.
I got a results for this. But if I used the following command , I got another result...a different order in the same directory. Why is that?
ls -la |awk '{print $5," ",$9}' sort -rn|less. I saw that... (6 Replies)
Is there a way to see or print a sub code?
Sometime a sub could be already defined, but in the debug mode (so, interactively) it could be already out of screen.
So, I would think about a way to check if the sub is defined (just 'defined' is not a problem) and how it is defined.
Also, if... (4 Replies)
So, I am trying to find and print info about all of the .txt files in a current directory. This is the information that I intend to gather:
-File number (say there are 6 .txt files in the directory...it would be incremented 1-6)
-File name
-File directory
-Number of lines
Pretty... (2 Replies)
I run a find command to search from root directory.
find / -inum 344334
The output gives the below warning:
find: WARNING: Hard link count is wrong for /proc/1. This may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to... (2 Replies)
I am trying to fetch the latest modified file from a directory using the command
find . -type f -exec ls -lt \{\} \+ | head | awk '{print $9}'
After the O/P, I get the below mentioned error and the command doesnt terminate at all.
find: ls terminated by signal 13
find: ls terminated by... (2 Replies)