<font face="verdana,sans-serif">No, you don&#39;t need to change the array dimension order.  You can also read the netcdf directly with Matlab.<br></font><br><div class="gmail_quote">On Mon, May 14, 2012 at 12:00 PM,  <span dir="ltr">&lt;<a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.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 id=":6s">Hello NCL-talk:<br>
<br>
For further clarification, I am posting this question I previously asked<br>
and answered.<br>
<br>
For an analysis I need to convert netCDF output to flat binary  - netCDF<br>
array size data(time,lat,lon) = data(1200,180,360).<br>
<br>
The output binary is read by a matlab program as data(lon,lat,time) =<br>
data(360,180,1200).<br>
<br>
Do I have to rotate the dimensions before writing the binary?<br>
<br>
The following scripts does the conversion.<br>
<br>
f1 = addfile (&quot;<a href="http://infile.nc" target="_blank">infile.nc</a>&quot;, &quot;r&quot;)<br>
data = f1-&gt;data<br>
fo = &quot;outfile.bin&quot;<br>
data1 = data(time|:,lon|:,lat|:)             ;each time step has 360 lons<br>
and 180 lats<br>
nt = 1200<br>
<br>
do nt=0,(nt-1 )<br>
     fbindirwrite(fo, vals(nt,:,:) )<br>
end do<br>
<br>
Thanks,<br>
Noel</div></blockquote></div><br>