Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-07 Thread paul analyst
_ _ _(_)_ | 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) _/ |\__'_|_|_|\__'_| |

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-07 Thread Paul Analyst
one vector 10^9 it is about 16 GB, Paul W dniu 2015-01-07 o 13:13, Tim Holy pisze: Did you try calculating how much memory the right hand side of that assignment requires? (Remember that sizeof(Float64) == 8). --Tim On Wednesday, January 07, 2015 03:25:54 AM paul analyst wrote: _ _

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-07 Thread Tim Holy
On Wednesday, January 07, 2015 01:42:24 PM Paul Analyst wrote: one vector 10^9 it is about 16 GB, ...and that explains it. (Compare against your RAM size.) --Tim Paul W dniu 2015-01-07 o 13:13, Tim Holy pisze: Did you try calculating how much memory the right hand side of that

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-07 Thread Tim Holy
Did you try calculating how much memory the right hand side of that assignment requires? (Remember that sizeof(Float64) == 8). --Tim On Wednesday, January 07, 2015 03:25:54 AM paul analyst wrote: _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)|

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-06 Thread paul analyst
2.if sum k and l 9 Julia cant work. Is it to big size for hdf5 or for system (Win7 64 Home Premium) ? Not sure. It works for me (Kubuntu Linux 14.04). I checked on Ubuntu : If sum of k or/and l is more then 7 I have problem with reading vectors (cols) samsung2@samsung2:~$ julia

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-05 Thread Tim Holy
On Monday, January 05, 2015 03:17:12 PM Paul Analyst wrote: Thx, Tim, I have solution but is 2 questions: 1. Whay must be line: /fid[mygroup/A]=rand(2)/ ? That line just means 'create a variable called A inside a group called mygroup, and assign it a value of rand(2)'. If you don't need that

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-05 Thread Tim Holy
On Monday, January 05, 2015 09:52:28 PM Paul Analyst wrote: dset = d_create( F, datatype(Float64), dataspace(10,10))/ You're missing the `fid`. You have to tell it where (which file, or which group) you want to create that dataset. --Tim

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-05 Thread Paul Analyst
Tim , thx for hints, but do not work without this line #fid[mygroup/A]=rand(2) becouse I vave not g , and nothing to declare in this line /dset = d_create(g, F, datatype(Float64), dataspace(10,10))/ / dset = d_create( F, datatype(Float64), dataspace(10,10))/ do not work ... Paul using

[julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-04 Thread paul analyst
How to overwrite to an existing file, only range of data? In HDF5 can do this? I have an array of zeros 10 x 10 I need an existing file owerwrite range rand (5x5), for example. Existingfile [2: 7.3: 8] Paul

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-04 Thread Tim Holy
If I understand correctly, then yes, that's possible. See the HDF5 docs. --Tim On Sunday, January 04, 2015 04:25:13 AM paul analyst wrote: How to overwrite to an existing file, only range of data? In HDF5 can do this? I have an array of zeros 10 x 10 I need an existing file owerwrite range

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-04 Thread paul analyst
Of course, first I read :) Is there about reading range array. I need to save a range of In analogy to. A = reshape (1: 120, 15, 8) h5write (/ tmp / test2.h5, mygroup2 / A, A) data = h5read (/ tmp / test2.h5, mygroup2 / A (2: 3: 15: 3: 5)) Paul W dniu niedziela, 4 stycznia 2015 14:14:03 UTC+1

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-04 Thread Adrian Cuthbertson
You can also work directly with the HDF5 file as an array object... using HDF5 hfi=h5open(myfile.h5,w); # create the file close(hfi) A = reshape(1: 120, 15, 8); hfi = h5open(myfile.h5,r+) # read/write access hfi[mygroup/A] = A 15x8 Array{Int64,2}: 1 16 31 46 61 76 91 106 ... 14

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-04 Thread Tim Holy
See the part about ...incrementally save to very large ... --Tim On Sunday, January 04, 2015 06:59:53 AM paul analyst wrote: Of course, first I read :) Is there about reading range array. I need to save a range of In analogy to. A = reshape (1: 120, 15, 8) h5write (/ tmp / test2.h5,

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-04 Thread Tim Holy
Do note there are two additional pages of documentation in the doc/ folder. --Tim On Sunday, January 04, 2015 06:59:53 AM paul analyst wrote: Of course, first I read :) Is there about reading range array. I need to save a range of In analogy to. A = reshape (1: 120, 15, 8) h5write (/ tmp /

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-04 Thread paul analyst
Thx, form me this moment *hfi[mygroup/A] = A* was not too clear Paul W dniu niedziela, 4 stycznia 2015 18:37:30 UTC+1 użytkownik Tim Holy napisał: See the part about ...incrementally save to very large ... --Tim On Sunday, January 04, 2015 06:59:53 AM paul analyst wrote: Of

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-04 Thread paul analyst
Big Thx for big lesson, is no too dark now Paul W dniu niedziela, 4 stycznia 2015 17:58:28 UTC+1 użytkownik Adrian Cuthbertson napisał: You can also work directly with the HDF5 file as an array object... using HDF5 hfi=h5open(myfile.h5,w); # create the file close(hfi) A = reshape(1: