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_sss.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_sss.pro

    r2733 r2751  
    1 pro xxx_SSS, S1, S2, SLev, sEXP1, sEXP2, start_end, POSTSCRIPT = postscript, _extra = ex 
     1pro std_plot_sss, S1, S2, SLev, 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  filename = cdti3 + '_SSS_'+std_file1_T 
     11  if std_file1_T NE std_file2_T then filename = filename + '_'+std_file2_T 
     12  if KEYWORD_SET(postscript) then openps, filename+'.ps', portrait = 1 
    213   
    3  @common 
    4  compile_opt idl2, strictarrsubs 
    5   
    6  if KEYWORD_SET(POSTSCRIPT) then begin 
    7     openps, '007_SSS_'+sEXP1+'-'+sEXP2+'_y'+start_end+'.ps', portrait = 1 
    8  endif  
    9        
    10  varunit = S1.unit   
    11   
    12  title = sEXP1+' / SSS year '+start_end 
    13  plt, S1.arr[*,*,0] , MIN = 33., MAX = 41., INTER = .25, STYLE = 'so0so' $ 
    14       , small = [1,2,1], COAST_THICK = 2, TITLE=title, /NOERASE, _extra = ex  
     14  varunit = S1.unit   
     15   
     16  title = 'SSS!C'+std_file1_T 
     17  plt, S1.arr[*, *, 0], MIN = 33., MAX = 41., INTER = .25, format = '(f4.1)' $ 
     18       , small = [1, 2, 1], COAST_THICK = 2, TITLE = title, /PORTRAIT, _extra = ex  
    1519                                ; 
    16  if sEXP1 ne sEXP2 then begin 
    17      
    18     title = sEXP1+' - '+sEXP2+' / SSS year '+start_end 
    19     plt, S1.arr[*,*,0] - S2.arr[*,*,0], MIN = -2., MAX = 2., INTER = .2 $ 
    20          , small = [1,2,2], COAST_THICK = 2, TITLE = title, _extra=ex 
     20  if std_file1_T NE std_file2_T then begin 
     21    title = 'SSS!C'+std_file1_T+' - '+std_file2_T 
     22    plt, S1.arr[*, *, 0] - S2.arr[*, *, 0], MIN = -2., MAX = 2., INTER = 0.2, STYLE = 'so0so' $ 
     23         , small = [1, 2, 2], COAST_THICK = 2, TITLE = title, /noerase, format = '(f4.1)', _extra = ex 
     24  endif else begin 
     25    title = 'SSS!C'+std_file1_T+' - Levitus' 
     26    plt, S1.arr[*, *, 0] - SLev.arr[*, *, 0], MIN = -3., MAX = 3., INTER = 0.2, STYLE = 'so0so' $ 
     27         , small = [1, 2, 2], COAST_THICK = 2, TITLE = title, /noerase, format = '(f4.1)', _extra = ex 
     28  endelse 
     29                                ; 
     30   htmltxt = [ htmltxt, '<hr>'+blabla, '<br><img width="80%" src='+filename+'.png  />  ' ] 
     31  if KEYWORD_SET(postscript) then closeps 
    2132 
    22  endif else begin 
    23  
    24     title = sEXP1+' - Levitus / SSS year '+start_end 
    25     plt, S1.arr[*,*,0]-SLev.arr[*,*,0], MIN = -3., MAX = 3., INTER = 0.2, STYLE = 'so0so' $ 
    26          , small = [1,2,2], COAST_THICK = 2, TITLE = title, /PORTRAIT, _extra = ex 
    27  
    28  endelse 
    29   
    30                                 ; 
    31    title = 'SSS differences with Levitus and '+sEXP1+'-'+sEXP2 
    32    text = [   title, '<img width="80%" src=/Users/sflod/TOOLS/my_IDL/PS/'+sEXP1+'_'+sEXP2+'/ps/007_SSS_'+sEXP1+'-'+sEXP2+'_y'+start_end+'.png  />  ' ] 
    33    putfile, '/tmp/prova.txt', text 
    34  
    35  if KEYWORD_SET(POSTSCRIPT) then begin 
    36     closeps 
    37  endif  
    38  
    39  return 
     33  return 
    4034end 
Note: See TracChangeset for help on using the changeset viewer.