Skip to content

Should TOF time values be shifted on GUI export; document TOF values usage in scripting #251

@briantoby

Description

@briantoby

If one simulates a pattern and then reads that pattern back in, the x values are shifted w/r to where the peaks are computed. This seems to be due to this: TOF values are reported at the edge of the bin, but in GSAS-II the intensity is computed at the mid-point for the bin, so x-values used internally are for the bin midpoints (at least I think this is correct). See Note #249.

This creates a confusing situation where GSAS-II reads in TOF bin edge values but exports TOF midpoint values. This means that a shift is needed to be applied to read in exported x positions. I’m wondering if histogram exports should be shifted so that imports and exports are consistent?

  • We probably should not provide any shift (or perhaps make the shift as an option for G2PwdrData.getdata, what is going on needs to be documented there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeededGSAS-II InadequaciesORNLBug or need identified/requested by ORNL user/staffenhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions