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 3889 for branches/2012 – NEMO

Changeset 3889 for branches/2012


Ignore:
Timestamp:
2013-04-23T11:04:50+02:00 (11 years ago)
Author:
flavoni
Message:

small modifications for IDL_scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/CONFIG/ORCA2_LIM/IDL_scripts/std_ts_ICE.pro

    r3888 r3889  
    1515  time_ice = ncdf_lec( std_file_ice, VAR='time' ) 
    1616  time_ice = (time_ice - FLOOR(time_ice) ) * 12 
    17   time_ice = round(time_ice) ; arrondir a intero + vicino 
     17  time_ice = round(time_ice) ; round to nearest integer  
    1818  t1 = where(time_ice eq 0) 
    19   t1 = t1[0] ;  gennaio 
     19  t1 = t1[0] ;  jannuary 
    2020  t2 = where(time_ice eq 11, count) 
    21   t2 = t2[count-1] ; ultimo giorno di dicembre 
     21  t2 = t2[count-1] ; last day of december 
    2222  nyear = (t2-t1+1)/12 
    2323  vICE_ext_NH = ncdf_lec(std_file_ice, VAR=getenv('VAR_ICE_EXT_NH') ) 
    2424  vICE_ext_NH = vICE_ext_NH[t1:t2] 
    25   vICE_ext_NH = reform(vICE_ext_NH,12,nyear); putin 2d array 
    26   vICE_ext_NH = total(vICE_ext_NH,2)/nyear ; faccio il totale sulla seconda dimensione (gli anni) 
     25  vICE_ext_NH = reform(vICE_ext_NH,12,nyear); put in 2D array 
     26  vICE_ext_NH = total(vICE_ext_NH,2)/nyear ;  total over 2th dimension (i.e.years) 
    2727;  
    2828  vICE_ext_SH = ncdf_lec(std_file_ice, VAR=getenv('VAR_ICE_EXT_SH') ) 
    2929  vICE_ext_SH = vICE_ext_SH[t1:t2] 
    30   vICE_ext_SH = reform(vICE_ext_SH,12,nyear); putin 2d array 
    31   vICE_ext_SH = total(vICE_ext_SH,2)/nyear ; faccio il totale sulla seconda dimensione (gli anni) 
     30  vICE_ext_SH = reform(vICE_ext_SH,12,nyear); put in 2D array 
     31  vICE_ext_SH = total(vICE_ext_SH,2)/nyear ; total over 2th dimension (i.e.years) 
    3232; 
    3333  vICE_area_NH = ncdf_lec(std_file_ice, VAR=getenv('VAR_ICE_area_NH') ) 
    3434  vICE_area_NH = vICE_area_NH[t1:t2] 
    35   vICE_area_NH = reform(vICE_area_NH,12,nyear); putin 2d array 
    36   vICE_area_NH = total(vICE_area_NH,2)/nyear ; faccio il totale sulla seconda dimensione (gli anni) 
     35  vICE_area_NH = reform(vICE_area_NH,12,nyear); put in 2D array 
     36  vICE_area_NH = total(vICE_area_NH,2)/nyear ;  total over 2th dimension (i.e.years) 
    3737; 
    3838  vICE_area_SH = ncdf_lec(std_file_ice, VAR=getenv('VAR_ICE_area_SH') ) 
    3939  vICE_area_SH = vICE_area_SH[t1:t2] 
    40   vICE_area_SH = reform(vICE_area_SH,12,nyear); putin 2d array 
    41   vICE_area_SH = total(vICE_area_SH,2)/nyear ; faccio il totale sulla seconda dimensione (gli anni) 
     40  vICE_area_SH = reform(vICE_area_SH,12,nyear); put in 2D array 
     41  vICE_area_SH = total(vICE_area_SH,2)/nyear ; total over 2th dimension (i.e.years) 
    4242 
    4343  cdti3 = string(cnt, format = '(i3.3)') 
     
    5050; 
    5151  iodir = std_iodir_data 
    52   ; ICE Extent and Ice Extent minus 15% in NORTH Hemisphere 
     52  ; ICE Extent in NORTH Hemisphere 
    5353  domdef, 0, jpi-1, 30, 90, /xindex 
    5454  ICE_N = rseries_ncdf(vICE1, date1, date2, prefix, suffix, FIRSTONLY = 1 - allrec) 
     
    5959  ice_n = total(ice_n,2)/nyr 
    6060  ICE_N = {arr:ICE_N * 1.e-12, unit : '10^12 m^2'} 
    61   ; extend di ghiaccio meno il 15% 
     61  ; ICE EXTENT minus 15% in NORTH Hemisphere 
    6262  ICE_N_15 = rseries_ncdf(vICE1, date1, date2, prefix, suffix, FIRSTONLY = 1 - allrec) 
    6363  msk = ICE_N_15.arr gt 0.15 ; remove 0.15% for observations 
     
    6969  ICE_N_15 = {arr:ICE_N_15 * 1.e-12, unit : '10^12 m^2'} 
    7070  ; 
    71   ;ICE Extent and Ice Extent minus 15% in NORTH Hemisphere 
     71  ;ICE Extent in SOUTH Hemisphere 
    7272  domdef, 0, jpi-1, -90, -30, /xindex  
    7373  ICE_S = rseries_ncdf(vICE1, date1, date2, prefix, suffix, FIRSTONLY = 1 - allrec) 
     
    7878  ice_S = total(ice_S,2)/nyr 
    7979  ICE_S = {arr:ICE_S * 1.e-12, unit : '10^12 m^2'} 
    80   ; 
    81   ;extend di ghiaccio meno il 15% 
     80  ; ICE EXTENT minus 15% in SOUTH Hemisphere 
    8281  ICE_S_15 = rseries_ncdf(vICE1, date1, date2, prefix, suffix, FIRSTONLY = 1 - allrec) 
    8382  msk = ICE_S_15.arr gt 0.15 ; remove 0.15% for observations 
     
    8988  ICE_S_15 = {arr:ICE_S_15 * 1.e-12, unit : '10^12 m^2'} 
    9089  ; 
    91   title = prefix+' '+d1_d2+'!C'+'Global Annual Mean Ice Area (North. Hemisp.) (Black SOLID simulation) and Extend minus 15% (Blue SOLID simulation)'+'!C'+'Observation (dashed)' 
     90  title = prefix+' '+d1_d2+'!C'+'Global Annual Mean Ice Area (North. Hemisp.) (Black SOLID simulation)'+'!C'+ ' and Extend minus 15% (Blue SOLID simulation)'+'!C'+'Observation (dashed)' 
    9291  jpt=12 
    9392  time=julday(1,15,1900)+30*lindgen(12) 
    9493  pltt, ICE_N, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT,MIN = 4., MAX = 16. $ 
    9594        , small = [1, 2, 1], YTITLE = '10^12 m^2 ', TITLE = title, _extra = ex 
    96   pltt, ICE_N_15, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT $ ; linee tratteggiate LINESTYLE=2  $ 
     95  pltt, ICE_N_15, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT $ ; dashed lines is LINESTYLE=2  $ 
    9796        , /ov1d, COLOR = 100, small = [1, 2, 1], YTITLE = '10^12 m^2 ', TITLE = title, _extra = ex  
    98   pltt,  vICE_area_NH, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT, LINESTYLE=2 $ ; linee tratteggiate  $ 
     97  pltt,  vICE_area_NH, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT, LINESTYLE=2 $  
    9998         , /ov1d, small = [1, 2, 1], YTITLE = '10^12 m^2 ', TITLE = title, _extra = ex 
    100   pltt,  vICE_ext_NH, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT, LINESTYLE=2 $ ; linee tratteggiate  $ 
     99  pltt,  vICE_ext_NH, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT, LINESTYLE=2 $  
    101100        , /ov1d, COLOR = 100, small = [1, 2, 1], YTITLE = '10^12 m^2 ', TITLE = title, _extra = ex 
    102 ;;;DA RIMETTERE? return  
    103   title = prefix+' '+d1_d2+' - '+'Global Annual Mean Ice Area (South. Hemisp.) (Black) and Extend minus 15% (Blue)'+'!C'+'Observation (dashed)' 
     101;return  
     102  title = prefix+' '+d1_d2+' - '+'!C'+'Global Annual Mean Ice Area (South. Hemisp.) (Black SOLID simulation)'+'!C'+ ' and Extend minus 15% (Blue SOLID simulation)'+'!C'+'Observation (dashed)' 
    104103  pltt, ICE_S, 't', 0., 15.,19000101 ,19001231 , /REMPLI, /NOERASE , MIN = 0., MAX = 20. $ 
    105104        , small = [1, 2, 2], YTITLE = '10^12 m^2 ', TITLE = title, _extra = ex 
    106   pltt, ICE_S_15, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT $ ; linee tratteggiate LINESTYLE=2  $ 
     105  pltt, ICE_S_15, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT $  
    107106        , /ov1d, COLOR = 100, small = [1, 2, 1], YTITLE = '10^12 m^2 ', TITLE = title, _extra = ex  
    108   pltt,  vICE_area_SH, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT, LINESTYLE=2 $ ; linee tratteggiate  $ 
     107  pltt,  vICE_area_SH, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT, LINESTYLE=2 $  
    109108         , /ov1d, small = [1, 2, 1], YTITLE = '10^12 m^2 ', TITLE = title, _extra = ex 
    110   pltt,  vICE_ext_SH, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT, LINESTYLE=2 $ ; linee tratteggiate  $ 
     109  pltt,  vICE_ext_SH, 't', 0., 15., 19000101, 19001231, /REMPLI, /PORTRAIT, LINESTYLE=2 $  
    111110        , /ov1d, COLOR = 100, small = [1, 2, 1], YTITLE = '10^12 m^2 ', TITLE = title, _extra = ex 
    112 ;;return 
     111;return 
    113112  htmltxt = [ htmltxt, '<hr>'+blabla, '<br><img width="80%" src='+filename+'.png  />  ' ] 
    114113  if KEYWORD_SET(postscript) then closeps 
     
    117116 
    118117    d1_d2_2 = '('+strtrim(date1_2, 1)+' - '+strtrim(date2_2, 1)+')' 
    119  
    120118    tsave = time 
    121119    domdef, 0, jpi-1, 30, 90, /xindex 
     120    ;ICE Extent in NORTH Hemisphere 
    122121    ICE_N2 = rseries_ncdf(vICE2, date1_2, date2_2, prefix2, suffix2, FIRSTONLY = 1 - allrec) 
    123122    ICE_N2 = grossemoyenne(ICE_N2.arr, 'xy', /integration, mask2d = masknp) 
     
    127126    ICE_N2 = total(ICE_N2,2)/nyr 
    128127    ICE_N2 = {arr:ICE_N2 * 1.e-12, unit : '10^12 m^2'} 
    129     ; extend di ghiaccio meno il 15% 
     128    ;ICE Extent minus 15% in NORTH Hemisphere 
    130129    ICE_N2_15 = rseries_ncdf(vICE2, date1_2, date2_2, prefix_2, suffix_2, FIRSTONLY = 1 - allrec) 
    131130    msk = ICE_N2_15.arr gt 0.15  ; remove 0.15% for observations 
     
    136135    ICE_N2_15 = total(ICE_N2_15,2)/nyr 
    137136    ICE_N2_15 = {arr:ICE_N2_15 * 1.e-12, unit : '10^12 m^2'} 
    138      ;ICE Extent and Ice Extent minus 15% in NORTH Hemisphere 
     137    ;ICE Extent in SOUTH Hemisphere 
    139138    domdef, 0, jpi-1, -90, -30, /xindex  
    140139    ICE_S2 = rseries_ncdf(vICE2, date1_2, date2_2, prefix_2, suffix_2, FIRSTONLY = 1 - allrec) 
     
    145144    ICE_S2 = total(ICE_S2,2)/nyr 
    146145    ICE_S2 = {arr:ICE_S2 * 1.e-12, unit : '10^12 m^2'} 
    147     ; 
    148     ;extend di ghiaccio meno il 15% 
     146    ;ICE Extent minus 15% in SOUTH Hemisphere 
    149147    ICE_S2_15 = rseries_ncdf(vICE2, date1_2, date2_2, prefix_2, suffix_2, FIRSTONLY = 1 - allrec) 
    150148    msk = ICE_S2_15.arr gt 0.15  ; remove 0.15% for observations 
Note: See TracChangeset for help on using the changeset viewer.