I'm trying to write a script that anonymized a directory and overwrites said directory with the anonymized version. My code is:
#!/usr/local/bin/bash
DicomRemap -d fake_anon.das -o /space/jazz/1/users/gwarner/002 /space/jazz/1/users/gwarner/002
The error I'm getting is:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7
at org.nrg.dcm.io.NewRootFileExporter.join(NewRootFileExporter.java:98)
at org.nrg.dcm.io.NewRootFileExporter.join(NewRootFileExporter.java:112)
at org.nrg.dcm.io.NewRootFileExporter.relativePath(NewRootFileExporter.java:128)
at org.nrg.dcm.io.NewRootFileExporter.<init>(NewRootFileExporter.java:63)
at org.nrg.dcm.edit.CSVRemapper.apply(CSVRemapper.java:349)
at org.nrg.dcm.edit.CSVRemapper.main(CSVRemapper.java:484)
I'm running CentOS and DIcomBrowser-1.5.2. The code is being executed from a .sh file in a bash environment by
fake_anon.das reads:
When I open the /002 in DicomBrowser's GUI I can confirm that (0008,0005) has not been deleted. Can anyone see the problem is here?