intake / intake-xarray

Intake plugin for xarray
https://intake-xarray.readthedocs.io/
BSD 2-Clause "Simplified" License
74 stars 36 forks source link

What happened on xarray's document? #140

Closed forestbat closed 6 months ago

forestbat commented 6 months ago

https://intake.readthedocs.io/en/latest/plugin-directory.html Serveral months ago there are many drivers on this webpage and I can find driver which I need quickly. However the table which contains drivers disappeared now, and I can't run intake.open_textfiles or intake.open_json correctly. So what happened to intake and its drivers, documents?

martindurant commented 6 months ago

At the top of the current documentation https://intake.readthedocs.io/en/latest/ we describe how Intake Take2 is a major break with intake as it has been so far. You are welcome to pin to version<2, and we do aim for compatibility, but we are still ironing out details. The docs still contain all the V1 pages, but only if you navigate to them.

url = "prot://path/to/file.text"
data = intake.readers.datatypes.Text(url)
reader = intake.readers.readers.FileBytes(data)
reader.read()

... but there are various methods to figure out how best to represent and read your dataset, as well as many different readers for "text" (e.g., spark, ray, keras...) depending on your needs.

We are working hard to smothe all the kinks!

forestbat commented 6 months ago
url = "s3://datasets-interim/camels_cc/basin_mean_forcing/61239_lump_era5_land_forcing.txt"
data = itk.readers.datatypes.Text(url, storage_options=storage_option)
reader = itk.readers.readers.FileByteReader(data)
reader.read()

It's successful, thank for your reply.