Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java netcdf 4 tutorial

Tags:

java

netcdf

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

like image 289
GPSmaster Avatar asked Sep 01 '11 22:09

GPSmaster


1 Answers

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.

like image 133
lanouettea Avatar answered Sep 22 '22 03:09

lanouettea