[netcdfgroup] HDF error with netcdf-4.1.2-rc1


I'm getting an HDF error when I run a python program that interfaces with the 4.1.2-rc1 C lib. I wrote an equivalent C program, but I can't get it to trigger the error. With nc_set_log_level(5), here's the logging info I get when running the python program:

jeff-whitakers-imac-6:python jsw$ python netcdf4_yc_bug.py
        nc4_create_file: path test.nc cmode 0x1000 comm 0 info 0
        HDF5 error messages have been turned off.
                cmode after applying default format: 0x1000
                        nc4_create_file: path test.nc mode 0x1000
                        grp_list_add: new_nc_grpid 0 name /
nc4_create_file: set HDF raw chunk cache to size 4194304 nelems 1009 preemption 0.750000
                nc_inq_format: ncid 0x10000
                nc_inq_typeids: ncid 0x10000
                nc_inq: ncid 0x10000
                nc_inq: ncid 0x10000
                nc_inq_grps: ncid 0x10000
                nc_def_dim: ncid 0x10000 name xc len 134
                nc_def_var: ncid 0x10000 name var1 xtype 5 ndims 1
                        nc_def_var_nc4: name var1 type 5 ndims 1
                                dimid[0] 0
                                nc4_get_typelen_mem xtype: 5
allocating array of 1 size_t to hold chunksizes for var var1 d = 0 max_dim 0 max_len 134 num_values 134.000000 nc_def_var_nc4: name var1 dim 0 DEFAULT_CHUNK_SIZE 4194304 num_values 134.000000 type_size 4 chunksize 134
                                total_chunk_size 536.000000
                                nc4_get_typelen_mem xtype: 5
                                new varid 0
                nc_inq_unlimdims: ncid 0x10000
                nc_inq_var_all: ncid 0x10000 varid 0
                nc_def_var: ncid 0x10000 name var2 xtype 5 ndims 1
                        nc_def_var_nc4: name var2 type 5 ndims 1
                                dimid[0] 0
                                nc4_get_typelen_mem xtype: 5
allocating array of 1 size_t to hold chunksizes for var var2 d = 0 max_dim 0 max_len 134 num_values 134.000000 nc_def_var_nc4: name var2 dim 0 DEFAULT_CHUNK_SIZE 4194304 num_values 134.000000 type_size 4 chunksize 134
                                total_chunk_size 536.000000
                                nc4_get_typelen_mem xtype: 5
                                new varid 1
                nc_inq_unlimdims: ncid 0x10000
                nc_inq_var_all: ncid 0x10000 varid 1
                nc_def_var: ncid 0x10000 name xc xtype 5 ndims 1
                        nc_def_var_nc4: name xc type 5 ndims 1
                                dimid[0] 0
                                nc4_get_typelen_mem xtype: 5
allocating array of 1 size_t to hold chunksizes for var xc d = 0 max_dim 0 max_len 134 num_values 134.000000 nc_def_var_nc4: name xc dim 0 DEFAULT_CHUNK_SIZE 4194304 num_values 134.000000 type_size 4 chunksize 134
                                total_chunk_size 536.000000
                                nc4_get_typelen_mem xtype: 5
                                new varid 2
                nc_inq_unlimdims: ncid 0x10000
                nc_inq_var_all: ncid 0x10000 varid 2
        nc_close: ncid 0x10000
                        close_netcdf4_file: h5->path test.nc abort 0
                        sync_netcdf4_file
*** NetCDF-4 Internal Metadata: int_ncid 0x10000 ext_ncid 0x10000 FILE - hdfid: 0x1000000 path: test.nc cmode: 0x1009 parallel: 0 redef: 0 fill_mode: 0 no_write: 0 next_nc_grpid: 1
                 GROUP - / nc_grpid: 0 nvars: 3 natts: 0
                 DIMENSION - dimid: 0 name: xc len: 134 unlimited: 0
VARIABLE - varid: 2 name: xc type: 5 ndims: 1 dimscale: 1 dimids: 0 VARIABLE - varid: 1 name: var2 type: 5 ndims: 1 dimscale: 0 dimids: 0 VARIABLE - varid: 0 name: var1 type: 5 ndims: 1 dimscale: 0 dimids: 0
                        nc4_rec_write_types: grp->name /
                        nc4_rec_write_metadata: grp->name /
checking var1 for out of order coord var checking var2 for out of order coord var checking xc for out of order coord var
                                write_var: writing var var1
                        var_create_dataset: name var1
                                nc4_get_typelen_mem xtype: 5
var_create_dataset: about to H5Dcreate dataset var1 of type 0x300002a
                                write_var: writing var var2
                        var_create_dataset: name var2
                                nc4_get_typelen_mem xtype: 5
var_create_dataset: about to H5Dcreate dataset var2 of type 0x300002a
                                write_var: writing var xc
                        var_create_dataset: name xc
                                nc4_get_typelen_mem xtype: 5
var_create_dataset: about to H5Dcreate dataset xc of type 0x300002a
ERROR: file nc4hdf.c, line 1449.
NetCDF: HDF error


Any idea what might be going on here?

-Jeff



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: