pwd
'/Users/ud4/repos/GitHub/FATESFACE'
from IPython.display import Image, display
display(Image(filename='/Users/ud4/Downloads/PIDs.png',width=800))
display(Image(filename='/Users/ud4/Downloads/BiomassVsPIDs.png',width=800))
print ("Source : Knox 2023 (under review; https://d197for5662m48.cloudfront.net/documents/publicationstatus/129549/preprint_pdf/4892791c8be5504aff47afd6065937b7.pdf)")
Source : Knox 2023 (under review; https://d197for5662m48.cloudfront.net/documents/publicationstatus/129549/preprint_pdf/4892791c8be5504aff47afd6065937b7.pdf)
import os,glob
import xarray as xr
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pyreadr # to read .rds files
path_in = "/Users/ud4/FATESMDS_analysis/outputs/runs/tests_alp/230309/"
# RD only
fnames={}
fnames["DUK_PIDA_Conly"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDA_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDA_US-DUK_trans.nc"
fnames["ORN_PIDA_Conly"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDA_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDA_US-ORN_trans.nc"
fnames["DUK_PIDA_RD"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDA_RD_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDA_RD_US-DUK_trans.nc"
fnames["ORN_PIDA_RD"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDA_RD_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDA_RD_US-ORN_trans.nc"
#fnames["DUK_PIDB_RD"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDB_RD_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDB_RD_US-DUK_trans.nc"
fnames["ORN_PIDB_RD"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDB_RD_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDB_RD_US-ORN_trans.nc"
#"ORN_PIDC_RD" : Simulation missing *Running
fnames["DUK_PIDC_RD"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDC_RD_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDC_RD_US-DUK_trans.nc"
fnames["ORN_PIDC_RD"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDC_RD_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDC_RD_US-DUK_trans.nc"
fnames["DUK_PIDD_RD"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDD_RD_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDD_RD_US-DUK_trans.nc"
fnames["ORN_PIDD_RD"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDD_RD_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDD_RD_US-ORN_trans.nc"
fnames["DUK_PIDzero_RD"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDzero_RD_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDzero_RD_US-ORN_trans.nc"
fnames["ORN_PIDzero_RD"] = f"{path_in}Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDzero_RD_processed/Bharat_AW_Nalloc_api25e3sm_mf0df100_r0616_Base_PIDzero_RD_US-ORN_trans.nc"
# Other global attributes for plots
logging_year= 1855
ds = {}
for idx, key in enumerate(fnames.keys()):
print (key)
ds[key] = xr.open_mfdataset(fnames[key],decode_times=True)
DUK_PIDA_Conly ORN_PIDA_Conly DUK_PIDA_RD ORN_PIDA_RD ORN_PIDB_RD DUK_PIDC_RD ORN_PIDC_RD DUK_PIDD_RD ORN_PIDD_RD DUK_PIDzero_RD ORN_PIDzero_RD
for idx, key in enumerate(ds.keys()):
ds[key]['time'] = pd.to_datetime(ds[key].time.values.astype(str))
start = "1855-01-01"
end = "1885-01-01"
var = "BTRAN"
for idx, key in enumerate(ds.keys()):
ds[key][var].plot(figsize=(20,3))
plt.title(f"{var} {key} (DAILY)")
plt.axvspan(start,end,alpha = .2, color = 'red')
var = "BTRAN"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3))
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,1.1)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'transpiration beta factor'
len(ds.keys())
11
Increased BTRAN shown increase water stress during after the logging event which hinder NPP growth, especially in the case of ECA and RD. For Carbon only simulations BTRAN recovered quickly. What could cause BTRAN to be so low in N-active model?
ds[key][var].groupby("time.year").mean('time')
<xarray.DataArray 'BTRAN' (year: 148, lndgrid: 1)> dask.array<stack, shape=(148, 1), dtype=float32, chunksize=(1, 1), chunktype=numpy.ndarray> Coordinates: * year (year) int64 1850 1851 1852 1853 1854 ... 1993 1994 1995 1996 1997 Dimensions without coordinates: lndgrid
|
array([1850, 1851, 1852, 1853, 1854, 1855, 1856, 1857, 1858, 1859, 1860, 1861, 1862, 1863, 1864, 1865, 1866, 1867, 1868, 1869, 1870, 1871, 1872, 1873, 1874, 1875, 1876, 1877, 1878, 1879, 1880, 1881, 1882, 1883, 1884, 1885, 1886, 1887, 1888, 1889, 1890, 1891, 1892, 1893, 1894, 1895, 1896, 1897, 1898, 1899, 1900, 1901, 1902, 1903, 1904, 1905, 1906, 1907, 1908, 1909, 1910, 1911, 1912, 1913, 1914, 1915, 1916, 1917, 1918, 1919, 1920, 1921, 1922, 1923, 1924, 1925, 1926, 1927, 1928, 1929, 1930, 1931, 1932, 1933, 1934, 1935, 1936, 1937, 1938, 1939, 1940, 1941, 1942, 1943, 1944, 1945, 1946, 1947, 1948, 1949, 1950, 1951, 1952, 1953, 1954, 1955, 1956, 1957, 1958, 1959, 1960, 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997])
start = "1855-12-01"
end = "2000-01-01"
var = "ACTUAL_IMMOB"
for idx, key in enumerate(ds.keys()):
ds[key][var].plot(figsize=(20,3))
plt.title(f"{var} {key} (DAILY)")
plt.axvspan(start,end,alpha = .2, color = 'red')
#ACTUAL_IMMOB
var = "ACTUAL_IMMOB"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3))
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,1.5e-6)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
# Increase in Immobilization of
'actual N immobilization'
Increased ACTUAL_IMMOB shows less nutrient available for plants in ECA model.
#ACTUAL_IMMOB
var = "ACTUAL_IMMOB_P"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3))
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,4.4e-8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'actual P immobilization'
var = "ADSORBTION_P"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3))
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'adsorb P flux'
var = "CMASS_BALANCE_ERROR"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3))
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(.6e-6,1.5e-6)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'Gridcell carbon mass balance error'
var = "DENIT"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(.6e-6,1.5e-6)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total rate of denitrification'
var = "DESORPTION_P"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3))
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(.6e-6,1.5e-6)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'desorp P flux'
var = "ELAI"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(.6e-6,1.5e-6)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'exposed one-sided leaf area index'
var = "ESAI"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(.6e-6,1.5e-6)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'exposed one-sided stem area index'
var = "FATES_AREA_PLANTS"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(.6e-6,1.5e-6)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'area occupied by all plants per m2 land area'
var = "FATES_AREA_TREES"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,1.1)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'area occupied by woody plants per m2 land area'
var = "FATES_AUTORESP"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(.6e-6,1.5e-6)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'autotrophic respiration in kg carbon per m2 per second'
var = "FATES_AUTORESP_CANOPY"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(.6e-6,1.5e-6)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'autotrophic respiration of canopy plants in kg carbon per m2 per second'
var = "FATES_AUTORESP_USTORY"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(.6e-6,1.5e-6)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'autotrophic respiration of understory plants in kg carbon per m2 per second'
var = "FATES_CROOTMAINTAR"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,6e-9)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'live coarse root maintenance autotrophic respiration in kg carbon per m2 per second'
var = "FATES_CROOT_ALLOC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,6e-9)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'allocation to coarse roots in kg carbon per m2 per second'
var = "FATES_DISTURBANCE_RATE_LOGGING"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,1)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'disturbance rate from logging'
var = "FATES_EXCESS_RESP"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,6e-9)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'respiration of un-allocatable carbon gain'
var = "FATES_DROUGHT_STATUS"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: NA")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
#plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,6e-9)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'site-level drought status, <2 too dry for leaves, >=2 not too dry'
var = "FATES_FROOTMAINTAR"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,1.5e-9)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'fine root maintenance autotrophic respiration in kg carbon per m2 per second'
var = "FATES_FROOT_ALLOC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,5e-9)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'allocation to fine roots in kg carbon per m2 per second'
var = "FATES_GDD"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 30, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,60)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'site-level growing degree days'
var = "FATES_GPP"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,7e-8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'gross primary production in kg carbon per m2 per second'
var = "FATES_HARVEST_CARBON_FLUX"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,7e-8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'harvest carbon flux in kg carbon per m2 per year'
var = "FATES_HET_RESP"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,2.8e-8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
# Remarks: Does this tells us that the microbes in soil live and flurish after logging (ECA). Slowly decline in aCO2 and eCO2. due to less litter?
'heterotrophic respiration in kg carbon per m2 per second'
var = "FATES_LBLAYER_COND"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,2.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'mean leaf boundary layer conductance'
var = "FATES_LEAF_ALLOC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,4e-9)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'allocation to leaves in kg carbon per m2 per second'
var = "FATES_LITTER_IN"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,5e-7)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'litter flux in kg carbon per m2 per second'
var = "FATES_LITTER_OUT"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,1e-7)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'litter flux out in kg carbon (exudation, fragmentation, seed decay)'
var = "FATES_NEP"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(-2.5e-8,4e-8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'net ecosystem production in kg carbon per m2 per second'
var = "FATES_NPP"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,5e-8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'net primary production in kg carbon per m2 per second'
var = "FATES_STEM_ALLOC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,2.8e-8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'allocation to stem in kg carbon per m2 per second'
var = "FATES_STOMATAL_COND"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.04)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'mean stomatal conductance'
var = "FCEV"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,8.5)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'canopy evaporation'
var = "FCOV"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,8.5)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'fractional impermeable area'
var = "FGEV"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,60)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
# Remarks: High EVAP maybe causing water stress.
'ground evaporation'
var = "FH2OSFC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,.008)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'fraction of ground covered by surface water'
var = "FSH_G"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(-6,30)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'sensible heat from ground'
var = "F_DENIT"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(-6,30)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'denitrification flux'
var = "F_N2O_DENIT"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(-6,30)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'denitrification N2O flux'
var = "F_NIT"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(-6,30)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'nitrification flux'
var = "GROSS_NMIN"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(-6,30)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'gross rate of N mineralization'
var = "H2OCAN"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,.1)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'intercepted water'
var = "HR"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total heterotrophic respiration'
var = "LITHR"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'litter heterotrophic respiration'
var = "NET_NMIN"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'net rate of N mineralization'
var = "NET_PMIN"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'net rate of P mineralization'
var = "PLANT_NDEMAND_COL"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
# Remarks:
'N flux required to support initial GPP'
var = "PLANT_PDEMAND_COL"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks: P recovers while N is limited in ECA.
'P flux required to support initial GPP'
var = "POTENTIAL_IMMOB"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,5e-4)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'potential N immobilization'
var = "POTENTIAL_IMMOB_P"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'potential P immobilization'
var = "POT_F_DENIT"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'potential denitrification flux'
var = "POT_F_NIT"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'potential nitrification flux'
var = "QDRAI_PERCH"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'perched wt drainage'
var = "QINFL"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 2e-5, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,3.5e-5)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'infiltration'
var = "SMINN"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'soil mineral N'
var = "SMINN_TO_PLANT"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'plant uptake of soil mineral N'
var = "SMINP"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'soil mineral P'
var = "TLAI"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total projected leaf area index'
var = "TOTCOLC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
#plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total column carbon, incl veg and cpool but excl product pools'
var = "TOTECOSYSC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total ecosystem carbon, incl veg but excl cpool but excl product pools'
var = "TOTECOSYSN"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total ecosystem N but excl product pools'
var = "TOTECOSYSP"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total ecosystem P but excl product pools'
var = "TOTLITC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total litter carbon'
var = "TOTLITN"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total litter N'
var = "TOTLITP"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total litter P'
var = "TSAI"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,.8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total projected stem area index'
The biomass components that remain close to zero for logging under ECA are:
Non-Zero are:
Zero after logging (C and ECA):
var = "FATES_CANOPY_VEGC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,27)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'biomass of canopy plants in kg carbon per m2 land area'
var = "FATES_DEMOTION_CARBONFLUX"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,2.7e-8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'demotion-associated biomass carbon flux from canopy to understory in kg carbon per m2 per second'
var = "FATES_FROOTC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,.22)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total biomass in live plant fine roots in kg carbon per m2'
var = "FATES_LEAFC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,.2)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total biomass in live plant leaves in kg carbon per m2'
var = "FATES_MORTALITY_CFLUX_CANOPY"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,1.3e-8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'flux of biomass carbon from live to dead pools from mortality of canopy plants in kg carbon per m2 per second'
var = "FATES_MORTALITY_CFLUX_USTORY"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,1.4e-8)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'flux of biomass carbon from live to dead pools from mortality of understory plants in kg carbon per m2 per second'
var = "FATES_NONSTRUCTC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,10)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'non-structural biomass (sapwood + leaf + fineroot) in kg carbon per m2'
var = "FATES_PROMOTION_CARBONFLUX"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,10)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'promotion-associated biomass carbon flux from understory to canopy in kg carbon per m2 per second'
var = "FATES_REPROC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,10)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total biomass in live plant reproductive tissues in kg carbon per m2'
var = "FATES_SAPWOODC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,10)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total biomass in live plant sapwood in kg carbon per m2'
var = "FATES_STOREC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,2)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total biomass in live plant storage in kg carbon per m2 land area'
var = "FATES_STRUCTC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,28)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'structural biomass in kg carbon per m2 land area'
var = "FATES_USTORY_VEGC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,28)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'biomass of understory plants in kg carbon per m2 land area'
var = "FATES_VEGC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'total biomass in live plants in kg carbon per m2 land area'
var = "FATES_VEGC_ABOVEGROUND"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'aboveground biomass in kg carbon per m2 land area'
var = "LITTERC"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'litter C'
var = "LITHR"
for idx, key in enumerate(ds.keys()):
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
# Remarks:
'litter heterotrophic respiration'
var = "FATES_LITTER_AG_FINE_EL"
#ds[key][var][:,0].plot()
ds[key][var][:,1].plot()
#ds[key][var][:,2].plot()
[<matplotlib.lines.Line2D at 0x17bbd8310>]
var = "FATES_LITTER_AG_FINE_EL"
for idx, key in enumerate(ds.keys()):
for Fi in range (len(ds[key][var].fates_levelem)):
ds[key][var][:,Fi].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units} | {(ds[key][var][:,Fi].fates_levelem.values)}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
/Users/ud4/opt/anaconda3/envs/pyces/lib/python3.9/site-packages/xarray/plot/utils.py:429: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). _, ax = plt.subplots(figsize=figsize)
'mass of aboveground litter in fines (leaves, nonviable seed) by element'
var = "FATES_LITTER_AG_CWD_EL"
for idx, key in enumerate(ds.keys()):
for Fi in range (len(ds[key][var].fates_levelem)):
ds[key][var][:,Fi].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units} | {(ds[key][var][:,Fi].fates_levelem.values)}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
/Users/ud4/opt/anaconda3/envs/pyces/lib/python3.9/site-packages/xarray/plot/utils.py:429: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). _, ax = plt.subplots(figsize=figsize)
'mass of aboveground litter in coarse woody debris (trunks/branches/twigs) by element'
var = "FATES_LITTER_BG_FINE_EL"
for idx, key in enumerate(ds.keys()):
for Fi in range (len(ds[key][var].fates_levelem)):
ds[key][var][:,Fi].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units} | {(ds[key][var][:,Fi].fates_levelem.values)}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
/Users/ud4/opt/anaconda3/envs/pyces/lib/python3.9/site-packages/xarray/plot/utils.py:429: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). _, ax = plt.subplots(figsize=figsize)
'mass of belowground litter in fines (fineroots) by element'
var = "FATES_LITTER_BG_CWD_EL"
for idx, key in enumerate(ds.keys()):
for Fi in range (len(ds[key][var].fates_levelem)):
ds[key][var][:,Fi].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units} | {(ds[key][var][:,Fi].fates_levelem.values)}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
/Users/ud4/opt/anaconda3/envs/pyces/lib/python3.9/site-packages/xarray/plot/utils.py:429: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). _, ax = plt.subplots(figsize=figsize)
'mass of belowground litter in coarse woody debris (coarse roots) by element'
var = "FATES_LITTER_IN_EL"
for idx, key in enumerate(ds.keys()):
for Fi in range (len(ds[key][var].fates_levelem)):
ds[key][var][:,Fi].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units} | {(ds[key][var][:,Fi].fates_levelem.values)}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
/Users/ud4/opt/anaconda3/envs/pyces/lib/python3.9/site-packages/xarray/plot/utils.py:429: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). _, ax = plt.subplots(figsize=figsize)
'litter flux in in kg element per m2 per second'
var = "FATES_LITTER_OUT_EL"
for idx, key in enumerate(ds.keys()):
for Fi in range (len(ds[key][var].fates_levelem)):
ds[key][var][:,Fi].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units} | {(ds[key][var][:,Fi].fates_levelem.values)}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
/Users/ud4/opt/anaconda3/envs/pyces/lib/python3.9/site-packages/xarray/plot/utils.py:429: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). _, ax = plt.subplots(figsize=figsize)
'litter flux out (exudation, fragmentation and seed decay) in kg element'
var = "LITR1C_vr"
for idx, key in enumerate(ds.keys()):
for Fi in range (len(ds[key][var].levdcmp)):
ds[key][var][:,Fi].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units} | {(ds[key][var][:,Fi].levdcmp.values)}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
ds[key][var].long_name
/Users/ud4/opt/anaconda3/envs/pyces/lib/python3.9/site-packages/xarray/plot/utils.py:429: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). _, ax = plt.subplots(figsize=figsize)
'LITR1 C (vertically resolved)'
ds[key][var]
<xarray.DataArray 'LITR1C_vr' (time: 54020, levdcmp: 15, lndgrid: 1)> dask.array<open_dataset-8e18e7adabec0373b3c7fb59ffb5c454LITR1C_vr, shape=(54020, 15, 1), dtype=float32, chunksize=(54020, 15, 1), chunktype=numpy.ndarray> Coordinates: * time (time) datetime64[ns] 1850-01-01 1850-01-02 ... 1997-12-31 * levdcmp (levdcmp) float64 0.007101 0.02792 0.06226 ... 12.93 21.33 35.18 Dimensions without coordinates: lndgrid Attributes: units: gC/m^3 long_name: LITR1 C (vertically resolved)
|
array(['1850-01-01T00:00:00.000000000', '1850-01-02T00:00:00.000000000', '1850-01-03T00:00:00.000000000', ..., '1997-12-29T00:00:00.000000000', '1997-12-30T00:00:00.000000000', '1997-12-31T00:00:00.000000000'], dtype='datetime64[ns]')
array([7.100635e-03, 2.792500e-02, 6.225858e-02, 1.188651e-01, 2.121934e-01, 3.660658e-01, 6.197585e-01, 1.038027e+00, 1.727635e+00, 2.864607e+00, 4.739157e+00, 7.829766e+00, 1.292532e+01, 2.132647e+01, 3.517762e+01])
ds[key][var].levdcmp
<xarray.DataArray 'levdcmp' (levdcmp: 15)> array([7.100635e-03, 2.792500e-02, 6.225858e-02, 1.188651e-01, 2.121934e-01, 3.660658e-01, 6.197585e-01, 1.038027e+00, 1.727635e+00, 2.864607e+00, 4.739157e+00, 7.829766e+00, 1.292532e+01, 2.132647e+01, 3.517762e+01]) Coordinates: * levdcmp (levdcmp) float64 0.007101 0.02792 0.06226 ... 12.93 21.33 35.18 Attributes: units: m
array([7.100635e-03, 2.792500e-02, 6.225858e-02, 1.188651e-01, 2.121934e-01, 3.660658e-01, 6.197585e-01, 1.038027e+00, 1.727635e+00, 2.864607e+00, 4.739157e+00, 7.829766e+00, 1.292532e+01, 2.132647e+01, 3.517762e+01])
array([7.100635e-03, 2.792500e-02, 6.225858e-02, 1.188651e-01, 2.121934e-01, 3.660658e-01, 6.197585e-01, 1.038027e+00, 1.727635e+00, 2.864607e+00, 4.739157e+00, 7.829766e+00, 1.292532e+01, 2.132647e+01, 3.517762e+01])
#print(ds[key][var][:,Fi].fates_levelem.values)
var = "FATES_NO3UPTAKE"#"FATES_NH4UPTAKE"
for idx, key in enumerate(ds.keys()):
try:
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
except:
pass
ds[key][var].long_name
# Remarks:
'nitrate uptake rate by plants in kg NO3 per m2 per second'
var = "FATES_NH4UPTAKE"
for idx, key in enumerate(ds.keys()):
try:
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
except:
pass
ds[key][var].long_name
'ammonium uptake rate by plants in kg NH4 per m2 per second'
var = "FATES_PUPTAKE"
for idx, key in enumerate(ds.keys()):
try:
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
except:
pass
ds[key][var].long_name
'mineralized phosphorus uptake rate of plants in kg P per m2 per second'
var = "FATES_STOREC_TF"
for idx, key in enumerate(ds.keys()):
try:
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
except:
pass
ds[key][var].long_name
'Storage C fraction of target'
var = "FATES_STOREN_TF"
for idx, key in enumerate(ds.keys()):
try:
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
except:
pass
ds[key][var].long_name
'storage N fraction of target'
var = "FATES_STOREP_TF"
for idx, key in enumerate(ds.keys()):
try:
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
except:
pass
ds[key][var].long_name
'storage P fraction of target'
var = "FATES_L2FR"
for idx, key in enumerate(ds.keys()):
try:
ds[key][var].groupby("time.year").mean('time').plot(figsize=(20,3),marker='+')
plt.title(f"{ds[key][var].long_name} ({var}) - {key} - AnnualSUM | Units: {ds[key][var].units}")
plt.axvline(x = logging_year, color = 'r',lw=5, label = 'logging year', alpha=.2)
plt.axhline(y = 0, color = 'r',lw=2, label = 'Zero', alpha=.2)
plt.axvline(x = 1996, color = 'g',lw=5, label = 'logging year', alpha=.2)
plt.xlim(1850,2010)
#plt.ylim(0,35)
if idx != len(ds.keys())-1 :
plt.xticks([])
plt.xlabel(None)
except:
pass
ds[key][var].long_name
'The leaf to fineroot biomass multiplier for target allometry'
print ("Successful run")
Successful run