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.
Changeset 2751 for trunk/NEMOGCM/CONFIG/ORCA2_LIM/IDL_scripts/std_plot_T100m.pro – NEMO

Ignore:
Timestamp:
2011-04-26T10:45:52+02:00 (13 years ago)
Author:
smasson
Message:

large update of IDL_scripts for Is-ENES

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/CONFIG/ORCA2_LIM/IDL_scripts/std_plot_T100m.pro

    r2733 r2751  
    1 pro xxx_T_z105,  T1, T2, TLev, sEXP1, sEXP2, start_end, POSTSCRIPT = postscript, _extra = ex 
    2    
    3  @common  
    4  compile_opt idl2, strictarrsubs 
     1pro std_plot_T100m, T1, T2, TLev, POSTSCRIPT = postscript, _extra = ex 
    52 
    6   
    7  if KEYWORD_SET(POSTSCRIPT) then begin 
    8     openps, '012_T_z105_'+sEXP1+'-'+sEXP2+'_y'+start_end+'.ps', portrait = 1 
    9  endif 
     3  compile_opt idl2, strictarrsubs 
     4 
     5@common   
     6@std_common 
     7 
     8  cdti3 = string(cnt, format = '(i3.3)') 
     9  print, cdti3 + ') ' + blabla 
     10  tmp = min(abs(100 - gdept), ind) 
     11  sdepref = strtrim(round(gdept[ind]), 1)+'m' 
     12  filename = cdti3 + '_T'+sdepref+'_'+std_file1_T 
     13  if std_file1_T NE std_file2_T then filename = filename + '_'+std_file2_T 
     14  if KEYWORD_SET(postscript) then openps, filename+'.ps', portrait = 1 
     15;                               
     16  title = 'Temperature ('+sdepref+')!C'+std_file1_T 
     17  plt, T1, MIN = -2., MAX = 32., INTER = 1., FORMAT = '(I2)'  $ 
     18       , small = [1, 2, 1], COAST_THICK = 2, TITLE = title, boxzoom = [105., 106.], /portrait, _extra = ex 
    1019; 
    11  varunit = T1.unit      
    12            ;                               
    13  title = sEXP1+' T (°C) depth=105m / Temp year '+start_end 
    14  plt, T1.arr, MIN = -2., MAX = 32., INTER = 1., STYLE = 'so0so'  $ 
    15       , small = [1,2,1], COAST_THICK = 2, TITLE = title, FORMAT = '(I2)', boxzoom = [105., 106.], /NOERASE, _extra = ex 
    16                                 ; 
    17 if sEXP1 ne sEXP2 then begin 
     20  IF std_file1_T NE std_file2_T THEN BEGIN 
     21    title = title+ ' - '+std_file2_T 
     22    plt, T1.arr - T2.arr, MIN = -2., MAX = 2., INTER = .2, STYLE = 'so0so', FORMAT = '(f4.1)' $ 
     23         , small = [1, 2, 2], COAST_THICK = 2, TITLE = title, boxzoom = [105., 106.], /noerase,  _extra = ex 
     24  ENDIF ELSE BEGIN 
     25    title = title+ ' - Levitus' 
     26    plt, T1.arr - TLev.arr, MIN = -4., MAX = 4., INTER = .5, STYLE = 'so0so', FORMAT = '(I2)'  $ 
     27         , small = [1, 2, 2], COAST_THICK = 2, TITLE = title, boxzoom = [105., 106.], /noerase, _extra = ex    
     28  ENDELSE 
     29; 
     30  htmltxt = [ htmltxt, '<hr>'+blabla, '<br><img width="80%" src='+filename+'.png  />  ' ] 
     31  if KEYWORD_SET(postscript) then closeps 
    1832 
    19   title = sEXP1+' - '+sEXP2+' T (°C) depth=105m / Temp year '+start_end 
    20   plt, T1.arr-T2.arr, MIN = -2., MAX = 2., INTER = .2 $ 
    21        , small = [1,2,2], COAST_THICK = 2, TITLE = title,  _extra=ex 
    22  
    23 endif else begin 
    24  
    25  title = sEXP1+' - Levitus T (°C) depth=105m / Temp year '+start_end 
    26  plt, T1.arr-TLev.arr, MIN = -4., MAX = 4., INTER = .5, STYLE = 'so0so'  $ 
    27       , small = [1,2,2], COAST_THICK = 2, TITLE = title, boxzoom = [105., 106.], /PORTRAIT, _extra = ex    
    28 endelse 
    29                      
    30  
    31  title = 'Temperature differences at z=105 m with Levitus and '+sEXP1+'-'+sEXP2 
    32  text = [   title, '<img width="80%" src=/Users/sflod/TOOLS/my_IDL/PS/'+sEXP1+'_'+sEXP2+'/ps/012_T_z105_'+sEXP1+'-'+sEXP2+'_y'+start_end+'.png  />  ' ] 
    33  putfile, '/tmp/prova.txt', text ; 
    34  
    35  
    36  if KEYWORD_SET(POSTSCRIPT) then begin 
    37     closeps 
    38  endif 
    39   
    40  return 
     33  return 
    4134end 
Note: See TracChangeset for help on using the changeset viewer.