Ignore:
Timestamp:
08/13/09 15:44:10 (15 years ago)
Author:
pinsard
Message:

make_base_image.m : header and octave compatibility (bis)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/private/make_base_image.m

    r2 r9  
     1%save Thetas Thetav Dphi Rho670 Rho765 Rho865 of one day. 
     2 
     3%+ 
     4% module 
     5% ====== 
     6% 
     7% ++ 
     8% 
     9% DESCRIPTION 
     10% =========== 
     11% 
     12% From ANGLES\_\ *day*\_*.dat, 
     13% ``make_base_image.m`` produce a ASCII data file base_image\_\ *day*\_.dat 
     14% containing Thetas Thetav Dphi Rho670 Rho765 Rho865 of one day. 
     15% 
     16% EXAMPLES 
     17% ========== 
     18% 
     19% :: 
     20% 
     21% >> addpath('../toolbox') 
     22% >> tp_mlp_aerosols_startup 
     23% >> make_base_image 
     24% 
     25% SEE ALSO 
     26% ======== 
     27% 
     28% tp_mlp_aerosols_startup.m_ 
     29% 
     30% .. _tp_mlp_aerosols_startup.m : eof_df.m.html 
     31% 
     32% TODO 
     33% ==== 
     34% 
     35% avoid overriding existing output file 
     36% 
     37% make it launchable from everywhere (path and IO directories) 
     38% 
     39% EVOLUTIONS 
     40% ========== 
     41% 
     42% $Id$ 
     43% 
     44% - fplod 2009-08-13T10:57:39Z aedon.locean-ipsl.upmc.fr (Darwin) 
     45% 
     46%    * add header 
     47%    * add octave save instruction 
     48% 
     49%- 
     50 
    151sday='251'; 
    252indir='../Images/'; 
     
    959 
    1060base_image_251=[Thetas Thetav Dphi Rho670 Rho765 Rho865]; 
    11 save([indir 'base_image_251.dat'],'base_image_251','-ascii'); 
     61 
     62if (run_octave == 0) 
     63 save([indir 'base_image_251.dat'],'base_image_251','-ascii'); 
     64else 
     65 save('-ascii',[indir 'base_image_251.dat'],'base_image_251'); 
     66end 
Note: See TracChangeset for help on using the changeset viewer.