source: trunk/MESOSCALE_DEV/PLOT/RESERVE/movie.idl_old @ 207

Last change on this file since 207 was 85, checked in by aslmd, 14 years ago

LMD_MM_MARS et LMD_LES_MARS: ajout des routines IDL pour tracer les sorties --> voir mesoscale/PLOT

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1;;---------------------------------------
2;  MOVIES
3;
4;  check parameters then type:
5;
6;  @movie.idl
7;
8;;---------------------------------------
9
10@user.idl
11
12denom=plot+'_'+coord+'_'+field1
13
14if (already_data eq 'yes') then SPAWN, 'ln -sf  '+folder+'/'+coord+'.input.ctl input.ctl'
15if (already_data eq 'yes') then SPAWN, 'ln -sf  '+folder+'/'+coord+'.input.dat input.dat'
16
17SPAWN, '\rm map_latlon_user'
18SPAWN, 'tail -15 user.idl > map_latlon_user'
19.compile map_latlon
20
21SPAWN, '\rm section_user'
22SPAWN, 'tail -15 user.idl > section_user'
23.compile section
24
25for i=1,num do $
26        out_wrf, $
27        plot=plot, $
28        field1=field1, $
29        field2=field2, $
30        when=i, $
31        winds=winds, $
32        level=level,$
33        save_data=yeah,$
34        topo=topo,$
35        range=range,$
36        colors=colors, $
37        nlon=nlon, $
38        nlat=nlat
39
40print, 'generating movie ...'
41SPAWN, 'rm -rf temp'
42SPAWN, 'mkdir temp'
43SPAWN, 'mv -f '+denom+'??.ps temp'
44SPAWN, 'cp bigconvert200 temp'
45SPAWN, 'cd temp ; bigconvert200 *.ps ; convert -delay 60 *.png movie.gif ; cd ..'
46if (nomovie ne 'yes') then SPAWN, 'animate temp/movie.gif &'
47print, 'done'
48SPAWN, 'mv -f temp/'+denom+'??.ps '+folder+'/'
49SPAWN, 'mv -f temp/movie.gif '+folder+'/'+denom+'.gif'
50SPAWN, 'mv -f temp/'+denom+'??.png '+folder+'/'
51if (backup_data eq 'yes') then SPAWN, 'cp -f namelist.ARWpost '+folder+'/'+coord+'.namelist.ARWpost'
52if (backup_data eq 'yes') then SPAWN, 'cp -f input.ctl '+folder+'/'+coord+'.input.ctl'
53if (backup_data eq 'yes') then SPAWN, 'cp -f input.dat '+folder+'/'+coord+'.input.dat'
54
55SPAWN, 'cp -f user.idl '+folder+'/'+denom+'.idl'
Note: See TracBrowser for help on using the repository browser.