samsung2@samsung2:~$ julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |
| | |_| | | | (_| | | Version 0.3.3 (2014-10-21 20:18 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org release
|__/ | i686-linux-gnu
julia> using HDF5
julia> hfi=h5open("F_big.h5","w");close(hfi)
julia> k,l=8,8 ;
julia> fid = h5open("F_big.h5","r+")
HDF5 data file: F_big.h5
julia> fid["mygroup/A"]=rand(2)#niepotrzebny
2-element Array{Float64,1}:
0.318459
0.258055
julia> g = fid["mygroup"]
HDF5 group: /mygroup (file: F_big.h5)
julia> dset = d_create(g, "F", datatype(Float64), dataspace(10^k,1*10^l))
HDF5 dataset: /mygroup/F (file: F_big.h5)
julia> h5read("F_big.h5","mygroup/F",(:,1))
100000000x1 Array{Float64,2}:
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
⋮
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
julia> close(fid)
julia> hfi=h5open("F_big.h5","w");close(hfi)
julia> k,l=9,8 ;
julia> fid = h5open("F_big.h5","r+")
HDF5 data file: F_big.h5
julia> fid["mygroup/A"]=rand(2)#niepotrzebny
2-element Array{Float64,1}:
0.129214
0.4785
julia> g = fid["mygroup"]
HDF5 group: /mygroup (file: F_big.h5)
julia> dset = d_create(g, "F", datatype(Float64), dataspace(10^k,1*10^l))
HDF5 dataset: /mygroup/F (file: F_big.h5)
julia> h5read("F_big.h5","mygroup/F",(:,1))
ERROR: invalid Array size
in Array at base.jl:223
in _getindex at /home/samsung2/.julia/v0.3/HDF5/src/plain.jl:1557
in getindex at /home/samsung2/.julia/v0.3/HDF5/src/plain.jl:1550
in getindex at /home/samsung2/.julia/v0.3/HDF5/src/plain.jl:1620
in h5read at /home/samsung2/.julia/v0.3/HDF5/src/plain.jl:602
julia> close(fid)
julia> h5read("F_big.h5","mygroup/F",(1:2,:))
2x100000000 Array{Float64,2}:
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 … 0.0 0.0 0.0 0.0 0.0 0.0
0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0
julia> h5read("F_big.h5","mygroup/F",(:,1))
ERROR: invalid Array size
in Array at base.jl:223
in _getindex at /home/samsung2/.julia/v0.3/HDF5/src/plain.jl:1557
in getindex at /home/samsung2/.julia/v0.3/HDF5/src/plain.jl:1550
in getindex at /home/samsung2/.julia/v0.3/HDF5/src/plain.jl:1620
in h5read at /home/samsung2/.julia/v0.3/HDF5/src/plain.jl:602
julia>
Paul