Goodearth Crop Suitability
goodearth_crop_suitabilityWhich crops finish on this ground, and with how much room to spare.
"What can I grow?" is not a lookup. Two farms in the same county, one on a bench and one in a hollow, have different answers — so this measures the block's own frost-free window and the heat it accumulates inside it, then judges each crop's requirement against that.
The answer that matters is not yes or no but MARGIN: how much season is left after the crop is done, in the days a grower plans in. A crop that finishes on the last warm day of an average year fails in half of them.
Requirements are yours. Published degree-day figures vary by cultivar and maturity group; Good Earth computes against your ground rather than publishing agronomy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| npub | No | Required. Your Nostr public key (npub1...) for credit billing. | |
| block | Yes | The ground to answer for: a block you have saved — its id, its name, one of its aliases, or any part of its name that only one block has (e.g. "Meadow" for "Lower Meadow"). If several match, the error lists them with their ids. Blocks may overlap; each answers for its own ground. Save one with block_save first; geometry travels once, not on every call. | |
| crops | Yes | The crops to judge, with your own requirements. Each is {"crop": "Field corn", "gdd_target": 2600, "base_temp": 50} with optional "frost_hardy", "category" and "emoji". | |
| dpop_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||