-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #444 from rordenlab/development
version 2-November-2020 (v1.0.20201102)
- Loading branch information
Showing
21 changed files
with
1,548 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## About | ||
|
||
dcm2niix will return an exit status to allow scripts to determine if a conversion was successful. Following Unix convention, the value value 0 is used for [EXIT_SUCCESS](https://www.gnu.org/software/libc/manual/html_node/Exit-Status.html). In contrast, any non-zero result suggests an error. In the Unix terminal and with shell scripts, the variable `$?` reports the most recent exit status. Here is an example of a successful conversion: | ||
|
||
``` | ||
>dcm2niix ~/dcm | ||
Chris Rorden's dcm2niiX version v1.0.20200331 Clang11.0.0 (64-bit MacOS) | ||
Found 2 DICOM file(s) | ||
Convert 2 DICOM as ~/dcm/dcm_ax_asc_6 (64x64x35x2) | ||
Conversion required 0.015866 seconds (0.012676 for core code). | ||
>echo $? | ||
0 | ||
``` | ||
|
||
Below is a list of possible return values from running dcm2niix. | ||
|
||
| Exit Status | Meaning | | ||
| ----------- | ----------------------------------------------------------- | | ||
| 0 | Success | | ||
| 1 | Unspecified error (see console output for details) | | ||
| 2 | No DICOM images found in input folder | | ||
| 3 | Exit from report version (result of `dcm2niix -v`) | | ||
| 4 | Corrupt DICOM file (Irrecoverable error during conversion) | | ||
| 5 | Input folder invalid | | ||
| 6 | Output folder invalid | | ||
| 7 | Unable to write to output folder (check file permissions) | | ||
| 8 | Converted some but not all of the input DICOMs | | ||
| 9 | Unable to rename files (result of `dcm2niix -r y ~/in`) | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.