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

public class MapToPolar extends Object implements DatasetToDatasetFunction
Map a 2D dataset from Cartesian to Polar coordinates and return that remapped dataset and an unclipped unit version (for clipping compensation) Cartesian coordinate system is x from left to right and y from top to bottom on the display so corresponding polar coordinate is radius from centre and azimuthal angle clockwise from positive x axis
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapToPolar(double x, double y, double sr, double sp, double er, double ep)
    Set up mapping of annular sector of 2D dataset
    MapToPolar(double x, double y, double sr, double sp, double er, double ep, boolean isDegrees)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.eclipse.january.dataset.Dataset>
    value(org.eclipse.january.dataset.IDataset... datasets)
    The class implements mapping of a Cartesian grid sampled data (pixels) to polar grid

    Methods inherited from class java.lang.Object

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

    • MapToPolar

      public MapToPolar(double x, double y, double sr, double sp, double er, double ep)
      Set up mapping of annular sector of 2D dataset
      Parameters:
      x - centre x
      y - centre y
      sr - start radius
      sp - start phi in degrees
      er - end radius
      ep - end phi in degrees
    • MapToPolar

      public MapToPolar(double x, double y, double sr, double sp, double er, double ep, boolean isDegrees)
      Parameters:
      x -
      y -
      sr -
      sp -
      er -
      ep -
      isDegrees -
  • Method Details

    • value

      public List<org.eclipse.january.dataset.Dataset> value(org.eclipse.january.dataset.IDataset... datasets)
      The class implements mapping of a Cartesian grid sampled data (pixels) to polar grid
      Specified by:
      value in interface DatasetToDatasetFunction
      Parameters:
      datasets - input 2D dataset
      Returns:
      two 2D dataset where rows label radii and columns label azimuthal angles