On Thu, May 21, 2009 at 7:58 PM, P.R. <span dir="ltr">&lt;<a href="mailto:romero619@hotmail.com">romero619@hotmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Im trying to setup a perl script to create a grads binary file.<br>
</blockquote><div><br>Are you using PDL for your float point data? You can see examples in Gerl source code on how to write binary files:<br><br>      <a href="http://sourceforge.net/project/showfiles.php?group_id=161773&amp;package_id=256759&amp;release_id=574264">http://sourceforge.net/project/showfiles.php?group_id=161773&amp;package_id=256759&amp;release_id=574264</a><br>
<br> I am not sure what you need, but you can write single variables to a file and read them in grads with the ipc_load() extensions.  Take a look at <br><br>     <a href="http://opengrads.org/wiki/index.php?title=Perl_Interface_to_GrADS">http://opengrads.org/wiki/index.php?title=Perl_Interface_to_GrADS</a><br>
<br>Note: Gerl does not work with mod_perl, make sure your cgi script is using /usr/bin/perl. This can be fixed, but it has not been a priority for me because I have switched to python.<br><br>          Arlindo<br><br></div>
</div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>