I am also currently working on a project using NetCDF.
Unfortunately, the NetCDF API for Java supports reading NetCDF-4 files, not writing. This API is for supporting writing to NetCDF-3 files.
Regarding tutorials or help on using it in Java, you can find the javadoc API here: http://www.unidata.ucar.edu/software/netcdf-java/v4.0/javadoc/overview-summary.html
and tutorial: http://www.unidata.ucar.edu/software/netcdf-java/tutorial/
I am sure this will help you. NetCDF seems like a great way to store scientific data, but NetCDF-3 lacks many features (several unlimited sizes are available with only 4). My best advice for you is to read every documentation you can find on the Unidata website. Not only Java API documentation, but NetCDF documentation in general. Check out sample files, small code examples. And play around with netCDF Java utilities, which they distribute in the Java download section.
source share