ioos / ioos/ioos_code_lab

Issue on page /content/code_gallery/data_access_notebooks/2022-11-25-plan_surf_trip_EDS.html

Open
#282 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
16
Forks
15
Avg merge
1h 39m
Merged PRs (30d)
6

Description

re-run for Hurricane Erin data!

I'm trying in colab but keep running into this error:

Getting data from http://tds.ioos.us/thredds/dodsC/ioos/gfswave/atlocn/Best
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<timed exec> in <module>

[/usr/local/lib/python3.11/dist-packages/xarray/backends/api.py](https://localhost:8080/#) in open_dataset(filename_or_obj, engine, chunks, cache, decode_cf, mask_and_scale, decode_times, decode_timedelta, use_cftime, concat_characters, decode_coords, drop_variables, create_default_indexes, inline_array, chunked_array_type, from_array_kwargs, backend_kwargs, **kwargs)
    694 
    695     if engine is None:
--> 696         engine = plugins.guess_engine(filename_or_obj)
    697 
    698     if from_array_kwargs is None:

[/usr/local/lib/python3.11/dist-packages/xarray/backends/plugins.py](https://localhost:8080/#) in guess_engine(store_spec)
    192         )
    193 
--> 194     raise ValueError(error_msg)
    195 
    196 

ValueError: found the following matches with the input file in xarray's IO backends: ['netcdf4', 'pydap']. But their dependencies may not be installed, see:
https://docs.xarray.dev/en/stable/user-guide/io.html 
https://docs.xarray.dev/en/stable/getting-started-guide/installing.html

I added

%pip install netcdf4 pydap h5netcdf

but that still doesn't fix it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open content/code_gallery/data_access_notebooks/2022-11-25-plan_surf_trip_EDS.html and rerun the data-loading cell in Colab with the listed package-install step. Compare the xarray backend error with the notebook's expected Hurricane Erin workflow; done means the notebook can load the referenced GFS wave dataset and continue.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.