Platform
Solutions
Resources
Pricing
Sign in
Sign up
Trevor Manz
phd student, middle child
Workspace
Fork
Public
By
Trevor Manz
Edited
May 14, 2024
6 forks
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
view
=
{
// Create a store
const
store
=
new
zarr
.
FetchStore
(
url
)
;
// Open a zarr.Array
const
arr
=
await
zarr
.
open
(
store
,
{
kind
:
"array"
}
)
;
// {
// store: FetchStore,
// path: "/",
// dtype: "uint8",
// shape: [512, 512, 3],
// chunks: [100, 100, 1],
// }
// load a region of the array
const
channelIndex
=
[
"red"
,
"green"
,
"blue"
]
.
indexOf
(
radios
)
;
const
view
=
await
zarr
.
get
(
arr
,
[
null
,
null
,
channelIndex
]
)
;
// {
// data: Uint8Array,
// shape: [512, 512],
// stride: [512, 1],
// }
return
view
;
}
Insert cell
zarr
=
import
(
"https://cdn.jsdelivr.net/npm/zarrita@next/+esm"
)
Insert cell
{
const
date
=
new
Date
(
)
;
}
Insert cell
Insert cell
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
radios
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
view
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
zarr
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
url
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
draw
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML