java.lang.Object
uk.ac.diamond.scisoft.analysis.dataset.function.MapToQSpace
All Implemented Interfaces:
DatasetToDatasetFunction

public class MapToQSpace extends Object implements DatasetToDatasetFunction
Map a 2D dataset from image coordinates to 3D q-space q is the scattering wave-vector = difference of incident wave-vector and final wave-vector q-space is set up so each dimension has range [-qmax,qmax]
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapToQSpace(QSpace qSpace, double qDel, double maxModQ)
    Set up mapping to q-space This produces a grid that includes the q-space origin
    MapToQSpace(QSpace qSpace, int qSize)
    Set up mapping to q-space
    MapToQSpace(QSpace qSpace, int qSize, double maxModQ)
    Set up mapping to q-space
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.eclipse.january.dataset.Dataset>
    value(org.eclipse.january.dataset.IDataset... datasets)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MapToQSpace

      public MapToQSpace(QSpace qSpace, int qSize, double maxModQ)
      Set up mapping to q-space
      Parameters:
      qSpace - is q-space mapping
      qSize - is number of points in one dimension. It should be odd to include the origin
      maxModQ - is maximum value of |q|
    • MapToQSpace

      public MapToQSpace(QSpace qSpace, int qSize)
      Set up mapping to q-space
      Parameters:
      qSpace - is q-space mapping
      qSize - is number of points in one dimension
    • MapToQSpace

      public MapToQSpace(QSpace qSpace, double qDel, double maxModQ)
      Set up mapping to q-space This produces a grid that includes the q-space origin
      Parameters:
      qSpace - is q-space mapping
      qDel - is separation of points in q
      maxModQ - is maximum value of |q|
  • Method Details

    • value

      public List<org.eclipse.january.dataset.Dataset> value(org.eclipse.january.dataset.IDataset... datasets)
      Specified by:
      value in interface DatasetToDatasetFunction
      Parameters:
      datasets - input 2D dataset
      Returns:
      one 3D dataset