IAMconsortium / concordia

Apache License 2.0
0 stars 3 forks source link

gridded files updates #5

Closed gidden closed 1 year ago

gidden commented 1 year ago

all

<gas>-em-anthro

<gas>-em-openburning

<gas>-openburning-share

<gas>-em-aircraft-anthro

<gas>-em-shipping-anthro

CO2-em-removal

cc: @coroa

coroa commented 1 year ago

translate year/month to datetime

In [34]: def convert_to_datetime(da):
...:     da = da.stack(time=("year", "month"))
...:     dates = pd.DatetimeIndex(da.indexes["time"].map(lambda t: date(t[0], t[1]+1, 1)))
...:     return da.drop_vars(["time", "year", "month"]).assign_coords(time=dates)
gidden commented 1 year ago

Closing in favor of more targeted issues of #10, #11, and #12