diff --git a/albatross/atmos_ocean_data.py b/albatross/atmos_ocean_data.py index 8c9972d..4d6da6f 100755 --- a/albatross/atmos_ocean_data.py +++ b/albatross/atmos_ocean_data.py @@ -20,7 +20,8 @@ def openDAPsst(version = '3b', debug = False, anomalies = True, **kwargs): """ from albatross.utils import int_to_month from os.path import isfile - 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 @@ -82,7 +83,8 @@ def openDAPsst(version = '3b', debug = False, anomalies = True, **kwargs): LOGGER.info('Starting download...') LOGGER.info(SSTurl) - dataset = open_url(SSTurl) + # dataset = open_url(SSTurl) # Python 3.6 dependency + dataset = open_dataset(SSTurl) arg = 'anom' if anomalies else 'sst' sst = dataset[arg] diff --git a/environment.yml b/environment.yml index 48d4111..3fbca91 100644 --- a/environment.yml +++ b/environment.yml @@ -4,7 +4,7 @@ channels: - defaults dependencies: - pip -- python<=3.9 +- python>=3.10 - pywps>=4.5.2,<4.7 - jinja2 - click