Ignore:
Timestamp:
Dec 22, 2009 12:46:23 PM (14 years ago)
Author:
heinze
Message:

ncl_preferences is renamed .ncl.config.default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/NCL/spectra.ncl

    r324 r418  
    44
    55;***************************************************
    6 ; load ncl_preferences.ncl
     6; load .ncl.config or .ncl.config.default
    77;***************************************************
    88
     
    1414end
    1515   
    16 if (isfilepresent("~/ncl_preferences.ncl")) then
    17    loadscript("~/ncl_preferences.ncl")
     16if (isfilepresent("$PALM_BIN/../../.ncl.config")) then
     17   loadscript("$PALM_BIN/../../.ncl.config")
    1818else
    19   if (isfilepresent("~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")) then
    20      loadscript( "~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")
     19  if (isfilepresent("$PALM_BIN/NCL/.ncl.config.default")) then
     20     loadscript( "$PALM_BIN/NCL/.ncl.config.default")
    2121  else
    22       print(" ")
    23       print("'ncl_preferences.ncl' does not exist in $home or $home/palm/current_version/trunk/SCRIPTS/NCL/")
     22      palm_bin_path = getenv("PALM_BIN")
     23      print(" ")
     24      print("Neither the personal configuration file '.ncl.config' exists in")
     25      print("~/palm/current_version")
     26      print("nor the default configuration file '.ncl.config.default' exists in")
     27      print(palm_bin_path + "/NCL")
    2428      print(" ")
    2529      exit
    2630   end if
    27 end if
     31end if   
    2832
    2933begin
     
    3539   if (file_1 .EQ. "File in") then
    3640      print(" ")
    37       print("Declare input file 'file_1=' in 'ncl_preferences.ncl' or prompt")
     41      print("Declare input file 'file_1=' in '.ncl.config' or prompt")
    3842      print(" ")
    3943      exit
     
    639643   resP@txFontHeightF          = 0.015
    640644
    641    if (format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then
     645   if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. n .gt. no_rows*no_columns) then
    642646      gsn_panel(wks,plot,(/n,1/),resP)
    643647      print(" ")
Note: See TracChangeset for help on using the changeset viewer.