[MITgcm-support] small number error output

q li qliuri at yahoo.com
Wed Sep 2 12:19:38 EDT 2009


For temparory convenience, I have to do it in this way:

fid=fopen('..\runE_U04\statA1.0000000000.txt','r');
fidw=fopen('..\runE_U04\statA1.0000000000.txc','w');
while ~feof(fid)
    c=fgetl(fid);
    ck=findstr(c,'-100');
    for k=1:length(ck)
        c(ck(k):ck(k)+3)='E-99';
    end
    fprintf(fidw,'%s\n',c);
end
fclose(fid); fclose(fidw);

Numbers in order or E-100 reall don't matter.

Li




________________________________
From: q li <qliuri at yahoo.com>
To: MITgcm-support at mitgcm.org
Sent: Wednesday, September 2, 2009 11:59:58 AM
Subject: [MITgcm-support] small number error output


Hi everyone,

When I use diagnostics to output *.txt (not netcdf), for example, statA1.0000000000.txt, if the number is too small, like 1.0E-100, the output ignores 'E'. 1.0E-100 becomes 1.0-100. I am not sure if the version I am using is not up to date.

Li



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20090902/68942e5c/attachment.htm>


More information about the MITgcm-support mailing list