From 4ad86391d4493f249f278c6a0de0950a8b690727 Mon Sep 17 00:00:00 2001 From: Nils Hempelmann Date: Wed, 19 Jun 2024 17:35:07 +0200 Subject: [PATCH] excluding xarray --- albatross/atmos_ocean_data.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/albatross/atmos_ocean_data.py b/albatross/atmos_ocean_data.py index 4d6da6f..269327c 100755 --- a/albatross/atmos_ocean_data.py +++ b/albatross/atmos_ocean_data.py @@ -20,8 +20,8 @@ def openDAPsst(version = '3b', debug = False, anomalies = True, **kwargs): """ from albatross.utils import int_to_month from os.path import isfile - from xarray import open_dataset -# from pydap.client import open_url + # from xarray import open_dataset + from pydap.client import open_url from numpy import arange from numpy import squeeze import pickle @@ -83,8 +83,8 @@ def openDAPsst(version = '3b', debug = False, anomalies = True, **kwargs): LOGGER.info('Starting download...') LOGGER.info(SSTurl) - # dataset = open_url(SSTurl) # Python 3.6 dependency - dataset = open_dataset(SSTurl) + dataset = open_url(SSTurl) # Python 3.6 dependency + # dataset = open_dataset(SSTurl) arg = 'anom' if anomalies else 'sst' sst = dataset[arg]