Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to rename the output file (e.g. 202_.nii.gz) #141

Open
angolin22 opened this issue Apr 11, 2024 · 1 comment
Open

How to rename the output file (e.g. 202_.nii.gz) #141

angolin22 opened this issue Apr 11, 2024 · 1 comment
Assignees

Comments

@angolin22
Copy link

Hello,
thanks for your work, I want to ask that how to rename the output file (e.g. 202_.nii.gz)

@abrys
Copy link
Collaborator

abrys commented Apr 12, 2024

Could you please provide a little more information no how you are using dicom2nifti.
If it is being used from a script or the command line utility?

When used from the command line or from a script using the convert_directory function the naming is automatic as there can be multiple series within one directory.
Naming is than handles as followed
SeriesNumber_SeriesDescription.nii.gz, SeriesNumber_SequenceName.nii.gz, SeriesNumber_ProtocolName.nii.gz or SeriesNumber.nii.gz

The generated name points to a series with series number 202 and SeriesDescription, SequenceName or ProtocolName present but empty.

Choosing a name during conversion would only be possible if you convert from a python script using dicom_series_to_nifti which allows for an output file to be specified

@abrys abrys self-assigned this Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants