source: branches/2012/dev_NOC_2012_rev3555/NEMOGCM/CONFIG/ORCA2_LIM/IDL_scripts/std_ts_T.pro @ 3610

Last change on this file since 3610 was 3610, checked in by acc, 8 years ago

Branch dev_NOC_2012_r3555. #1006. Step 5: Merge in trunk changes between revision 3337 and 3385

File size: 3.7 KB
Line 
1pro std_ts_T, masknp, s_iodir_data, POSTSCRIPT = postscript, _extra = ex
2
3  compile_opt idl2, strictarrsubs
4 
5@common
6@std_common
7
8; get exp1 info
9  vtemp = getenv('VAR1_T')     &   prefix = getenv('V1T_PREF')         &   suffix = getenv('V1T_SUFF')
10  vssh = getenv('VAR1_SSH')    &   sshprefix = getenv('V1SSH_PREF')    &   sshsuffix = getenv('V1SSH_SUFF')
11; get exp2 info
12  vtemp2 = getenv('VAR2_T')    &   prefix2 = getenv('V2T_PREF')        &   suffix2 = getenv('V2T_SUFF')
13  vssh2 = getenv('VAR2_SSH')   &   sshprefix2 = getenv('V2SSH_PREF')   &   sshsuffix2 = getenv('V2SSH_SUFF')
14;
15  cdti3 = string(cnt, format = '(i3.3)')
16  print, cdti3 + ') ' + blabla
17  filename = cdti3 + '_ts_T_'+prefix
18  if prefix NE prefix2 then filename = filename + '_'+prefix2
19  if KEYWORD_SET(postscript) then openps, filename+'_1.ps', portrait = 1
20
21  d1_d2 = '('+strtrim(date1, 1)+' - '+strtrim(date2, 1)+')'
22
23; read levitus data
24  std_file_Levitus_T = isafile(getenv('FILE_TEMP_3D'), title = 'Levitus_T', iodir = std_iodir_climato)
25  Lev = read_ncdf(getenv('VAR_TEMP_3D'), filename = std_file_Levitus_T, /nostruct )
26  Lev_xyz = moyenne(Lev, 'xyz', mask2d = masknp)
27  levz = moyenne(temporary(Lev), 'xy', mask2d = masknp, /KEEPBOTTOM)
28;
29  iodir = std_iodir_data
30;
31
32; read exp1 data
33  std_ts_read, vtemp, date1, date2, prefix, suffix, ts_Temp, ts_z, masknp $
34               , WITHSSH = vssh, SSHPREFIX = sshprefix, SSHSUFFIX = sshsuffix, LEVZ = levz
35
36  title = prefix+' '+d1_d2+'!C'+blabla
37  pltt, ts_Temp, 't', 1., 4.5, date1, date2, /REMPLI $
38        , small = [1, 2, 1], YTITLE = varunit, TITLE = title, /PORTRAIT, _extra = ex
39
40  title = prefix+' '+d1_d2+' - Levitus!C'+blabla
41  pltt, ts_Temp - Lev_xyz, 't', -1., 1., date1, date2, /REMPLI $
42        , small = [1, 2, 2], YTITLE = varunit, TITLE = title, /NOERASE, _extra = ex
43
44  htmltxt = [ htmltxt, '<hr>'+blabla, '<br><img width="80%" src='+filename+'_1.png  />  ' ]
45  if KEYWORD_SET(postscript) then closeps
46  if KEYWORD_SET(postscript) then openps, filename+'_2.ps', portrait = 1
47
48  title = prefix+' '+d1_d2+' - Levitus!C ZT-plot (0-1500m) '+blabla
49  pltt, ts_z, 'zt', -2., 2., inter = .2, date1, date2, /REMPLI, style = 'so0so' $
50        , small = [1, 2, 1], YTITLE = varunit, TITLE = title, boxzoom = 1500., /portrait, window = 1, _extra = ex
51 
52  title = prefix+' '+d1_d2+' - Levitus!C ZT-plot (0-6000m) '+blabla
53  pltt, ts_z, 'zt', -2., 2., inter = .2, date1, date2, /REMPLI, style = 'so0so' $
54        , small = [1, 2, 2], YTITLE = varunit, TITLE = title, boxzoom = 6000., /NOERASE, _extra = ex
55 
56  htmltxt = [ htmltxt, '<hr>'+blabla, '<br><img width="80%" src='+filename+'_2.png  />  ' ]
57  if KEYWORD_SET(postscript) then closeps
58
59  IF prefix NE prefix2 THEN BEGIN
60
61    d1_d2_2 = '('+strtrim(date1_2, 1)+' - '+strtrim(date2_2, 1)+')'
62; read exp2 data
63    tsave = time
64    std_ts_read, vtemp2, date1_2, date2_2, prefix2, suffix2, ts_Temp2, ts_z2, masknp $
65                 , WITHSSH = vssh2, SSHPREFIX = sshprefix2, SSHSUFFIX = sshsuffix2, LEVZ = levz
66    time = tsave   &   IF n_elements(time) NE jpt THEN stop
67
68    if KEYWORD_SET(postscript) then openps, filename+'_3.ps', portrait = 1
69
70    title = prefix+' '+d1_d2+' - '+prefix2+' '+d1_d2_2+'!C'+blabla
71    pltt, ts_Temp - ts_Temp2, 't', -1., 1., date1, date2, /REMPLI $
72          , COLOR = 250, small = [1, 2, 1], YTITLE = varunit, TITLE = title, /PORTRAIT, window = 2, _extra = ex
73
74    title = prefix+' '+d1_d2+' - '+prefix2+' '+d1_d2_2+'!C ZT-plot (0-6000m) '+blabla
75    pltt, ts_z - ts_z2, 'zt', -1., 1., inter = .1, date1, date2, /REMPLI, style = 'so0so' $
76          , small = [1, 2, 2], YTITLE = varunit, TITLE = title, boxzoom = 6000., /NOERASE, _extra = ex
77
78    htmltxt = [ htmltxt, '<hr>'+blabla, '<br><img width="80%" src='+filename+'_3.png  />  ' ]
79    if KEYWORD_SET(postscript) then closeps
80   
81  ENDIF
82
83  return
84end
Note: See TracBrowser for help on using the repository browser.