<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>

<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=163481011-09012008><FONT face=Arial color=#0000ff>Hello 
Bas,</FONT></SPAN></DIV>
<DIV><SPAN class=163481011-09012008><FONT face=Arial color=#0000ff>I did 
discover the read only attribute. Your response is most helpful. Thank 
you.</FONT></SPAN></DIV>
<DIV><SPAN class=163481011-09012008><FONT face=Arial color=#0000ff>Kind 
regards</FONT></SPAN></DIV>
<DIV><SPAN class=163481011-09012008><FONT face=Arial color=#0000ff>John 
C</FONT></SPAN></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Bas Retsios 
  [mailto:retsios@itc.nl]<BR><B>Sent:</B> 08 January 2008 03:21<BR><B>To:</B> 
  John L. Craddock<BR><B>Cc:</B> gdal-dev@lists.osgeo.org<BR><B>Subject:</B> Re: 
  [gdal-dev] netCDF to GRIB 1<BR><BR></FONT></DIV>Hello,<BR><BR>The GDAL-GRIB 
  driver mentioned will read GRIB files (not write them), therefore it can not 
  be directly used for converting netCDF to GRIB files.<BR>However, this 
  information might help:<BR>For saving time when I was working on this driver, 
  I implemented it as a "wrapper" around a full GRIB library written by Mr. 
  Arthur Taylor.<BR>The SVN link below contains both the "wrapper" that gives 
  GDAL "GRIB-read" capabilities (which is file gribdataset.cpp), and the full 
  GRIB library (which is all other files).<BR>The GRIB library can both read and 
  write GRIB files, but I only called the functions for reading (because that is 
  what I was interested in).<BR>With some effort you would be able to extend 
  gribdataset.cpp so that it can also write back a GRIB file. This link <A 
  class=moz-txt-link-freetext 
  href="http://www.gdal.org/gdal_drivertut.html">http://www.gdal.org/gdal_drivertut.html</A> 
  describes how to proceed, at section "File 
  Creation".<BR><BR>Cheers,<BR><BR>Bas.<BR><PRE class=moz-signature cols="72">-- 
Ir. V. (Bas) Retsios
Software Developer
Geo-information Processing Department
International Institute for Geo-information Science and Earth Observation (ITC)
P.O. Box 6,  7500 AA Enschede, The Netherlands
Phone +31 (0)53 4874 573, telefax +31 (0)53 4874 335
E-mail <A class=moz-txt-link-abbreviated href="mailto:retsios@itc.nl">retsios@itc.nl</A>, Internet <A class=moz-txt-link-freetext href="http://www.itc.nl">http://www.itc.nl</A></PRE><BR><BR>John 
  L. Craddock wrote:<BR>
  <BLOCKQUOTE 
  cite=mid1D4709F5DABD944E926E1F5C1AE5ABB807327E@server.office.xitech.com.au 
  type="cite"><PRE wrap="">Many thanks for your help Mateusz, I will give it a try.
Regards
John C

  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">-----Original Message-----
From: Mateusz Loskot [<A class=moz-txt-link-freetext href="mailto:mateusz@loskot.net">mailto:mateusz@loskot.net</A>]
Sent: 02 January 2008 06:43
To: John L. Craddock
Cc: gdal
Subject: Re: [gdal-dev] netCDF to GRIB 1


Mateusz Loskot wrote:
    </PRE>
      <BLOCKQUOTE type="cite"><PRE wrap="">John L. Craddock wrote:
      </PRE>
        <BLOCKQUOTE type="cite"><PRE wrap="">Hello all,
Been scanning the ether for windows code to convert ocean 
        </PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap="">current files
    </PRE>
      <BLOCKQUOTE type="cite">
        <BLOCKQUOTE type="cite"><PRE wrap="">in netCDF format to GRIB version 1. I know about GRADS and 
        </PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap="">the lats4d
    </PRE>
      <BLOCKQUOTE type="cite">
        <BLOCKQUOTE type="cite"><PRE wrap="">script. Thought I would ask here if anyone knows of a less 
        </PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap="">circuitous
    </PRE>
      <BLOCKQUOTE type="cite">
        <BLOCKQUOTE type="cite"><PRE wrap="">way of converting. I see GDAL reads netCDF. Is there a 
        </PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap="">driver to output
    </PRE>
      <BLOCKQUOTE type="cite">
        <BLOCKQUOTE type="cite"><PRE wrap="">GRIB?
        </PRE></BLOCKQUOTE><PRE wrap="">John,

There is GRIB driver in the GDAL spike repository:

<A class=moz-txt-link-freetext href="https://svn.osgeo.org/gdal/spike/grib/">https://svn.osgeo.org/gdal/spike/grib/</A>

You may try to checkout it and build into GDAL.
      </PRE></BLOCKQUOTE><PRE wrap="">BTW, here you can find short instructions how to build GDAl with GRIB
support (the SVN URL given there is not active anymore, use 
the new one
above):

<A class=moz-txt-link-freetext href="http://lists.osgeo.org/pipermail/gdal-dev/2007-February/011663.html">http://lists.osgeo.org/pipermail/gdal-dev/2007-February/011663.html</A>

-- 
Mateusz Loskot
<A class=moz-txt-link-freetext href="http://mateusz.loskot.net">http://mateusz.loskot.net</A>

    </PRE></BLOCKQUOTE><PRE wrap=""><!---->_______________________________________________
gdal-dev mailing list
<A class=moz-txt-link-abbreviated href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</A>
<A class=moz-txt-link-freetext href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</A>
  </PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>