sample_grid
[Site data] One dataset resampled to a small grid over a latitude and longitude box: rows from north to south, columns from west to east (across the antimeridian when west is greater than east), each cell the value of the tile cell under its center, read at the level whose cells are closest to the grid spacing, null where the dataset has none. Up to 64 rows and 64 columns and 1600 cells in all, which keeps the largest answer near 22,000 characters, under the 30,000 characters a connector result is cut at. 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. 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>",
"south": "<south>",
"north": "<north>",
"west": "<west>",
"east": "<east>",
"rows": "<rows>",
"cols": "<cols>"
},
"name": "sample_grid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | Yes | Columns, west to east. | |
| east | Yes | Eastern edge, degrees east. | |
| rows | Yes | Rows, north to south. | |
| west | Yes | Western edge, degrees east. | |
| 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. | |
| north | Yes | Northern edge, degrees. Planetocentric (geodetic on Earth). | |
| south | Yes | Southern edge, degrees. Planetocentric (geodetic on Earth). | |
| dataset | Yes | A dataset id as data_catalog lists it, for example mars.height. |