GPSmaster
GPSmaster

Reputation: 914

java netcdf 4 tutorial

I am using the latest netcdf jar library from unidata website here: http://www.unidata.ucar.edu/downloads/netcdf/index.jsp

I am looking for a java netcdf 4 tutorial/example but I can't seem to find one on their website or anywhere else for that matter. Version 4 is significantly different than the previous versions in that the write function (to write data to a variable) is no longer used and is replaced by writeCDL...I think. Has anyone used the latest version of netcdf with java? I'd really appreciate if someone could point me in the right direction. Thanks for your help! -Dom

P.S. Here is their tutorial website...with no mention of java: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-tutorial/index.html

Upvotes: 6

Views: 5235

Answers (3)

Dan
Dan

Reputation: 1033

Have you looked into the Nujan library? It's for writing netcdf4 files

Upvotes: 0

Sean A.
Sean A.

Reputation: 682

Just a note that the netCDF-Java library (as of 4.3.13) has netCDF-4 write support via the netCDF C library. It's still in beta, but it does work and feedback is certainly appreciated!

Please see the netCDF-Java reference docs for more details.

Upvotes: 2

lanouettea
lanouettea

Reputation: 36

I'm currently also working on a project using NetCDF.

Unfortunately, the NetCDF API for Java only supports reading from NetCDF-4 files, not writing. This API on support writing to NetCDF-3 files.

As for tutorials or help about using it in Java, you can find the API javadoc 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 sure hope this helps you. NetCDF seems like a great way to store scientific data, but NetCDF-3 lacks a tons of features (multiple unlimited dimensions are only available from 4). My best advice for you is to read every documentation you can find on Unidata website. Not just documentation for the Java API, but documentation on NetCDF in general. Check sample files, small examples of code as well. And play a bit with the netCDF Java utils they distribute in the Java download section.

Upvotes: 2

Related Questions