Get right indicator search term. #2354
-
Hi team, i am seeking to find the right search term that i can be able to query for these two indicators. The data needs to match as the one on the grapher.
kindly help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @Rohianon, I am assuming that you are looking for the data itself? If so, use our python API. For that, you need the identifiers for both indicators, which are:
Then, you can use: from owid.catalog import RemoteCatalog
catalog = RemoteCatalog()
tb_1 = catalog.find(
namespace="emissions",
version="2023-11-23",
dataset="national_contributions",
table="national_contributions",
).load()
tb_n2o = tb_1[["annual_emissions_n2o_total_co2eq"]]
tb_2 = catalog.find(
namespace="gcp",
version="2023-12-12",
dataset="global_carbon_budget",
table="global_carbon_budget",
).load()
tb_co2 = tb_2[["emissions_total"]] This should load the indicators that you mention as two tables: Access table metadata: tb_co2.metadata Access indicator metadata: tb_co2["emissions_total"].metadata Note that the metadata renders nicely in Jupyter notebooks and can be converted into a dictionary: More on metadata here. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@Rohianon FYI, we are working to expose a new API so that you can get the relevant indicators for a given chart. More details here: #2629 |
Beta Was this translation helpful? Give feedback.
Hi @Rohianon,
Thanks for your interest in our project.
I am assuming that you are looking for the data itself?
If so, use our python API. For that, you need the identifiers for both indicators, which are:
emissions/2023-11-23/national_contributions/national_contributions#annual_emissions_n2o_total_co2eq
gcp/2023-12-12/global_carbon_budget/global_carbon_budget#emissions_total
Then, you can use: