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
I have two input cubes with a shared "Variable" dimension. In my understanding calling mapCube with both cubes should repeat over the "Variable" dimension of both cubes. This works in the second toy example but fails with an error message in the first one, even though
julia>getAxis("variable", c) ==getAxis("variable", c_stat)
true
I am not sure what is happening here.
using YAXArrays
using Zarr
c_path ="http://data.rsc4earth.de:9000/earthsystemdatacube/v3.0.2/esdc-8d-0.25deg-1x720x1440-3.0.2.zarr"
c_zarr = Zarr.zopen(c_path)
c_dataset = YAXArrays.open_dataset(c_zarr)
c_full = YAXArrays.Cube(c_dataset)
c = c_full[variable=["sensible_heat", "air_temperature_2m", "radiation_era5"]]
m2 =rand(3)
s2 =rand(3)
v_ax =getAxis("variable", c)
stat_ax =CategoricalAxis("statistic", ["mean", "std"])
c_stat =YAXArray([v_ax, stat_ax], [m2 s2])
c
getAxis("variable", c) ==getAxis("variable", c_stat)
mapCube(
(c, c_stat),
indims=(InDims(), InDims("statistic")),
outdims=OutDims()
) do xout, xin1, xin2
xout[1] = (xin1[1] - xin2[1]) / xin2[2]
end
I have two input cubes with a shared "Variable" dimension. In my understanding calling
mapCube
with both cubes should repeat over the "Variable" dimension of both cubes. This works in the second toy example but fails with an error message in the first one, even thoughI am not sure what is happening here.
Error Message
Am I doing something wrong? The following minimal example works:
Trying to use Debugger.jl crashes the Julia session really hard JuliaDebug/Debugger.jl#333
The text was updated successfully, but these errors were encountered: