Ignore:
Timestamp:
Feb 23, 2009, 2:17:06 PM (16 years ago)
Author:
myall
Message:

Ready for use, fixed known problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/busselton/standardised_version/build_urs_boundary.py

    r6335 r6376  
    4040    # Get maximum wave height throughout timeseries at each index point
    4141    #---------------------------------------------------------------------------
    42 
    43     # create directory for generate STS file, if necessary
    44     if not os.path.exists(project.event_sts):
    45         os.mkdir(project.event_sts)
    46        
     42     
    4743    maxname = 'max_sts_stage.csv'
    4844    print 'get_sts_gauge_data: maxname=%s' % maxname
    49     fid_max = open(os.path.join(project.event_sts, maxname), 'w')
     45    fid_max = open(os.path.join(project.event_folder, maxname), 'w')
    5046    fid_max.write('index, x, y, max_stage \n')   
    5147    for j in range(len(x)):
     
    6258
    6359    minname = 'min_sts_stage.csv'
    64     fid_min = open(os.path.join(project.event_sts, minname), 'w')
     60    fid_min = open(os.path.join(project.event_folder, minname), 'w')
    6561    fid_min.write('index, x, y, max_stage \n')   
    6662    for j in range(len(x)):
     
    7268        fid_min.write('%d, %.6f, %.6f, %.6f\n' %(index, x[j], y[j], min(stage)))
    7369
    74         out_file = os.path.join(project.event_sts,
     70        out_file = os.path.join(project.event_folder,
    7571                                basename+'_'+str(index)+'.csv')
    7672        fid_sts = open(out_file, 'w')
     
    10298    if project.multi_mux:
    10399        # get the mux+weight data from the meta-file (in <boundaries>)
    104         mux_event_file = os.path.join(project.boundaries_folder, event_file)
     100        mux_event_file = os.path.join(project.event_folder, event_file)
    105101        print 'using multi-mux file', mux_event_file
    106102        try:
     
    146142                verbose=True)
    147143    else:                           # a single mux stem file, assume 1.0 weight
    148         mux_file = os.path.join(project.mux_data_folder, event_file)
     144        mux_file = os.path.join(project.event_folder, event_file)
    149145        mux_filenames = [mux_file]
    150146        print 'using single-mux file', mux_file
Note: See TracChangeset for help on using the changeset viewer.