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/spectra.ncl

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