Changeset 3943 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
May 2, 2019 9:50:41 AM (5 years ago)
Author:
maronga
Message:

bugfixes in urban surface model; output of greenz roof transpiration added/corrected; minor formatting improvements

Location:
palm/trunk/SCRIPTS
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palm_wd

    r3567 r3943  
    8484#------------------------------------------------------------------------------!
    8585
    86 import ConfigParser
     86import ConfigParser as configparser
    8787import datetime
    8888import os
     
    9797#  Check if configuration files exists and quit otherwise
    9898input_config = ".wd.config"
    99 for i in range(1,len(sys.argv)):
     99
     100for i in range(0,len(sys.argv)):
     101   out = sub.check_output("echo $PALM_BIN", shell=True, stderr=sub.STDOUT)
    100102   input_config = str(sys.argv[i])
     103   palm_bin = out.rstrip()
     104   palm_dir = out.split("palm")[0] + "palm/" + out.split("palm")[1].split("/")[1]
    101105       
    102106config = configparser.RawConfigParser(allow_no_value=True)
     
    108112   print(os.path.isfile(input_config))
    109113
     114print(input_config)
     115
    110116config.read(input_config) 
    111117
     118config = ConfigParser.RawConfigParser()
     119config.read(palm_dir + '/.wd.config')
    112120
    113121description = []
     
    115123username = []
    116124pycall = []
     125
    117126
    118127for i in range(0,len(config.sections())):
Note: See TracChangeset for help on using the changeset viewer.