16 Using LC_NUMERIC set to something not compatible with "C" it is possible to write out "," instead of
17 "." as required by the DICOM standard
18 Issue is still current (IMHO) with gdcm 2.0.9
24 filename = sys.argv[1]
29 r.SetFileName( filename )
35 dataset = file.GetDataSet()
49 if dataset.FindDataElement( tag ):
50 pixelspacing = dataset.GetDataElement( tag )
52 bv = pixelspacing.GetByteValue()
56 new_str = str.replace(
",",
".")
58 ano.Replace( tag, new_str, bv.GetLength() )
64 w.SetFileName( outname )
71 image_reader.SetFileName( outname )
72 if not image_reader.Read():
73 print "there is still a comma"