all/00.initial.ncl
changeset 1 4be95183fbcd
equal deleted inserted replaced
-1:000000000000 0:a0deff416006
       
     1 ;*****************************************************
       
     2 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
       
     3 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
       
     4 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
       
     5 ;****************************************************************************
       
     6 ; Main code.
       
     7 ;****************************************************************************
       
     8 begin
       
     9 
       
    10 ;--------------------------------------------------
       
    11 ; edit table.html of current model for movel1_vs_model2
       
    12 
       
    13  if (isvar("compare")) then
       
    14     html_name2 = compare+"/table.html"  
       
    15     html_new2  = html_name2 +".new" 
       
    16 
       
    17     system("sed -e '/"+modeln+"/s/"+modeln+"/"+model_name+"/' "+html_name2+" > "+html_new2+";"+ \
       
    18            "mv -f "+html_new2+" "+html_name2)
       
    19  end if
       
    20 ;-------------------------------------
       
    21 ; edit table.html for current model
       
    22 
       
    23  html_name = model_name+"/table.html"  
       
    24  html_new  = html_name +".new"
       
    25  system("sed s#model_name#"+model_name+"# "+html_name+" > "+html_new+";"+ \
       
    26         "mv -f "+html_new+" "+html_name)
       
    27 
       
    28 ;---------------------------------------------------------------------------
       
    29 
       
    30 end
       
    31