source: branches/2013/dev_MERGE_2013/NEMOGCM/CONFIG/ORCA2_LIM/IDL_scripts/std_plot_IceAge.pro @ 4514

Last change on this file since 4514 was 4514, checked in by flavoni, 7 years ago

add ice pots & time series, see ticket #724

File size: 1.8 KB
Line 
1pro std_plot_IceAge, Iage1, Iage2, ARC = arc, ANT = ant, MARCH = march, SEPT = sept, POSTSCRIPT = postscript, _extra = ex
2
3  compile_opt idl2, strictarrsubs
4
5@common 
6@std_common
7
8  cdti3 = string(cnt, format = '(i3.3)')
9  print, cdti3 + ') ' + blabla
10
11  var = 'IceAge'
12  IF keyword_set(arc) THEN var = var+'_Arc_'
13  IF keyword_set(ant) THEN var = var+'_Ant_'
14  IF keyword_set(march) THEN var = var+'March'
15  IF keyword_set(sept) THEN var = var+'Sept'
16
17  filename = cdti3 + '_'+var+'_'+std_file1_I
18  IF std_file1_I NE std_file2_I then filename = filename + '_'+std_file2_I
19  IF KEYWORD_SET(postscript) then openps, filename+'.ps', portrait = 1
20 
21  IF keyword_set(arc) THEN BEGIN
22    domdef, 20, 380, 50, 90
23    vmin = 0.
24    vmax = 7.
25    vint = 1.
26    fmtd = '(f4.1)'
27    map = [90, 0, 0]
28  ENDIF
29  IF keyword_set(ant) THEN BEGIN
30    domdef, 20, 380, -90, -50
31    vmin = 0.
32    vmax = 2.
33    vint = 0.5
34    fmt = '(f4.1)'
35    map = [-90, 0, 0]
36  ENDIF
37;
38  varunit = Iage1.unit
39;
40  title = var+'!C'+std_file1_I
41  plt, Iage1.arr, MIN = vmin, MAX = vmax, INTER = vint, /STRICTFILL, CELL_FILL = 2, format = fmt $
42       , small = [1, 2, 1], COAST_THICK = 2, TITLE = title, divisions = div  $
43       , CHARSIZE = 1.05, GLINETHICK = 2., /ORTHO, MAP = map, /PORTRAIT, _extra = ex
44;                                ;
45  if std_file1_I NE std_file2_I then begin           
46    title = title + std_file2_I
47    plt, Iage1.arr - Iage2.arr, MIN = vmind, MAX = vmaxd, INTER = vintd, STYLE = 'so0so', format = fmtd $
48         , small = [1, 2, 2], COAST_THICK = 2, CELL_FILL = 2, TITLE = title  $
49         , CHARSIZE = 1.05, GLINETHICK = 2., /ORTHO, MAP = map, /NOERASE, _extra = ex
50  endif                       
51 
52  domdef
53
54  htmltxt = [ htmltxt, '<hr>'+blabla, '<br><img width="80%" src='+filename+'.png  />  ' ]
55  if KEYWORD_SET(postscript) then closeps
56
57  return
58end
Note: See TracBrowser for help on using the repository browser.