From af2126f63c6b367de343972ad8980fe0b12a0e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=B6lling?= Date: Mon, 14 Sep 2020 11:55:13 +0200 Subject: [PATCH 1/2] opendap driver: use no authentication as default Apart from historic reasons, using ESGF as the default authentication method does not seem to be a straight forward choice. Changing the default to no authentication most likely is the more user friendly alternative. Apart from that and following #57, the default if no authentication method is given should be anonymous access, but currently this fall back does not work (see also #74). --- intake_xarray/opendap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intake_xarray/opendap.py b/intake_xarray/opendap.py index ccb26d8..2ef6945 100644 --- a/intake_xarray/opendap.py +++ b/intake_xarray/opendap.py @@ -38,7 +38,7 @@ class OpenDapSource(DataSourceMixin): """ name = 'opendap' - def __init__(self, urlpath, chunks, auth="esgf", xarray_kwargs=None, metadata=None, + def __init__(self, urlpath, chunks, auth=None, xarray_kwargs=None, metadata=None, **kwargs): self.urlpath = urlpath self.chunks = chunks From 248ccbdf763b55e855d34a008be0f541644ce495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=B6lling?= Date: Mon, 14 Sep 2020 15:03:35 +0200 Subject: [PATCH 2/2] opendap driver: document that None is default auth --- intake_xarray/opendap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intake_xarray/opendap.py b/intake_xarray/opendap.py index 2ef6945..2a40709 100644 --- a/intake_xarray/opendap.py +++ b/intake_xarray/opendap.py @@ -29,7 +29,8 @@ class OpenDapSource(DataSourceMixin): auth: None, "esgf" or "urs" Method of authenticating to the OPeNDAP server. Choose from one of the following: - 'esgf' - [Default] Earth System Grid Federation. + None - [Default] Anonymous access. + 'esgf' - Earth System Grid Federation. 'urs' - NASA Earthdata Login, also known as URS. 'generic_http' - OPeNDAP servers which support plain HTTP authentication None - No authentication.