Class MapToPolar
java.lang.Object
uk.ac.diamond.scisoft.analysis.dataset.function.MapToPolar
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionMapToPolar(double x, double y, double sr, double sp, double er, double ep) Set up mapping of annular sector of 2D datasetMapToPolar(double x, double y, double sr, double sp, double er, double ep, boolean isDegrees) -
Method Summary
-
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 xy- centre ysr- start radiussp- start phi in degreeser- end radiusep- 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:
valuein interfaceDatasetToDatasetFunction- Parameters:
datasets- input 2D dataset- Returns:
- two 2D dataset where rows label radii and columns label azimuthal angles
-