This is an int in the struct, but the hdf5 type is a double.... probably this is causing problems somewhere.