estimate_query_cost
Estimate credit cost and row count of a climate query by specifying spatial bounds, dates, and variables.
Instructions
Estimate the credit cost of a climate query before running it.
Use this before large queries (multi-year, large bounding box) to check the cost. Returns the number of credits that would be consumed and an estimated row count, without actually running the query.
Args: lat_min: Southern boundary latitude lat_max: Northern boundary latitude lon_min: Western boundary longitude lon_max: Eastern boundary longitude time_start: Start date, e.g. "2020-01" time_end: End date, e.g. "2024-12" variables: Comma-separated variable names
Returns: Estimated credit cost and row count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat_min | Yes | ||
| lat_max | Yes | ||
| lon_min | Yes | ||
| lon_max | Yes | ||
| time_start | Yes | ||
| time_end | Yes | ||
| variables | No | no2 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |