source: trunk/MESOSCALE/LMD_MM_MARS/SRC/ARWpost/scripts/plot_all.gs @ 134

Last change on this file since 134 was 11, checked in by aslmd, 14 years ago

spiga@svn-planeto:ajoute le modele meso-echelle martien

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1'reinit'
2'open ofs.ctl'
3
4print_gif = 0
5
6'set display color white'
7'set grads off'
8'clear'
9'set mpdset hires'
10'set gxout shaded'
11
12'q file'
13rec=sublin(result,6)
14_endfieldnr=subwrd(rec,5) + 6
15
16'q ctlinfo'
17rec=sublin(result,11)
18_t=subwrd(rec,2)
19
20
21***** Loop through time staring from t
22t = 0
23while ( t < _t )
24  t = t + 1
25  'set t 't
26  fieldnr = 7
27 
28***** PLOT ALL THE FIELDS   
29  while ( fieldnr < _endfieldnr )
30    'clear'
31    'q file'
32    rec=sublin(result,fieldnr)
33    say rec
34    field=subwrd(rec,1)
35    _levs=subwrd(rec,2)
36 
37    current_lev = 0
38    if ( _levs = 0 )
39      'clear'
40      'd ' field
41      'run cbar'
42      'draw title ' rec
43
44      if (print_gif = 1)
45        'printim 'field'.gif gif'
46      else
47        pull dummy
48      endif
49    else
50    while ( current_lev < _levs )
51      'clear'
52      current_lev = current_lev + 1
53      'set z 'current_lev
54      'd ' field
55      'run cbar'
56      'draw title ' rec ' - lev ' current_lev
57
58      if (print_gif = 1)
59        'printim 'field'_'current_lev'.gif gif'
60      else
61        pull dummy
62      endif
63    endwhile
64    endif
65
66 
67    fieldnr = fieldnr + 1
68  endwhile
69
70endwhile
Note: See TracBrowser for help on using the repository browser.