Open grzanka opened 4 years ago
Yes, I had similar thoughts.
plotdata
as the txt
group. But any header information should still be prefixed with #
, this is widely understood, e.g. by numpy and xmgrace.txt
, text
and dat
could be used synonymously.--number-style
and --include-constant-axis
is OK but not very important, imho.What I find really important, however is,:
-nx=int
, -ny=int
or -nz=int
to be able to extract a single slice from a 3D cube.-x=float
, -y=float
or -z=float
to be able to extract a single slice from a 3D cube at that position.
if out of bounds, throw error, also saying the available range.What would be nice:
One more note: DDD converter needs --projectile and --energy However, I think both are available from the .bdo file. Would be very nice to get rid of these in pymchelper. Related: https://github.com/pytrip/TRiPbase/issues/13
One more note: DDD converter needs --projectile and --energy However, I think both are available from the .bdo file. Would be very nice to get rid of these in pymchelper. Related: pytrip/TRiPbase#13
Issue #366
Right now following converters are available:
I would like to discuss naming and funcionality of some of them. The oldest one, namely
txt
is an equivalent of the old bdo2txt converter and is producing exactly the same output (using Fortran-like formatting), i.e:Another useful converter is
plotdata
which for the same output is producing following output:To summarize:
txt
is always generating 5 columns (Fortran-style, fixed-with): X,Y,Z + data + error.plotdata
is generating only columns for which number of bins is > 1. Errors (i.e. stderr from merging of multiple binary files) are included only in case they have been calculated.What I have in mind is to:
plotdata
andtxt
converter into single one, called i.e.txt
txt
converter and make it an option (like--number-style
with possible values:variable
orfixed
or specifing number of digits to be printed)--include-constant-axis
@nbassler Do you have some ideas ?