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

    r2735 r2751  
    1 pro xxx_Med_S_tongue, S1, S2, SLev, sEXP1, sEXP2, start_end, DEPTH=depth, LAT=lat, POSTSCRIPT = postscript,  _extra = ex 
    2    
     1pro std_plot_Med_Sspread, S1, S2, SLev, depth, POSTSCRIPT = postscript,  _extra = ex 
     2 
    33  compile_opt idl2, strictarrsubs 
    44 
    5    @common 
     5@common   
     6@std_common 
    67 
     8  cdti3 = string(cnt, format = '(i3.3)') 
     9  print, cdti3 + ') ' + blabla 
     10  tmp = min(abs(depth - gdept), ind) 
     11  sdepref = strtrim(round(gdept[ind]), 1)+'m' 
     12  filename = cdti3 + '_Med_Sspread_'+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 = 'Salinity ('+sdepref+')!C'+std_file1_T 
     17  plt, S1, MININ = 35., MAXIN = 37., INTER = 0.1, FORMAT = '(f4.1)' $ 
     18       , small = [1, 2, 1], boxzoom = [270, 365, 5, 70, ind, ind], /zindex, COAST_THICK = 2, TITLE = title, /PORTRAIT, _extra = ex 
     19; 
     20  if std_file1_T NE std_file2_T then begin 
     21    title = title+ ' - '+std_file2_T 
     22    plt, S1.arr - S2.arr, MININ = -.4, MAXIN = .4, INTER = .05, STYLE = 'so0so', FORMAT = '(f4.1)'  $ 
     23         , small = [1, 2, 2], boxzoom = [270, 365, 5, 70, ind, ind], /zindex, COAST_THICK = 2, TITLE = title, /noerase, _extra = ex 
     24  endif else begin 
     25    title = title+ ' - Levitus' 
     26    plt, S1.arr - SLev.arr, MININ = -1., MAXIN = 1., INTER = 0.1, STYLE = 'so0so', FORMAT = '(f4.1)'  $ 
     27         , small = [1, 2, 2], boxzoom = [270, 365, 5, 70, ind, ind], /zindex, COAST_THICK = 2, TITLE = title, /noerase, _extra = ex 
     28  ENDELSE 
    729 
    8    if KEYWORD_SET(POSTSCRIPT) then begin 
    9       openps, '028_Med_S_tongue_'+sEXP1+'_'+strtrim(lat,1)+'_d'+strtrim(depth,1)+'_S_y'+start_end+'.ps'    
    10    endif 
    11 ;domdef, 0, 6000 
     30  htmltxt = [ htmltxt, '<hr>'+blabla, '<br><img width="80%" src='+filename+'.png  />  ' ] 
     31  if KEYWORD_SET(postscript) then closeps 
    1232 
    13 ;domdef,270,365,5,70 
    14 minval = min(abs(gdept -  depth),index) 
    15 ; 
    16 varunit = S1.unit 
    17  
    18    title = sEXP1+' Mediterranean salt tongue at depth=' + strtrim(gdept[index],1)+' m / year '+start_end 
    19    plt, S1.arr, MININ=35., MAXIN=37., INTER=0.1,  UNIT= varunit $ 
    20          , small=[1,2,1], boxzoom = [270, 365, 5,70, index,index],/zindex, COAST_THICK=2, TITLE=title,  /PORTRAIT, _extra=ex 
    21 ; 
    22   if sEXP1 ne sEXP2 then begin 
    23       
    24      title = sEXP1+' - '+sEXP2+' Mediterranean salt tongue at depth=' + strtrim(gdept[index],1)+' m / year '+start_end 
    25      plt, S1.arr - S2.arr, MININ = -.4, MAXIN = .4, INTER = .05,  UNIT = varunit $ 
    26           , small=[1,2,2], boxzoom = [270, 365, 5,70, index,index],/zindex, COAST_THICK=2, TITLE=title,  /PORTRAIT, _extra=ex 
    27    
    28   endif else begin 
    29       
    30      title = sEXP1+' - Levitus Mediterranean salt tongue at depth=' + strtrim(gdept[index],1)+' m / year '+start_end 
    31      plt, S1.arr - SLev.arr, MININ=-1., MAXIN=1., INTER=0.1,  UNIT = varunit $ 
    32           , small=[1,2,2], boxzoom = [270, 365, 5,70, index,index],/zindex, COAST_THICK=2, TITLE=title,  /PORTRAIT, _extra=ex 
    33       
    34   endelse 
    35  
    36   title ='Mediterranean water Lat: '+strtrim(lat,1)+', '+strtrim(depth,1) 
    37   text = [   title, '<img width="80%" src=/Users/sflod/TOOLS/my_IDL/PS/'+sEXP1+'_'+sEXP2+'/ps/028_Med_S_tongue_'+sEXP1+'_'+strtrim(lat,1)+'_d'+strtrim(depth,1)+'_S_y'+start_end+'.png  />  ' ] 
    38   putfile, '/tmp/prova.txt', text 
    39     
    40   if KEYWORD_SET(POSTSCRIPT) then begin 
    41       closeps 
    42    endif 
    43  
    44  
    45    return 
     33  return 
    4634end 
Note: See TracChangeset for help on using the changeset viewer.