From 7165a339122458d0afdc676a0b02bad4c2e0c53c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Tue, 10 Oct 2023 17:33:10 +0200 Subject: [PATCH] Add download air_temperature data beforehand --- scripts/download_data.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/download_data.sh b/scripts/download_data.sh index 8ccafe80..b6ad08ed 100755 --- a/scripts/download_data.sh +++ b/scripts/download_data.sh @@ -16,3 +16,14 @@ else: gds.get_path('geoda airbnb') gds.get_path('nybb') " + +python -c " +try: + import pooch + import scipy + import xarray as xr +except ImportError: + pass +else: + xr.tutorial.open_dataset("air_temperature") +"