Skip to content

Question on interchange format data reading #84

Answered by rgieseke
rgieseke asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the quick reply, Mika! (Maybe you could enable "Discussions" on this repo, for questions like this.)

For the record the following works

df = pd.read_csv("rcmip-emissions-annual-means-v5-1-0.csv")
df = df.drop(["Activity_Id", "Mip_Era"], axis=1)
df["Entity"] = df.Unit.apply(lambda x: x.split(" ")[1].split("/")[0])

coords_cols = {
    "unit": "Unit",
    "area": "Region",
    "model": "Model",
    "scenario": "Scenario",
    "entity": "Entity",
    "category": "Variable"
}
coords_defaults = {
    "source": "RCMIP",
}
coords_terminologies = {
    "area": "RCMIP",
    "category": "RCMIP",
    "scenario": "RCMIP"
}
meta_data = {
    "references": "doi:10.5194/gmd-13-5175-2020",
    "…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

rgieseke
Nov 17, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by mikapfl
Comment options

You must be logged in to vote
0 replies
Comment options

rgieseke
Nov 17, 2021
Maintainer Author

You must be logged in to vote
0 replies
Comment options

rgieseke
Nov 17, 2021
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #82 on November 17, 2021 17:20.