Skip to content

Commit

Permalink
excluding xarray
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshempelmann committed Jun 19, 2024
1 parent 027e4cf commit 4ad8639
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions albatross/atmos_ocean_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit 4ad8639

Please sign in to comment.