interpolate
Resample an XY curve onto evenly spaced X values using linear, spline, bspline, or akima interpolation. Specify the number of output points to control spacing.
Instructions
Resample an XY curve onto evenly spaced X values.
Args: num_points: number of output points across the X range method: linear, spline, bspline, or akima
Returns: JSON: output sheet plus the resampled X and Y
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data_book": "<data_book>",
"data_sheet": "<data_sheet>",
"x_col": "<x_col>",
"y_col": "<y_col>"
},
"name": "interpolate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_book | Yes | ||
| data_sheet | Yes | ||
| x_col | Yes | ||
| y_col | Yes | ||
| num_points | No | ||
| method | No | linear |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |