ask for help
Farshid Daryabor
fdaryabor at GOOGLEMAIL.COM
Sun Nov 8 09:22:37 EST 2009
Dear Phil
You have to load variable by using matlab and then you write following
script
In order to variable dimension that should be 2D
fid=fopen( 'var.dat', 'wb');
for i=1 : 92
for i=1 : 90
if isnan(var(i,j))==0
fwrite(fid, var(i,j), 'float');
else
fwrite(fid, -9999, 'float');
end
end
end
fclose(fid);
Best Regards
F.Daryabor
On Sat, Nov 7, 2009 at 1:44 PM, Phillip Lin <naishi at meteo.mcgill.ca> wrote:
> Hi everyone,
> Does anyone know how to convert a text file to thye binary file, and then
> I am able to use GrADS to display(plot) the data?
> Thanks so much!
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091108/9859947a/attachment.html
More information about the gradsusr
mailing list