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
In order to make a minimal working example, I have to create a DimGroupByArray object. In order to create this type of object, which is the result of grouping a Raster, I first create a Raster and afterwards, I group it:
using Rasters, DimensionalData, Dates
tempo = range(DateTime(2000); step=Hour(1), length=365*24*2)
DateTime("2000-01-01T00:00:00"):Hour(1):DateTime("2001-12-30T23:00:00")
A = rand(X(1:0.01:2), Ti(tempo))
A is a Raster object. Now, I create the DimGroupByArray object:
groups = groupby(A, Ti => month)
There is no problem with this, and we can see in the output, that the elements are DimArray objects:
julia> groups = groupby(A, Ti => month)
╭───────────────────────────────────────────────────╮
│ 12-element DimGroupByArray{DimArray{Float64,1},1} │
├───────────────────────────────────────────────────┴───────────── dims ┐
↓ Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points
├───────────────────────────────────────────────────────────── metadata ┤
Dict{Symbol, Any} with 1 entry:
:groupby => :Ti=>month
├─────────────────────────────────────────────────────────── group dims ┤
↓ X, → Ti
└───────────────────────────────────────────────────────────────────────┘
1 101×1488 DimArray
2 101×1368 DimArray
⋮
11 101×1440 DimArray
12 101×1464 DimArray
In order to make a minimal working example, I have to create a DimGroupByArray object. In order to create this type of object, which is the result of grouping a Raster, I first create a Raster and afterwards, I group it:
A is a Raster object. Now, I create the DimGroupByArray object:
There is no problem with this, and we can see in the output, that the elements are DimArray objects:
But if we make the elements to be Rasters:
But, What about the printing of a Raster whose elements are Rasters too?:
So, the same error occurs.
The text was updated successfully, but these errors were encountered: