Esempio n. 1
0
# %% [markdown]
# To add coordinates, on way is to set them one by one:

# %%
d3D.t = (
    Coord.arange(6) * 0.1
)  # we need a sequence of 6 values for `t` dimension (see shape above)
d3D.t.title = "time"
d3D.t.units = ur.seconds
d3D.coordset  # now return a list of coordinates

# %%
d3D.t

# %%
d3D.coordset("t")  # Alternative way to get a given coordinates

# %%
d3D["t"]  # another alternative way to get a given coordinates

# %% [markdown]
# The two other coordinates u and v are still undefined

# %%
d3D.u, d3D.v

# %% [markdown]
# When the dataset is printed, only the information for the existing coordinates is given.

# %%
d3D
Esempio n. 2
0
d3D.t  # the same for coordinate  t, v, u which are not yet set

# %% [markdown]
# To add coordinates, on way is to set them one by one:

# %%
d3D.t = Coord.arange(6) * .1  # we need a sequence of 6 values for `t` dimension (see shape above)
d3D.t.title = 'time'
d3D.t.units = ur.seconds
d3D.coordset  # now return a list of coordinates

# %%
d3D.t

# %%
d3D.coordset('t')  # Alternative way to get a given coordinates

# %%
d3D['t']  # another alternative way to get a given coordinates

# %% [markdown]
# The two other coordinates u and v are still undefined

# %%
d3D.u, d3D.v

# %% [markdown]
# When the dataset is printed, only the information for the existing coordinates is given.

# %%
d3D