Card: stream the field by URL from the public bucket
Browse files
README.md
CHANGED
|
@@ -43,6 +43,22 @@ print("normal", round(a, 3), round(b, 3), round(float(np.sqrt(max(0.0, 1 - a * a
|
|
| 43 |
|
| 44 |
`load_example.py` is a runnable version of this snippet; it was run on the real parts before upload.
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
## What it is
|
| 47 |
|
| 48 |
- Scan: PHerc0841, `20250821151531-9.366um-1.2m-113keV-masked.zarr`, level 0, Vesuvius Challenge open data (9.366 um)
|
|
|
|
| 43 |
|
| 44 |
`load_example.py` is a runnable version of this snippet; it was run on the real parts before upload.
|
| 45 |
|
| 46 |
+
## Stream it, no download
|
| 47 |
+
|
| 48 |
+
The same field, unpacked, is in the public bucket
|
| 49 |
+
[SharpMeow/lasagna-fields](https://huggingface.co/buckets/SharpMeow/lasagna-fields) under `PHerc0841/representations/predictions/lasagna/20250821151531-lasagna-de45f011/`, so any zarr reader
|
| 50 |
+
can open it by URL:
|
| 51 |
+
|
| 52 |
+
```python
|
| 53 |
+
import zarr # zarr 3, with fsspec and aiohttp
|
| 54 |
+
|
| 55 |
+
base = "https://huggingface.co/buckets/SharpMeow/lasagna-fields/resolve/PHerc0841/representations/predictions/lasagna/20250821151531-lasagna-de45f011"
|
| 56 |
+
cos = zarr.open_array(base + "/PHerc0841_cos.ome.zarr/1", mode="r", zarr_format=2)
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
Region downloads, a Neuroglancer link and the methods for all ten fields are on the
|
| 60 |
+
[Lasagna Fields](https://huggingface.co/spaces/SharpMeow/lasagna-fields) page.
|
| 61 |
+
|
| 62 |
## What it is
|
| 63 |
|
| 64 |
- Scan: PHerc0841, `20250821151531-9.366um-1.2m-113keV-masked.zarr`, level 0, Vesuvius Challenge open data (9.366 um)
|