source: trunk/private/make_base_image.m @ 23

Last change on this file since 23 was 13, checked in by jbrlod, 15 years ago

Correction pour ticket #1

File size: 1.3 KB
Line 
1%MAKE_BASE_IMAGE 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 : tp_mlp_aerosols_startup.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
51sday='251';
52indir='../Images/';
53Thetas=load([indir 'ANGLES_' sday '_Thetas.dat']);
54Thetav=load([indir 'ANGLES_' sday '_Thetav.dat']);
55Dphi=load([indir 'ANGLES_' sday '_Phiv.dat']);
56Rho670=load([indir 'SEAWIFS_' sday '_670.dat']);
57Rho765=load([indir 'SEAWIFS_' sday '_765.dat']);
58Rho865=load([indir 'SEAWIFS_' sday '_865.dat']);
59
60base_image=[Thetas Thetav Dphi Rho670 Rho765 Rho865];
61
62if (run_octave == 0)
63 save([indir 'base_image_' sday '.dat'],'base_image','-ascii');
64else
65 save('-ascii',[indir 'base_image_' sday '.dat'],'base_image');
66end
Note: See TracBrowser for help on using the repository browser.