NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
_From owner-netcdf-java@xxxxxxxxxxxxxxxx Mon Apr 18 09:02:51 2005 Received: (from majordo@localhost) by unidata.ucar.edu (UCAR/Unidata) id j3IF1RTJ028167 for netcdf-java-out; Mon, 18 Apr 2005 09:01:27 -0600 (MDT) Received: from crow.rsinc.com (crow.rsinc.com [192.5.156.11]) by unidata.ucar.edu (UCAR/Unidata) with ESMTP id j3IF1Pv2028160 for <netcdf-java@xxxxxxxxxxxxxxxx>; Mon, 18 Apr 2005 09:01:25 -0600 (MDT) Organization: UCAR/Unidata Keywords: 200504181501.j3IF1Pv2028160 Received: from mack.corp.rsinc.com (nis1.bldr.rsinc.com [10.17.10.11]) by crow.rsinc.com (8.12.11/8.12.10) with ESMTP id j3IF1Pr5010363 for <netcdf-java@xxxxxxxxxxxxxxxx>; Mon, 18 Apr 2005 09:01:25 -0600 (MDT) Received: from apollo.rsinc.com (apollo.rsinc.com [10.17.10.67]) by mack.corp.rsinc.com (8.12.11/8.12.10) with ESMTP id j3IF1Pdh025559 for <netcdf-java@xxxxxxxxxxxxxxxx>; Mon, 18 Apr 2005 09:01:25 -0600 (MDT) Received: from bath.uk.rsinc.com ([192.168.202.5]) by apollo.rsinc.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 18 Apr 2005 09:01:36 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: thredds primer Thread-Index: AcVCE8gxzy2Nm9KyQIyTijX7zIMzMQCEzErQ X-OriginalArrivalTime: 18 Apr 2005 15:01:36.0534 (UTC) FILETIME=[8461C360:01C54427] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by unidata.ucar.edu id j3IF1Qv2028164 Sender: owner-netcdf-java@xxxxxxxxxxxxxxxx Precedence: bulk Hi, I am using the java classes to convert a netcdf file for one time instance, with 27 levels in Z (atmospheric pressure levels). I have created a loop with variable i, and attempting to write a band in the tif file for each iteration. What seems to happen is the first band gets written ok, but then after that the page number gets messed up? Array data = grid.readDataSlice(0, i, -1, -1); writer.writeGrid(grid, data, false, xStart, yStart, xInc, yInc, i); Has anyone got any pseudo code for writing multiband tif files from netCDF? Many thanks, Norman Barker
netcdf-java
archives: