Creating netcdf-4 compatible files in Java

Dear all,

I've been trying to create netcdf-4 compatible hdf5 files via the
hdf5-java library.
Specifically I'd like to create 2D rasters for use in a GIS.

I've been trying to associate a dataset with a dimension of another
dataset as documented here:
http://www.hdfgroup.org/HDF5/Tutor/h5dimscale.html
This is I think a requirement for netcdf-4 compatible files, however I
can't find the required methods in the JNI.

Could anyone please tell me if this is actually possible using the
current hdf5-java interface?

Thanks

Will Temperley