create_cross_section
Generate a geological cross-section along a straight line through a grid, combining a location map with a profile for subsurface interpretation.
Instructions
Create a geological cross-section along a straight line through a grid.
The plot combines a location map (with the section line) and a profile below it.
Args: grid_file: Input .grd grid. start_x: Section start X in map units. start_y: Section start Y in map units. end_x: Section end X in map units. end_y: Section end Y in map units. title: Section title, e.g. "A-A'". style: Map style behind the section: "color", "lines" or "filled". vertical_exaggeration: Vertical scale factor (1.0 = true scale). x_label: Horizontal axis label. y_label: Vertical axis label. output_image: Optional export path (png, jpg, pdf, tif, svg, emf). save_plot: Optional .srf plot path. save_profile_data: Optional tab-delimited .dat path for the sampled profile values.
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": {
"grid_file": "<grid_file>",
"start_x": "<start_x>",
"start_y": "<start_y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "create_cross_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_x | Yes | ||
| end_y | Yes | ||
| style | No | color | |
| title | No | Cross-section | |
| start_x | Yes | ||
| start_y | Yes | ||
| x_label | No | Distance (m) | |
| y_label | No | Elevation (m) | |
| grid_file | Yes | ||
| save_plot | No | ||
| output_image | No | ||
| save_profile_data | No | ||
| vertical_exaggeration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |