Ignore:
Timestamp:
Feb 26, 2018 2:04:53 PM (6 years ago)
Author:
gronemeier
Message:

palmplot: config file of ncl scripts can be chosen in shell command

File:
1 edited

Legend:

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

    r2030 r2837  
    4040; load .ncl.config or .ncl.config.default
    4141;***************************************************
    42    
    43 file_name ="$PALM_BIN/../../.ncl.config"
    44 existing_file = file_exists(ncl_version_ch,file_name)
    45 
     42
     43existing_file = file_exists(ncl_version_ch,file_config)
    4644if (existing_file) then
    47    loadscript("$PALM_BIN/../../.ncl.config")
     45   loadscript(file_config)
    4846else
    49    file_name = "$PALM_BIN/NCL/.ncl.config.default"
    50    existing_file = file_exists(ncl_version_ch,file_name)
    51    if (existing_file) then
    52       loadscript( "$PALM_BIN/NCL/.ncl.config.default")
    53    else
    54       palm_bin_path = getenv("PALM_BIN")
    55       print(" ")
    56       print("Neither the personal configuration file '.ncl.config' exists in")
    57       print("~/palm/current_version")
    58       print("nor the default configuration file '.ncl.config.default' "+\
    59             "exists in")
    60       print(palm_bin_path + "/NCL")
    61       print(" ")
    62       exit
    63    end if
     47   palm_bin_path = getenv("PALM_BIN")
     48   print(" ")
     49   print("Neither the personal configuration file '.ncl.config' exists in")
     50   print("~/palm/current_version")
     51   print("nor the default configuration file '.ncl.config.default' "+\
     52         "exists in")
     53   print(palm_bin_path + "/NCL")
     54   print(" ")
     55   exit
    6456end if
     57
    6558
    6659begin
Note: See TracChangeset for help on using the changeset viewer.