-x1 (starting x coordinate for line), is now -wc1 -x2 (ending x coordinate for line), is now -wc2 -y1 (starting y coordinate for line), is now -hc1 -y2 (ending y coordinate for line), is now -hc1the values may be be slightly different because vsamp used bilinear interpolation whereas ksampline uses inverse-distance weighting interpolation (which is mush easier to extend to 5D and mask'd data).
Given an image of arbitrary size and a line through that image, sample the image along the line. The sampling interval is independent of image size and line orientation. The value at each sample point is obtained by bilinear interpolation.
The first sample point is precisely at the starting point and the final sample is precisely at the ending point.
vsamp -i diffract.xv -o line_data.xv -x1 0 -y1 0 -x2 0 -y2 0 -n 400Will sample the image diffract.xv to obtain a one dimensional data array in line_data.xv. The line goes from the top left corner to the bottom right. 400 evenly spaced samples will be obtained via bilinear interpolation.