dcmgpdir --version (return code: 0)
$dcmtk: dcmgpdir v3.6.2 2017-07-14 $
dcmgpdir: Create a general purpose DICOMDIR
Host type: Debian
Character encoding: US-ASCII
External libraries used:
- ZLIB, Version 1.2.11
dcmgpdir --help (return code: 0)
$dcmtk: dcmgpdir v3.6.2 2017-07-14 $
dcmgpdir: Create a general purpose DICOMDIR
usage: dcmgpdir [options] [dcmfile-in...]
parameters:
dcmfile-in ref. DICOM file (or directory to be scanned)
general options:
-h --help print this help text and exit
--version print version information and exit
--arguments print expanded command line arguments
-q --quiet quiet mode, print no warnings and errors
-v --verbose verbose mode, print processing details
-d --debug debug mode, print debug information
-ll --log-level [l]evel: string constant
(fatal, error, warn, info, debug, trace)
use level l for the logger
-lc --log-config [f]ilename: string
use config file f for the logger
input options:
DICOMDIR identifiers:
+F --fileset-id [i]d: string
use specific file-set ID
(default: DCMTK_MEDIA_DEMO, "" for none)
+R --descriptor [f]ilename: string
add a file-set descriptor file ID
(e.g. README, default: no descriptor)
+C --char-set [c]harset: string
add a specific character set for descriptor
(default: "ISO_IR 100" if descriptor present)
reading:
+id --input-directory [d]irectory: string
read referenced DICOM files from directory d
(default for --recurse: current directory)
-m --keep-filenames expect filenames to be in DICOM format (def.)
+m --map-filenames map to DICOM filenames (lowercase->uppercase,
and remove trailing period)
-r --no-recurse do not recurse within directories (default)
+r --recurse recurse within filesystem directories
+p --pattern [p]attern: string (only with --recurse)
pattern for filename matching (wildcards)
processing options:
consistency check:
-W --no-consistency-check do not check files for consistency
+W --warn-inconsist-files warn about inconsistent files (default)
-a --abort-inconsist-file abort on first inconsistent file
type 1 attributes:
-I --strict exit with error if DICOMDIR type 1 attributes
are missing in DICOM file (default)
+I --invent invent DICOMDIR type 1 attributes
if missing in DICOM file
+Ipi --invent-patient-id invent new PatientID in case of inconsistent
PatientName attributes
other checks:
+Nrs --allow-retired-sop allow retired SOP classes defined in previous
editions of the DICOM standard
-Nxc --no-xfer-check do not reject images with non-standard
transfer syntax (just warn)
output options:
DICOMDIR file:
+D --output-file [f]ilename: string
generate specific DICOMDIR file
(default: DICOMDIR in current directory)
writing:
-A --replace replace existing DICOMDIR (default)
+A --append append to existing DICOMDIR
+U --update update existing DICOMDIR
-w --discard do not write out DICOMDIR
backup:
--create-backup create a backup of existing DICOMDIR (def.)
-nb --no-backup do not create a backup of existing DICOMDIR
post-1993 value representations:
+u --enable-new-vr enable support for new VRs (UN/UT) (default)
-u --disable-new-vr disable support for new VRs, convert to OB
group length encoding:
-g --group-length-remove write without group length elements (default)
+g --group-length-create write with group length elements
length encoding in sequences and items:
+e --length-explicit write with explicit lengths (default)
-e --length-undefined write with undefined lengths