<font style="background-color:rgb(255,255,255);color:rgb(0,0,0)" size="4">Thanks <span class="HOEnZb">Jayakrishnan and james!</span></font><br><br>Can you also give me some hints on how to write data in binary format using MATLAB! options for the fwrite, options for the netcdf write,... . anything that can guide me and help me to plot this results faster. I&#39;m really confused with these commands in MATLAB.<br>
<br><br><br><div class="gmail_quote">On Sat, Dec 17, 2011 at 11:00 AM, James T. Potemra <span dir="ltr">&lt;<a href="mailto:jimp@hawaii.edu">jimp@hawaii.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Alireza:<br>
    <br>
    Instead of writing an ascii file from matlab, you can either write a
    binary file (with fwrite) or a netcdf file.  The netcdf file can be
    read directly with grads, the binary file will need a control file,
    but either way would negate the need for an intermediate ascii file.<br>
    <br>
    Jim<div><div class="h5"><br>
    <br>
    On 12/16/11 5:15 PM, Alireza Azargoun wrote:
    </div></div><blockquote type="cite"><div><div class="h5">Hi all<br>
      <br>
      I wanted to now if there&#39;s a way in grads that I can plot the data
      from a text file without using other programs( like fortran,etc).
      these data are with a resolution 0.25 degree. I have created them
      using Matlab by combining thousand of hdf files to calculate the
      data. but after all the troubles MATLAB does not plot these data
      as good as grads(not good at all!!). there&#39;s also a sample data in
      the attachment. I&#39;ll be glad if anybody could help.<br>
      <br>
      Thanks in advance everyone.<br>
      -- <br>
      Regards<br>
      Alireza Azargoun<br>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
  </div>

<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Alireza Azargoun<br>