From d95265583de9cb22b019db2d681f27bf386757f4 Mon Sep 17 00:00:00 2001 From: rafaqz Date: Tue, 13 Aug 2024 22:15:08 +0200 Subject: [PATCH] add DiskArrays forwarding to Variable --- src/variables.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/variables.jl b/src/variables.jl index bdaf617..758da62 100644 --- a/src/variables.jl +++ b/src/variables.jl @@ -107,6 +107,11 @@ Base.parent(var::Variable) = var.values Base.size(var::Variable) = _size_dims(var.dims) Base.getindex(var::Variable, I...) = getindex(parent(var), I...) +DA.eachchunk(A::Variable) = DA.eachchunks(parent(A)) +DA.haschunks(A::Variable) = DA.haschunks(parent(A)) +DA.readblock!(A::Variable, aout, i::AbstractUnitRange...) = + DA.readblock!(parent(A), aout, i...) + ndims(::AbstractGRIBVariable{T,N}) where {T,N} = N varname(var::Variable) = var.name dims(var::Variable) = var.dims