shermansiu
commited on
Commit
•
6da825f
1
Parent(s):
442442d
Update download instructions.
Browse files
README.md
CHANGED
@@ -67,6 +67,17 @@ with fs.open(files[0], "rb") as f:
|
|
67 |
example_batch = xarray.load_dataset(f).compute()
|
68 |
```
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
## Citation
|
71 |
- Paper: https://www.science.org/doi/10.1126/science.adi2336
|
72 |
- Preprint: https://arxiv.org/abs/2212.12794
|
|
|
67 |
example_batch = xarray.load_dataset(f).compute()
|
68 |
```
|
69 |
|
70 |
+
Alternatively, if you want a local copy, you can run this (downloaded files will not be re-downloaded unless instructed to otherwise):
|
71 |
+
|
72 |
+
```python
|
73 |
+
from huggingface_hub import hf_hub_download
|
74 |
+
|
75 |
+
local_file: str = hf_hub_download(repo_id="shermansiu/dm_graphcast_datasets", filename=f"dataset/{files[0]}", repo_type="dataset")
|
76 |
+
|
77 |
+
with open(local_file, "rb") as f:
|
78 |
+
example_batch = xarray.load_dataset(f).compute()
|
79 |
+
```
|
80 |
+
|
81 |
## Citation
|
82 |
- Paper: https://www.science.org/doi/10.1126/science.adi2336
|
83 |
- Preprint: https://arxiv.org/abs/2212.12794
|