all/00.initial.ncl
changeset 0 0c6405ab2ff4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/all/00.initial.ncl	Mon Jan 26 22:08:20 2009 -0500
     1.3 @@ -0,0 +1,31 @@
     1.4 +;*****************************************************
     1.5 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
     1.6 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
     1.7 +load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
     1.8 +;****************************************************************************
     1.9 +; Main code.
    1.10 +;****************************************************************************
    1.11 +begin
    1.12 +
    1.13 +;--------------------------------------------------
    1.14 +; edit table.html of current model for movel1_vs_model2
    1.15 +
    1.16 + if (isvar("compare")) then
    1.17 +    html_name2 = compare+"/table.html"  
    1.18 +    html_new2  = html_name2 +".new" 
    1.19 +
    1.20 +    system("sed -e '/"+modeln+"/s/"+modeln+"/"+model_name+"/' "+html_name2+" > "+html_new2+";"+ \
    1.21 +           "mv -f "+html_new2+" "+html_name2)
    1.22 + end if
    1.23 +;-------------------------------------
    1.24 +; edit table.html for current model
    1.25 +
    1.26 + html_name = model_name+"/table.html"  
    1.27 + html_new  = html_name +".new"
    1.28 + system("sed s#model_name#"+model_name+"# "+html_name+" > "+html_new+";"+ \
    1.29 +        "mv -f "+html_new+" "+html_name)
    1.30 +
    1.31 +;---------------------------------------------------------------------------
    1.32 +
    1.33 +end
    1.34 +