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

ncl_preferences is renamed .ncl.config.default

File:
1 edited

Legend:

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

    r317 r418  
    55 
    66;***************************************************
    7 ; load ncl_preferences.ncl
     7; load .ncl.config or .ncl.config.default
    88;***************************************************
    99
     
    1414   return(script)
    1515end
    16    
    17 if (isfilepresent("~/ncl_preferences.ncl")) then
    18    loadscript("~/ncl_preferences.ncl")
     16
     17if (isfilepresent("$PALM_BIN/../../.ncl.config")) then
     18   loadscript("$PALM_BIN/../../.ncl.config")
    1919else
    20   if (isfilepresent("~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")) then
    21      loadscript( "~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")
     20  if (isfilepresent("$PALM_BIN/NCL/.ncl.config.default")) then
     21     loadscript( "$PALM_BIN/NCL/.ncl.config.default")
    2222  else
    23       print(" ")
    24       print("'ncl_preferences.ncl' does not exist in $home or $home/palm/current_version/trunk/SCRIPTS/NCL/")
     23      palm_bin_path = getenv("PALM_BIN")
     24      print(" ")
     25      print("Neither the personal configuration file '.ncl.config' exists in")
     26      print("~/palm/current_version")
     27      print("nor the default configuration file '.ncl.config.default' exists in")
     28      print(palm_bin_path + "/NCL")
    2529      print(" ")
    2630      exit
    2731   end if
    28 end if
     32end if   
    2933   
    3034begin
     
    3640   if (file_1 .EQ. "File in") then
    3741      print(" ")
    38       print("Declare input file 'file_1=' in 'ncl_preferences.ncl' or prompt")
     42      print("Declare input file 'file_1=' in '.ncl.config' or prompt")
    3943      print(" ")
    4044      exit
     
    13151319   ; ***************************************************
    13161320 
    1317    if (format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then
     1321   if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. n .gt. no_rows*no_columns) then
    13181322      gsn_panel(wks_ps,plot_ps(1:n),(/n,1/),resP)
    13191323      print(" ")
Note: See TracChangeset for help on using the changeset viewer.