calculate_hotspots¶
Identify the upstream processes driving the most environmental impact for an Ecoinvent activity.
Purpose¶
Runs a hotspot analysis on a standard Ecoinvent activity and returns a ranked list of the background processes contributing most to total impact. Use this after calculate_standard to understand where the impact comes from, not just how large it is.
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
activity_code |
string | Yes | Activity code from search_activities |
method_specification |
string | Yes | Full impact method specification |
database |
string | Yes | Database version (e.g., "ecoinvent-3.12-cutoff") |
top_n |
integer | No | Number of top hotspots to return (default: 10) |
Method Specification Format¶
Must be exact — use search_methods or validate_method first.
Returns¶
A task ID — poll with get_task_status to retrieve results. The result contains:
hotspots: Ranked list of upstream processes contributing to impactactivity_name,activity_code,locationabsolute_score: Contribution in impact unitsfraction: Fraction of total impact (0–1)classification: ISIC categoryecoquery_url: Direct link to the activity in EcoQuerytotal_score: Total impact of the functional unitunit: Impact unit (e.g.,kg CO2-eq)
Example Usage¶
Prompt: What are the top hotspots for steel production using IPCC 2021 GWP100?
Workflow:
1. search_activities("steel production") → activity_code
2. calculate_hotspots(activity_code, method_specification, database) → task_id
3. get_task_status(task_id) → poll until COMPLETED
4. Interpret ranked hotspot list
Tips¶
- Use alongside
calculate_standardto get both total impact and contribution breakdown in one session - Results are visualized as a Sankey diagram in the Live Workspace
- Increasing
top_nbeyond 20 rarely adds meaningful insight for most activities
Related Tools¶
- calculate_standard — Total impact calculation for the same activity
- calculate_hotspots_custom — Hotspot analysis for custom project activities
- get_task_status — Retrieve hotspot results
- search_activities — Find activity codes
- search_methods — Find impact methods