Hi all,
Pretty sobering when looking at the file sizes. Mainly, I was hoping to
create smaller file sizes for very long EEG recordings. Here's the
comparison of 8 channels / 10 secs / floating point (HDF5 compressed,
HDF5 uncompressed, ASCII) stored with comedirecord:
-rw-r--r-- 1 bp1 bp1 340357 2012-05-23 07:29 zzz_bz.hdf
-rw-r--r-- 1 bp1 bp1 400242 2012-05-23 07:25 zzz.hdf
-rw-r--r-- 1 bp1 bp1 859282 2012-05-23 07:25 zzz.txt
after a gzip:
-rw-r--r-- 1 bp1 bp1 265336 2012-05-23 07:25 zzz.txt.gz
Most plotting programs read ASCII only anyway. So, it's better to record
in ASCII and do a gzip after the recording. That's more efficient than
storing in HDF5 with compression.
/Bernd
Ross Williamson wrote:
> Sorry I should have mentioned that the standard netcdf plugin for KST is
> very old and doesn't work with netcdf4/hdf5 files.
>
> I've re-written the plugin for KST to read netCDF4 files - It's alpha
> and I haven't set it upon the general KST gurus yet as I need to clean
> it up. Also I don't think it will read raw HDF5 files but instead
> requires the higher level netcdf4 interface. It will read data in
> "real-time" and also take care of the hierarchical side of things.
>
> You could also convert to ASCII if needs be on the fly. I know with
> netcdf4 you have to call "sync" fairly often as the buffer is large and
> the data will only get written once the file is closed (or buffer fills up)
>
> If you want to use KST I'll post the new netCDF datasource files for kst
>
> On Mon, May 21, 2012 at 7:38 PM, Bernd Porr <
bern...@f2s.com
> <mailto:
bern...@f2s.com>> wrote:
>
> I'm using HDF5. I've just tried out KST but it won't like the hdf5 file.
>
> That's generated by comedirecord:
>
http://www.linux-usb-daq.co.__uk/tmp/aaa.hdf
> <
http://www.linux-usb-daq.co.uk/tmp/aaa.hdf>
>
> As posted earlier with h5ls I can pipe that into gnuplot without any
> probs:
> plot "< h5ls -d -S ggg.hdf | tail -n +3" using 2 with lines
>
> I guess I need to do a similar thing for KST? First converting it
> back to ASCII?
>
> /Bernd
>
> Ross Williamson wrote:
>
> Are you using raw HDF5 of netcdf4? I've got a few applications
> running using netcdf4 (with HDF5 backend) in python and I can
> access the data whilst being written from KST for example. I'll
> try and dig up some examples if it's helpful.
>
> Ross
>
> On Sun, May 20, 2012 at 5:35 PM, Bernd Porr <
bern...@f2s.com
> <mailto:
bern...@f2s.com> <mailto:
bern...@f2s.com
> <mailto:
bern...@f2s.com>>> wrote:
>
> Hi all,
>
> I've added hdf5 support to comedirecord. Seems to be working
> quite
> nicely. The hdfviewer likes the data.
>
> git://
github.com/berndporr/____comedirecord.git
> <
http://github.com/berndporr/__comedirecord.git>
> <
http://github.com/berndporr/__comedirecord.git
> <
http://github.com/berndporr/comedirecord.git>>
>
> project page:
>
http://www.linux-usb-daq.co.____uk/software2/comedi-record/
> -- www:
http://www.linux-usb-daq.co.____uk/
>
http://www.imdb.com/name/____nm3293421/
> <
http://www.imdb.com/name/__nm3293421/>
> <tel:%2B44%20%280%297840%__20340069>
> <tel:%2B44%20%280%29141%20330%__205237>
>
> University of Glasgow
> School of Engineering
> 72 Oakfield Avenue (Rankine Building for deliveries)
> Glasgow, G12 8LT
>
> -- You received this message because you are subscribed
> to the Google
> Groups "Comedi: Linux Control and Measurement Device
> Interface" group.
> To post to this group, send email to
>
comed...@googlegroups.com <mailto:
comed...@googlegroups.com>
> <mailto:
comedi_list@__
googlegroups.com
> <mailto:
comed...@googlegroups.com>>.
>
> To unsubscribe from this group, send email to
> comedi_list+unsubscribe@__
goog__legroups.com
> <
http://googlegroups.com>
> <mailto:
comedi_list%__2Buns...@googlegroups.com
> <mailto:
comedi_list%252Buns...@googlegroups.com>__>.
>
> For more options, visit this group at
>
http://groups.google.com/____group/comedi_list?hl=en
> <
http://groups.google.com/__group/comedi_list?hl=en>
>
212-851-9379 <tel:
212-851-9379> (office)
>
212-854-4653 <tel:
212-854-4653> (Lab)
>
312-504-3051 <tel:
312-504-3051> (Cell)
>
> --
> You received this message because you are subscribed to the
> Google Groups "Comedi: Linux Control and Measurement Device
> Interface" group.
> To post to this group, send email to
>
comed...@googlegroups.com <mailto:
comed...@googlegroups.com>.
> <mailto:
comed...@googlegroups.com>.
>
comedi_list...@googlegroups.com.