Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
_From owner-netcdf-java@xxxxxxxxxxxxxxxx Thu Jul 7 11:28:34 2005 Received: (from majordo@localhost) by unidata.ucar.edu (UCAR/Unidata) id j67HR8Ej012628 for netcdf-java-out; Thu, 7 Jul 2005 11:27:08 -0600 (MDT) Received: from [127.0.0.1] (whoopee.unidata.ucar.edu [128.117.140.6]) by unidata.ucar.edu (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 laraine.unidata.ucar.edu X-Spam-Level: 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 addRecordStructure(). Here is a recently (or soon to be) released document on structures in netCDF 3 files: http://www.unidata.ucar.edu/packages/netcdf-java/formats/RecordsInNetcdf3.html Hope this helps.
netcdf-java
archives: