Example #1
0
def main ():
    config = DottedConfiguration.fromfile ("../input/config.yaml")
    
    if len (sys.argv) < 2:
        print "Proper use is './merge_cdf.py number_of_cdfs_to_merge'"
        exit ()
    
    merge ("../output/" + config ["output.file"] + ".cdf", range (int (sys.argv [1])), range (int (config ["time.steps"] / config ["output.every"]) + 1), "../output/" + config ["output.merge_file"] + ".cdf")