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
dcmrecv with +ssd option
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: dcmrecv with +ssd option
Hi Dave,
this is from the dcmrecv documentation:
Best regards,
Michael
this is from the dcmrecv documentation:
I think there are no other options in dcmrecv so far to allow a different sub directory layout.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.
Best regards,
Michael
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: dcmrecv with +ssd option
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.
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.
Re: dcmrecv with +ssd option
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
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
Who is online
Users browsing this forum: Google [Bot] and 1 guest