Skip to content

Dream workflow: units are weird after Lorentz correction #239

@nvaytet

Description

@nvaytet

Computing CorrectedDetector[SampleRun] in the dream geant4 workflow from the docs yields data with a strange unit:

dim='event',
content=DataArray(
          dims=(event: 1533595),
          data=float64[1.00000000000000074e-40*m^4*counts],
          coords={'event_time_zero':datetime64[ns], 'tof':float64[ns], 'wavelength':float64[Å],
                  'dspacing':float64[Å]})

According to the docstring, the corrections is computed as $d^4 \sin\theta$ (https://github.com/scipp/essdiffraction/blob/main/src/ess/powder/correction.py#L358).
This is indeed what is written in the gsas book:
Image
This is weird because the other formulas listed in that document seem to be dimensionless?
But d^4 is obviously not dimensionless...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions