Java netcdf 4 tutorial

I use the latest netcdf library from the unidata site here: http://www.unidata.ucar.edu/downloads/netcdf/index.jsp

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

PS Here is their training site ... without mentioning java: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-tutorial/index.html

+6
source share
3 answers

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.

+2
source

Just note that the netCDF-Java library (starting from 4.3.13) has support for writing netCDF-4 through the netCDF C library. It is still in beta, but it works, and the feedback is definitely appreciated!

See the netCDF-Java reference docs for more details.

+2
source

Have you looked into the Nujan library? This is for writing netcdf4 files

0
source

Source: https://habr.com/ru/post/896450/


All Articles