Files
sicspsi/rebin.h
koennecke eb72d5c486 - Adapted indenation to new agreed upon system
- Fixed bad status in poldi zug driver
2009-02-13 09:01:03 +00:00

29 lines
807 B
C

/**
* This is a couple of functions to do rebinning. This is neeeded when
* you have a number of data points with random coordinates and you wish to
* get this back onto a regular grid for better handling.
*
* copyright: see file COPYRIGHT
*
* Mark Koennecke, May 2007
*/
#ifndef REBIN_H_
#define REBIN_H_
#include <nxdataset.h>
#define TRILINEAR 1
#define ROUND 2
/**
* rebin a point
* @param target The target dataset to rebin too
* @param x The x coordiante of the point
* @param y The y coordinate of the point
* @param value The value of the point
* @param method The method to use for interpolation
* @return 1 on success, 0 else
*/
int rebinPoint2D(pNXDS target, double x, double y, double value,
int method);
#endif /*REBIN_H_ */