Closed leifdenby closed 4 years ago
Looks OK to me, although I am no DAP expert - would love a comment from someone who is. Given that this is HTTP only, is it plausible to test directly?
Also, help appreciated with this likely unrelated error
File "/home/travis/build/intake/intake-xarray/intake_xarray/netcdf.py", line 57, in __init__
super(NetCDFSource, self).__init__(metadata=metadata, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'engine'
@martindurant / unrelated engine error: git bisect
says this one broke it.
... and the engine
refers to this location, however I did not validate if other tests fail if that line is commented out.
Yeah, it looks like it should be
xarray_kwargs:
engine: pynio
but why did this work before?
(perhaps all that happened, is that this entry was never tested, because the backend wasn't installed, and the change in Entry to instantiate the source object revealed the previous bug in the catalog)
I am pretty new to intake, so I can't really judge this. But I could not find a way how engine
would have made it to the xarray open_dataset
call before. By applying your change I'd understand how the parameter would make its way through.
@leifdenby , do you have time to implement the fix in this PR?
I'd propose to handle it in a separate PR #75 as this seems to be a separate issue.
OK, so this PR needs to merge from master
Haven't tried this branch (authentication is hard to test!) , but the new 'generic_http' auth method should be added to the docstring here:
@martindurant and @d70-t I can wait until a fix has been merged for the CI tests. Maybe that is best?
thanks @weiji14 I've updated the docstring
@leifdenby I think that @martindurant suggested that you would merge the current master (which already has the CI fix) into you branch. But maybe github was also clever enough to run the latest PR checks on what would be the result of merging this PR into master, which would essentially result in the same state of the working directory. Anyways, I think this PR should be fine for now.
intake-xarray currently can only authenticate against the OPeNDAP servers provided in https://github.com/pydap/pydap/tree/master/src/pydap/cas. This commit adds an
auth
option calledgeneric_http
for the OPeNDAP driver, following the directions at http://xarray.pydata.org/en/stable/io.html#opendap