Re: 20050706: creating Structure and Sequence using netCDF Java API

  • To: ÐÐÑÐÐÐ <serg@xxxxxxxx>
  • Subject: Re: 20050706: creating Structure and Sequence using netCDF Java API
  • From: John Caron <caron@xxxxxxxxxxxxxxxx>
  • Date: Thu, 07 Jul 2005 10:25:04 -0700
_From owner-netcdf-java@xxxxxxxxxxxxxxxx Thu Jul  7 11:28:34 2005
Received: (from majordo@localhost)
        by (UCAR/Unidata) id j67HR8Ej012628
        for netcdf-java-out; Thu, 7 Jul 2005 11:27:08 -0600 (MDT)
Received: from [] ( [])
        by (UCAR/Unidata) with ESMTP id j67HP3jp011757;
        Thu, 7 Jul 2005 11:27:04 -0600 (MDT)
Organization: UCAR/Unidata
Keywords: 200507071727.j67HP3jp011757
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
CC: netcdf-java <netcdf-java@xxxxxxxxxxxxxxxx>
References: <200507061626.j66GQtjo018322@xxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on
X-Spam-Status: No, score=-5.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 
        autolearn=ham version=3.0.1
Sender: owner-netcdf-java@xxxxxxxxxxxxxxxx
Precedence: bulk

>Hello, support team,
>I want to create objects like Structure and Sequence during creating
>my netCDF file. I use netCDF Java API and I can't understand how can I
>do this. Would you be so kind to show me a couple of examples of
>creating simple Structure and Sequence using Java API?
Hi Serg, heres a recent response to the same question:

The netCDF 3 file format doesn't support structures so you can't 
currently create/write structures. (You should be able to once netCDF 4 
comes out.) What you can do structure-wise with netCDF 3 fils is think 
of all the variables that use the record (unlimited) dimension as a 
structure. The creation (in the netCDF-java object model, not on file) 
of a "record" structure variable is what the addRecordStructure() method 
does. So, to use structures in netCDF 3 files, you need to write the 
files with an unlimited dimension and when you read the files use the 

Here is a recently (or soon to be) released document on structures in 
netCDF 3 files: 

Hope this helps.