sodri126 / netcdf4-python

Automatically exported from code.google.com/p/netcdf4-python
Other
0 stars 0 forks source link

Unable to set chunksizes #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am unable to set the chunksizes as per the C API:

nc_def_var_chunking(ncid, varid, NC_CHUNKED, chunksize)

I tried using chunksizes=512 and chuncksizes(512) in the variable declaration 
which returns:

"object of type 'int' has no len()" - This is an unlimited one-dimensional 
variable and is not set as contiguous. 

I suspect I am doing something wrong...

Original issue reported on code.google.com by tweekzi...@gmail.com on 4 May 2012 at 7:46

GoogleCodeExporter commented 9 years ago
I am - square brackets doh!

chuncksizes=[512] not chuncksizes=(512).  zlib compresson now working well on 
unlimited data.

Original comment by tweekzi...@gmail.com on 4 May 2012 at 8:06

GoogleCodeExporter commented 9 years ago

Original comment by whitaker.jeffrey@gmail.com on 26 Feb 2014 at 2:04