Spaces:
Sleeping
Sleeping
File size: 1,211 Bytes
8e17be6 0eb1fe4 8e17be6 0eb1fe4 8e17be6 0eb1fe4 8e17be6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | import pandas as pd
import xarray as xr
import arviz as az
from data.traces import build_trace_library_production
dataFolder = './data/datasets/'
# ------------------------------------------------------------
# Load Atmospheric Concentration calculated from AGAGE
# ------------------------------------------------------------
observations_file = 'AGAGE2024_AnnMean.parquet'
atmosConc = pd.read_parquet(f"{dataFolder}{observations_file}")
gases = atmosConc.columns.values
# ------------------------------------------------------------
# Load Lifetimes data
# ------------------------------------------------------------
lt_file = 'mean_lifetimes.parquet'
lifeTimes = pd.read_parquet(f"{dataFolder}{lt_file}")
# ------------------------------------------------------------
# Reported Production data
# ------------------------------------------------------------
trace_library_prod = build_trace_library_production()
prod = {}
for c in gases:
gn = c.replace("-","")
file = f"{dataFolder}production_{c}.parquet"
prod[c] = pd.read_parquet(file).loc[1956:2023]
prod[c].attrs['title'] = 'Reported & Estimted Production'
prod[c].attrs['units'] = 'Gg'
prod[c].attrs['long_name'] = 'Production'
|