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

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