Exemple #1
0
def test_rcp26():
    value = (rcps.filter(variable="Emissions|CH4",
                         region="World",
                         year=1994,
                         scenario="RCP26").timeseries().values)

    assert len(value)
    np.testing.assert_allclose(value, 324.46375)
Exemple #2
0
def test_rcp85():
    value = (rcps.filter(variable="Emissions|N2O",
                         region="World",
                         year=2500,
                         scenario="RCP85").timeseries().values)

    assert len(value)
    np.testing.assert_allclose(value, 13.344)
Exemple #3
0
def test_rcp45():
    value = (rcps.filter(variable="Emissions|BC",
                         region="World",
                         year=1765,
                         scenario="RCP45").timeseries().values)

    assert len(value)
    np.testing.assert_allclose(value, 0)
Exemple #4
0
def test_rcp60():
    value = (rcps.filter(
        variable="Emissions|CO2|MAGICC Fossil and Industrial",
        region="World",
        year=2034,
        scenario="RCP60",
    ).timeseries().values)

    assert len(value)
    np.testing.assert_allclose(value, 10.61878)