pytrip.utils.gd2dat module¶
Reads .gd files and can convert them into (xmgrace readable) ascii data.
Can be used in the command line
Mandatory arguments: Name Type Default Description filename STRING “” File name of .gd file, should be first.
Optional arguments: Name Type Default Description exp STRING “exp” if “exp”: Export data of .gd into a .dat file agr STRING “” if “agr”: Export data of .gd into a .agr file LET STRING “LET” if “LET”: Export also data entitled “DoseLET”
Example: 1) reading the file foo.gd and exporting it as ascii file foo.dat python gd2dat.py foo.gd
2) reading the file foo.gd and exporting it as xmgrace file foo.agr python gd2dat.py foo.gd agr