[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #AXC-826436]: Regarding Netcdf Java

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDFJava #AXC-826436]: Regarding Netcdf Java
  • Date: Wed, 21 Dec 2011 11:09:16 -0700

Greetings Ravi,

We have a few example java source files for reading and creating netCDF files. 
The examples can be found here:

http://www.unidata.ucar.edu/software/netcdf/examples/programs/

I would recommend starting with 
http://www.unidata.ucar.edu/software/netcdf/examples/programs/Simple_xy_wr.java

Also, I would recommend following the CF standards as closely as possible when 
writing netCDF files (http://cf-pcmdi.llnl.gov/). If you would not mind 
describing the dataset a bit more, I could suggest a CF type for you to follow 
as an example. I am guessing the Point CF Feather type would be most 
appropriate 
(http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.6/cf-conventions.html#idp8294224),
 but I'd like to be sure I'm suggesting the correct one for your data.

Cheers!

Sean

> Hello,
> 
> I am working on earthquake data which contains latitude longitude depth and 
> time. Can i get a sample java source file which creates .nc file.
> Thanks,
> Ravi Teja
> 
> 


Ticket Details
===================
Ticket ID: AXC-826436
Department: Support netCDF Java
Priority: Normal
Status: Open