sample_profile
[Site data] Values of one dataset along the shorter great circle between two points, evenly spaced, with the distance of each sample from the start in kilometers on a sphere of radius sphere_radius_m, the registry radius each answer gives; on Earth geodetic latitudes are treated as spherical, within about 0.4%. Up to 256 samples (64 when not given), each the value of the tile cell under it, null where the dataset has none. Latitudes are planetocentric on every body but Earth, where they are geodetic (WGS84); longitudes are degrees east, -360 to 360 accepted, answered from -180 to 180. Values are in the dataset unit each answer names (meters above the height reference for a height dataset). A class layer's value is a class index; its names are in the answer's dataset.classes. One call reads at most 24 tiles, so a wide request is read at a coarser level and the answer says which level and cell size it used. The largest answer is about 14,000 characters, under the 30,000 characters a connector result is cut at. Each answer carries the source, license and citation: repeat them with any value you use.
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": {
"dataset": "<dataset>",
"from_lat": "<from_lat>",
"from_lon": "<from_lon>",
"to_lat": "<to_lat>",
"to_lon": "<to_lon>"
},
"name": "sample_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | The tile level to read at exactly; the call is refused when that needs more tiles than one call reads. Omit it for the finest level that fits. | |
| to_lat | Yes | Latitude of the end, degrees. Planetocentric (geodetic on Earth). | |
| to_lon | Yes | East longitude of the end, degrees. | |
| dataset | Yes | A dataset id as data_catalog lists it, for example mars.height. | |
| samples | No | How many samples, ends included. | |
| from_lat | Yes | Latitude of the start, degrees. Planetocentric (geodetic on Earth). | |
| from_lon | Yes | East longitude of the start, degrees. |