dcmrecv with +ssd option

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
dave
Posts: 67
Joined: Fri, 2004-11-05, 18:20
Location: Houston, Texas, USA

dcmrecv with +ssd option

#1 Post by dave »

What tag is the +ssd option using to name a subfolder?

I am receiving Leksell GammaPlan files and dcmrecv is creating a subfolder (under the main folder identified by the -od flag) named "undef" and then within that, a folder with today's date formatted as YYYYMMDD.

I am trying to have more granularity for grouping plan files as the same plan files may be exported more than once.

Thanks much for a great toolkit.

Dave

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: dcmrecv with +ssd option

#2 Post by Michael Onken »

Hi Dave,

this is from the dcmrecv documentation:
The option --series-date-subdir allows for generating subdirectories (below the specified output
directory) based on the value of the data element Series Date (0008,0021) from the received DICOM dataset.
If this value could be retrieved from the dataset and is valid (i.e. consists of a valid DICOM date
field), the subdirectory structure is as follows:

<output-directory>/data/<year>/<month>/<day>/<filename>

If the Series Date (0008,0021) cannot be retrieved or is invalid, the current system date is used for the
following subdirectory structure:

<output-directory>/undef/<year><month><day>/<filename>

In both cases, <year> consists of 4 decimal digits and <month> as well as <day> of 2 decimal digits.
I think there are no other options in dcmrecv so far to allow a different sub directory layout.

Best regards,
Michael

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: dcmrecv with +ssd option

#3 Post by J. Riesmeier »

As Michael correctly cited, the +ssd (--series-date-subdir) option uses the Series Date... which should also be obvious from the name of the option ;-)

This option (and, also the entire tool) has been implemented for one of my customers. If you need further options for generating subdirectories you are free to implement them (and submit a patch to us, if you like) or to ask someone doing this for you.

dave
Posts: 67
Joined: Fri, 2004-11-05, 18:20
Location: Houston, Texas, USA

Re: dcmrecv with +ssd option

#4 Post by dave »

Ah.

I was checking just the output from dcmrecv -h:

> output options:
> general:
> -od --output-directory [d]irectory: string (default: ".")
> write received objects to existing directory d
> subdirectory generation:
> -s --no-subdir do not generate any subdirectories (default)
> +ssd --series-date-subdir generate subdirectories from series date
...

I forgot to check the online docs. For others, it's all spelled out very clearly here: https://support.dcmtk.org/docs/dcmrecv.html

Thank you both.

Dave

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest