How to use the atlite.datasets function in atlite

To help you get started, we’ve selected a few atlite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PyPSA / atlite / test / test_cutout_preparation.py View on Github external
def test_get_era5_data_in_sarah_module():
    period = pd.Period(time)
    influx = atlite.datasets.sarah.get_data_era5(ref.coords, period, 'influx',
                                                 tmpdir=tmp_dir, x=None, y=None, sarah_dir=None)
    influx = influx.compute()
    assert_allclose(influx.influx_toa, ref.data.influx_toa, atol=1e-5, rtol=1e-5)