<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<a class="moz-txt-link-freetext"
href="http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/">http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/</a><br>
<br>
If the grib format you want is grib2 then you can consider the NCEP
wgrib2 tool. If it is grib1 than it is quite a bit more tricky. NCEP
has a Fortran library called w3lib that you can try for doing I/O with
grib1; it may take some time and research to understand how it works --
there is a code example inside the Readme in w3lib tar file, but
dealing with the Grib header is tricky. A trick is to read from a
similar grib1 file header, make necessary changes (like the date), and
just change the output data.<br>
<br>
Steven Chan<br>
<br>
<br>
On 2/12/2010 4:52 PM, Jeffrey Duda wrote:
<blockquote
cite="mid:c0f1d7891002121352if43048ej73b6818506e15e5d@mail.gmail.com"
type="cite">One way I know how to convert netcdf to grib is by using
the WRF Post Processor (generally only works if the model you're
running is the WRF though).<br>
<br>
Regarding the linear interpolation of time between sets, I don't think
you can create new files that have interpolated data in them, but you
can always compute the interpolated values yourself in Grads and just
display them. For example, if you have wind speed 24 hours apart, you
could compute a linearly interpolated value of wind speed at a given
hour in between by defining a variable this way:<br>
<br>
define dwinddt = windspeed(t=t1) - windspeed(t=t0)/(24 hours, 1440
minutes, 86400 s)<br>
display windspeed(t=t0) + dwinddt*(1 hr, 60 min, or 3600 s depending on
what unit you want to use)<br>
<br>
Hope this helps.<br>
<br>
Jeff Duda<br>
<br>
<div class="gmail_quote">On Fri, Feb 12, 2010 at 3:20 PM, Jason
Snyder <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jmssnyder@ucdavis.edu">jmssnyder@ucdavis.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>I am running an aerosol puff model that can only use GRIB data
sets and also needs the data to be in hourly time steps. The data I
currently have is in daily time steps and I was wondering if I could
interpolate this data to have to display in hourly time steps. </div>
<div> </div>
<div>Also how do I convert netcdf to grib?</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<font color="#888888">
<div>Jason</div>
</font></blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Jeff Duda<br>
Iowa State University<br>
Meteorology Graduate Student<br>
3134 Agronomy Hall<br>
<a moz-do-not-send="true"
href="http://www.meteor.iastate.edu/%7Ejdduda">www.meteor.iastate.edu/~jdduda</a><br>
</blockquote>
<br>
</body>
</html>