region_stats
[Site data] Statistics of one dataset over a latitude and longitude box (west to east, across the antimeridian when west is greater than east) or a cap around a point: cell count, area, minimum, maximum, mean, standard deviation and percentiles, each cell weighted by its area, with an optional histogram and the area fraction above given thresholds. A class layer answers the area share of each class instead. Areas are 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%. 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). 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 5,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>"
},
"name": "region_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| east | No | Box: eastern edge, degrees east. | |
| west | No | Box: 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 | No | Box: northern edge, degrees. Planetocentric (geodetic on Earth). | |
| south | No | Box: southern edge, degrees. Planetocentric (geodetic on Earth). | |
| dataset | Yes | A dataset id as data_catalog lists it, for example mars.height. | |
| center_lat | No | Cap: latitude of the center, degrees. Planetocentric (geodetic on Earth). | |
| center_lon | No | Cap: east longitude of the center, degrees. | |
| radius_deg | No | Cap: radius as an angle at the body's center, degrees. | |
| thresholds | No | Values to report the area fraction above. | |
| histogram_bins | No | Equal-width bins from the minimum to the maximum; 0 or absent for none. |