Skip to content

Instantly share code, notes, and snippets.

@hardingnj
Created July 8, 2014 10:42
Show Gist options
  • Save hardingnj/f96ebb5c1ce867830d1a to your computer and use it in GitHub Desktop.
Save hardingnj/f96ebb5c1ce867830d1a to your computer and use it in GitHub Desktop.
hd5 compression test, R doesn't like lzf
#! /usr/bin/R
library(rhdf5)
# Suceeds:
dat_gzip <- tryCatch(
{ dat_gzip <- h5read('gzip.h5', "/"); print(summary(dat_gzip)); },
error = function(e) { stop(e) }
)
# Fails:
dat_lzf <- tryCatch(
{ dat_lzf <- h5read('lzf.h5', "/"); print(summary(dat_lzf)); },
error = function(e) { stop(e) }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment