Compute correlation between two layers
correlate_layersRead-onlyIdempotent
Spatially join two existing workspace layers and return the Pearson correlation coefficient r, sample size n, two-sided p-value approximation, plus human-readable strength and direction labels. Pure read — no layer is added, no op is committed, no credit charge. Returns numbers only; add_fusion_layer renders the same join as a map layer. Required: map_id, layer_a_id, layer_b_id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_id | Yes | ||
| rationale | No | Optional short label (≤300 chars) for the map edit history, e.g. "add wildfire layer". Omit it to send nothing beyond the tool arguments. | |
| layer_a_id | Yes | ||
| layer_b_id | Yes | ||
| value_field_a | No | ||
| value_field_b | No |