-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow keyword argument in get(asobj=True)
#191
Comments
I suggest we discuss how to do this cleanly. The first option is simply to call Another option is to deprecate
and would be able to inspect We could also leave Thoughts, other ideas ? |
@cehbrecht Are you using this |
I've got something that would let you do: >>> wps = WPSClient("http://localhost:5000")
>>> resp = wps.ncml()
>>> [d1, d2, ncml] = resp.load() # Returns augmented owslib.wps.Output object that have a load method.
>>> ds = d1.load(decode_times=False)
>>> help(d1.load)
Help on function open_dataset in module xarray.backends.api:
open_dataset(filename_or_obj, group=None, decode_cf=True, mask_and_scale=None, decode_times=True, autoclose=None, concat_characters=True, decode_coords=True, engine=None, chunks=None, lock=None, cache=None, drop_variables=None, backend_kwargs=None, use_cftime=None, decode_timedelta=None)
Open and decode a dataset from a file or file-like object.
Parameters
----------
filename_or_obj : str, Path, file-like or DataStore
Strings and Path objects are interpreted as a pat One issue is that there is no nesting. If you load a metalink or zip, we cannot attach a load method to their content, at least not without doing some horrible coding. |
|
I would also be in favor of using adapted methods for outputs. To be on the save side we could deprecate the existing |
the |
@huard If you choose a new method we need to decide for a new method name, excluding The |
Description
Some converters could accept keyword arguments. For example, some xarray datasets should be opened with
decode_timedelta=False
, which at the moment is not possible usingget
.Environment
The text was updated successfully, but these errors were encountered: