<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
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 type="cite"
cite="mid1D4709F5DABD944E926E1F5C1AE5ABB807327E@server.office.xitech.com.au">
<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>
</body>
</html>