You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importxarrayasxrimportnumpyasnp# Create coordinate arraysx=np.arange(0, 10, 1) # 10 points along Xy=np.arange(0, 5, 1) # 5 points along Y# Create some example 2D data (here we'll use a simple grid pattern)data=np.random.rand(len(y), len(x)) # 5x10 grid of random values# Create the datasetds=xr.Dataset(
data_vars={
'DATA': (['Y', 'X/var'], data) # Define data with dimensions
},
coords={
'X/var': x,
'Y': y
}
)
# Print the dataset to see its structureprint(ds)
ds.to_zarr("test.zarr")
Sample program of the behavior MDIO should follow.
Updating hello_mdio with variable X updated to have the name X/var generates the .zmetadata file under dir X.
The text was updated successfully, but these errors were encountered:
Sample program of the behavior MDIO should follow.
Updating
hello_mdio
with variableX
updated to have the nameX/var
generates the.zmetadata
file under dirX
.The text was updated successfully, but these errors were encountered: