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

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