Changeset 11 for trunk/private
- Timestamp:
- 08/13/09 18:10:58 (15 years ago)
- Location:
- trunk/private
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/private/make_base_image.m
r10 r11 1 % save Thetas Thetav Dphi Rho670 Rho765 Rho865 of one day.1 %MAKE_BASE_IMAGE save Thetas Thetav Dphi Rho670 Rho765 Rho865 of one day. 2 2 3 3 %+ -
trunk/private/make_lut.m
r2 r11 1 %MAKE_LUT save ++ 2 %+ 3 % module 4 % ====== 5 % 6 % ++ 7 % 8 % DESCRIPTION 9 % =========== 10 % 11 % From ../LUT/lut_junge_nir.dat, 12 % ``make_lut`` produce a ASCII data file ../LUT/LUT_NIR.dat 13 % containing ++ 14 % 15 % EXAMPLES 16 % ========== 17 % 18 % :: 19 % 20 % >> addpath('../toolbox') 21 % >> tp_mlp_aerosols_startup 22 % >> make_lut 23 % 24 % SEE ALSO 25 % ======== 26 % 27 % tp_mlp_aerosols_startup.m_ 28 % 29 % .. _tp_mlp_aerosols_startup.m : tp_mlp_aerosols_startup.m.html 30 % 31 % TODO 32 % ==== 33 % 34 % improve description 35 % 36 % avoid overriding existing output file 37 % 38 % make it launchable from everywhere (path and IO directories) 39 % 40 % EVOLUTIONS 41 % ========== 42 % 43 % $Id$ 44 % 45 % - fplod 2009-08-13T16:05:03Z aedon.locean-ipsl.upmc.fr (Darwin) 46 % 47 % * add header 48 % * heaven if no modification is needed by octave now, I use 49 % tp_mlp_aerosols_startup in the example to point out IO directories 50 % and path future modifications. 51 % 52 %- 53 1 54 infile='../LUT/lut_junge_nir.dat'; 2 55 outfile='../LUT/LUT_NIR.dat'; 3 4 56 5 57 fid=fopen(infile,'r'); … … 18 70 for js=1:length(theta) 19 71 for jv=1:length(theta) 20 Itheta=union(Itheta,find(lut(:,3)==theta(js)&lut(:,4)==theta(jv)));72 Itheta=union(Itheta,find(lut(:,3)==theta(js)&lut(:,4)==theta(jv))); 21 73 end 22 23 74 end 24 75 … … 28 79 29 80 fid=fopen(outfile,'w'); 30 fprintf(fid,'%d %f %f %f %f %f %f\n',[type' ; lut(:,[6 3 4 5 7 ... 31 8])']); 81 fprintf(fid,'%d %f %f %f %f %f %f\n',[type' ; lut(:,[6 3 4 5 7 ... 8])']); 32 82 fclose(fid);
Note: See TracChangeset
for help on using the changeset viewer.