New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
std_plot_ArcSal.pro in NEMO/branches/2019/dev_r11842_SI3-10_EAP/cfgs/ORCA2_ICE_PISCES/IDL_scripts – NEMO

source: NEMO/branches/2019/dev_r11842_SI3-10_EAP/cfgs/ORCA2_ICE_PISCES/IDL_scripts/std_plot_ArcSal.pro @ 11843

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

commit idl scripts deleted

File size: 2.2 KB
Line 
1pro std_plot_ArcSal, S1, S2in, SLevin, Z100 = z100, POSTSCRIPT = postscript, _extra = ex
2
3  compile_opt idl2, strictarrsubs
4
5@common 
6@std_common
7
8  CASE n_params() OF
9    2:BEGIN
10      Slev = S2in
11    END
12    3:BEGIN
13      IF S2in.arr[0] EQ -1 THEN return
14      S2 = S2in
15      Slev = Slevin
16    END
17  ENDCASE
18;
19  cdti3 = string(cnt, format = '(i3.3)')
20  print, cdti3 + ') ' + blabla
21;
22  IF keyword_set(z100) THEN tmp = min(abs(100 - gdept), ind) ELSE ind = 0
23  sdepref = strtrim(round(gdept[ind]), 1)+'m'
24  filename = cdti3 + '_Arctic_Sal'+sdepref+'_'+std_file1_T
25  IF keyword_set(S2) THEN filename = filename + '_' + std_file2_T
26  if KEYWORD_SET(postscript) then openps, filename+'.ps', portrait = 1
27;
28  domdef, 20, 380, 50, 90
29;
30  varunit = S1.unit
31  titleorg = 'Salinity ('+sdepref+')!C'
32;
33  IF keyword_set(S2) THEN BEGIN
34    title = titleorg+std_file1_T+ ' - '+std_file2_T
35    plt, S1.arr - S2.arr, MIN = -4., MAX = 4., INTER = 0.2, CELL_FILL = 2,  STYLE = 'so0so', format = '(f4.1)'  $     
36         , small = [1, 2, 1], COAST_THICK = 2, TITLE = title, CHARSIZE = -0.55, GLINETHICK = 2. $     
37         , /ORTHO, MAP = [90, 0, 0], LATDEL = 5, boxzoom = [ind, ind], /zindex, /portrait, _extra = ex
38  ENDIF ELSE BEGIN
39    title = titleorg+std_file1_T
40    plt, S1, MIN = 30.0, MAX = 36., INTER = 0.2, CELL_FILL = 2, format = '(f4.1)' $
41         , small = [1, 2, 1], COAST_THICK = 2, TITLE = title, CHARSIZE = -0.55, GLINETHICK = 2. $
42         , /ORTHO, MAP = [90, 0, 0], LATDEL = 5, boxzoom = [ind, ind], /zindex, /PORTRAIT, _extra = ex
43  ENDELSE
44;
45  IF keyword_set(S2) THEN BEGIN
46    title = titleorg+std_file2_T+ ' - Levitus'
47    tmp = S2.arr - SLev.arr
48  ENDIF ELSE BEGIN
49    title = titleorg+std_file1_T+ ' - Levitus'
50    tmp = S1.arr - SLev.arr
51  ENDELSE
52  plt, temporary(tmp), MIN = -4., MAX = 4., INTER = 0.2, CELL_FILL = 2,  STYLE = 'so0so', format = '(f4.1)'  $     
53       , small = [1, 2, 2], COAST_THICK = 2, TITLE = title, CHARSIZE = -0.55, GLINETHICK = 2. $     
54       , /ORTHO, MAP = [90, 0, 0], LATDEL = 5, boxzoom = [ind, ind], /zindex, /NOERASE, _extra = ex
55;
56  domdef
57;
58  htmltxt = [ htmltxt, '<hr>'+blabla, '<br><img width="80%" src='+filename+'.png  />  ' ]
59  if KEYWORD_SET(postscript) then closeps
60 
61  return
62end
Note: See TracBrowser for help on using the repository browser.