<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=IT link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color="#333399" face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:#333399'>Hi Henrique,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#333399" face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:#333399'>I tried just now to
use the command you proposed:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#333399" face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:#333399'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>./lats4d.gs -v -i prova.ctl -o output.grib -format grads_grib
-ftype ctl<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#333399" face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:#333399'>&#8230;the answer is:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>./lats4d.gs: ./a.gs: Permission denied<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>./lats4d.gs: ./a.gs: Permission denied<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>./lats4d.gs: ./a.gs: Permission denied<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>./lats4d.gs: line 4: syntax error near unexpected token `(h'<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>./lats4d.gs: line 4: `*    files from GrADS using the PCMDI
(http://www-pcmdi.llnl.gov) LATS'<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>a.gs  is a file in my working
directory (???).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>But I&#8217;m using lats4d.gs
that I downloaded </span></font><font size=2 color="#333399" face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:#333399'>in the
grads scripting libraries&#8230;.why it doesn&#8217;t work??</span></font><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'> <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>What version of lats4d.gs
are you using?? <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Cheers,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Gabriella<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>Da:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">GRADSUSR@LIST.CINECA.IT</st1:PersonName> [mailto:<st1:PersonName
w:st="on">GRADSUSR@LIST.CINECA.IT</st1:PersonName>] <b><span style='font-weight:
bold'>Per conto di </span></b>Henrique Barbosa<br>
<b><span style='font-weight:bold'>Inviato:</span></b> mercoledė 19 ottobre 2005
22.45<br>
<b><span style='font-weight:bold'>A:</span></b> <st1:PersonName w:st="on">GRADSUSR@LIST.CINECA.IT</st1:PersonName><br>
<b><span style='font-weight:bold'>Oggetto:</span></b> Re: writing GRIB</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Eric,<br>
<br>
You are not misunderstanding, using lats4d is exactly<br>
what eric should do. Well, at least I do that almost every day<br>
to convert binary to grid:<br>
<br>
here's the command I use<br>
<br>
lats4d -v -i input.ctl -o output.grib -format grads_grib -ftype ctl -grid
gaussian -table my_table<br>
<br>
Of course you gonna need a grib table for that.<br>
<br>
Cheers,<br>
Henrique<br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 10/19/05, <b><span style='font-weight:bold'>Eric
DeWeaver</span></b> &lt;<a href="mailto:deweaver@aos.wisc.edu">deweaver@aos.wisc.edu</a>&gt;
wrote:</span></font></span><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi Tom,<br>
<br>
If you haven't already, maybe you should take a look at the<br>
documentation for <a href="http://lats4d.gs">lats4d.gs</a>, available in the
grads scripting libraries.<br>
There's an option -format grib, which apparently tells lats4d to write out <br>
a grib file.&nbsp;&nbsp;I've never tried this, and I may be misunderstanding<br>
what I'm reading, but it could be worth a look.<br>
<br>
Good luck,<br>
<br>
Eric<br>
<br>
<br>
<br>
On Wed, 19 Oct 2005, Burns Tom wrote:<br>
<br>
&gt; Yes. I did read your responses and they were interesting, but in my <br>
&gt; situation I have to have the files written in GRIB format. Writing out the<br>
&gt; GrADS binary format is not sufficient.<br>
&gt;<br>
&gt; Is it possible to write out a grib file in GrADS in the manner I
originally <br>
&gt; described?<br>
&gt;<br>
&gt; -Tom<br>
&gt;<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>