[Tobyfit-tickets] [TOBYFIT] #101: Bug in reading energy grid of Horace SPE files
Tobyfit
tobyfit-trac at svr2.nd.rl.ac.uk
Fri Jun 18 12:05:32 BST 2010
#101: Bug in reading energy grid of Horace SPE files
--------------------------+-------------------------------------------------
Reporter: Ronald Fowler | Owner: Ronald Fowler
Type: defect | Status: new
Priority: major | Keywords:
--------------------------+-------------------------------------------------
Russell has some Horace generated SPE files which have energy grid values
written in a format that is incorrectly read by the Fortran of Tobyfit.
Tobyfit expects data in the format (8g10.4) which is a flexible format
and, as long as the floating point number includes a decimal point and
lies within the correct 10 characters, this will read most values OK.
However if the number does not include a decimal point then the Fortran
standard requires a strange interpretation which leads to values such as "
8 " mapping to e.g. 8E-4, depending on the number of spaces either side of
the digit.
This can be corrected by using free format reading, assuming that at least
one space always exists between vales in the energy grid data.
Note that the Phi grid data is replaced with different values to those on
input, I presume that these are not used in post-processing.
--
Ticket URL: <http://trac.isis.rl.ac.uk/Tobyfit/ticket/101>
Tobyfit <http://tobyfit.isis.rl.ac.uk/>
Tobyfit
More information about the Tobyfit-tickets
mailing list