Commit 88979fe5 authored by Volker Neff's avatar Volker Neff
Browse files

fix loadMissingData function

parent df3ade75
Pipeline #10888 passed with stages
in 2 minutes and 59 seconds
......@@ -99,14 +99,14 @@ end
export loadData!
function loadMissingData!(data::VariableMissingDataType{N}, var::Variable)::VariableMissingDataType where {N}
data[:, :, :] = 0.0
@. data[:, :, :] = 0.0
streamReadVar(var.streamID, var.varID, convert(Array{Float64}, reshape(data, :)))
replace!(data, x -> x == var.missValue ? missing : x)
return data
end
function loadMissingData!(data::VariableMissingDataType{1}, var::Variable)::VariableMissingDataType
data[:, :, :] = 0.0
@. data[:, :, :] = 0.0
streamReadVar(var.streamID, var.varID, convert(Array{Float64}, data))
replace!(data, x -> x == var.missValue ? missing : x)
return data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment