Aside from the different values in BoundaryDimensionType.X, the two files look completely identical to me (same datasets, attributes, types, sizes,…). However, I don't understand why the new file is about twice as big as the original one:

-------------------------------------------------------------------------------
[15:42:09] Obiwan:$ du -sh CE0010.boundary*hdf
344K    CE0010.boundary-new.hdf
176K    CE0010.boundary.hdf
-------------------------------------------------------------------------------

This is probably something simple, but I could not figure it out. 

Any suggestion would be much appreciated! Script is attached and the hdf files can be found there:

https://dl.dropboxusercontent.com/u/19410190/CE0010.boundary.hdf
https://dl.dropboxusercontent.com/u/19410190/CE0010.boundary-new.hdf


Thanks a lot,

JC