Changeset 6618


Ignore:
Timestamp:
Mar 25, 2009, 4:33:47 PM (15 years ago)
Author:
myall
Message:

fixing build_urs_boundary so there is no project.tide, and to use central meridian rather than zone

Location:
anuga_work/production/australia_ph2
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/adelaide/build_urs_boundary.py

    r6611 r6618  
    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')
     
    142138                basename_out=output_dir,
    143139                ordering_filename=project.urs_order,
     140                weights=mux_weights,
    144141                central_meridian=project.central_meridian,
    145                 weights=mux_weights,
    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
     
    160156                basename_out=output_dir,
    161157                ordering_filename=order_filename,
    162                 central_meridian=project.central_meridian,               
    163158                weights=mux_weights,
     159                central_meridian=project.central_meridian,
    164160                verbose=True)
    165161
  • anuga_work/production/australia_ph2/albany/build_urs_boundary.py

    r6484 r6618  
    139139                ordering_filename=project.urs_order,
    140140                weights=mux_weights,
    141                 zone=project.zone,
    142                 mean_stage=project.tide,
     141                central_meridian=project.central_meridian,
    143142                verbose=True)
    144143    else:                           # a single mux stem file, assume 1.0 weight
     
    158157                ordering_filename=order_filename,
    159158                weights=mux_weights,
    160                 mean_stage=project.tide,
     159                central_meridian=project.central_meridian,
    161160                verbose=True)
    162161
  • anuga_work/production/australia_ph2/broome/build_urs_boundary.py

    r6617 r6618  
    139139                ordering_filename=project.urs_order,
    140140                weights=mux_weights,
    141                 zone=project.zone,
    142                 mean_stage=project.tide,
     141                central_meridian=project.central_meridian,
    143142                verbose=True)
    144143    else:                           # a single mux stem file, assume 1.0 weight
     
    158157                ordering_filename=order_filename,
    159158                weights=mux_weights,
    160                 mean_stage=project.tide,
     159                central_meridian=project.central_meridian,
    161160                verbose=True)
    162161
  • anuga_work/production/australia_ph2/carnarvon/build_urs_boundary.py

    r6412 r6618  
    139139                ordering_filename=project.urs_order,
    140140                weights=mux_weights,
    141                 zone=project.zone,
    142                 mean_stage=project.tide,
     141                central_meridian=project.central_meridian,
    143142                verbose=True)
    144143    else:                           # a single mux stem file, assume 1.0 weight
     
    158157                ordering_filename=order_filename,
    159158                weights=mux_weights,
    160                 mean_stage=project.tide,
     159                central_meridian=project.central_meridian,
    161160                verbose=True)
    162161
  • anuga_work/production/australia_ph2/esperance/build_urs_boundary.py

    r6399 r6618  
    139139                ordering_filename=project.urs_order,
    140140                weights=mux_weights,
    141                 zone=project.zone,
    142                 mean_stage=project.tide,
     141                central_meridian=project.central_meridian,
    143142                verbose=True)
    144143    else:                           # a single mux stem file, assume 1.0 weight
     
    158157                ordering_filename=order_filename,
    159158                weights=mux_weights,
    160                 mean_stage=project.tide,
     159                central_meridian=project.central_meridian,
    161160                verbose=True)
    162161
  • anuga_work/production/australia_ph2/eucla_motel/build_urs_boundary.py

    r6399 r6618  
    139139                ordering_filename=project.urs_order,
    140140                weights=mux_weights,
    141                 zone=project.zone,
    142                 mean_stage=project.tide,
     141                central_meridian=project.central_meridian,
    143142                verbose=True)
    144143    else:                           # a single mux stem file, assume 1.0 weight
     
    158157                ordering_filename=order_filename,
    159158                weights=mux_weights,
    160                 mean_stage=project.tide,
     159                central_meridian=project.central_meridian,
    161160                verbose=True)
    162161
  • anuga_work/production/australia_ph2/perth/build_urs_boundary.py

    r6429 r6618  
    139139                ordering_filename=project.urs_order,
    140140                weights=mux_weights,
    141                 zone=project.zone,
    142                 mean_stage=project.tide,
     141                central_meridian=project.central_meridian,
    143142                verbose=True)
    144143    else:                           # a single mux stem file, assume 1.0 weight
     
    158157                ordering_filename=order_filename,
    159158                weights=mux_weights,
    160                 mean_stage=project.tide,
     159                central_meridian=project.central_meridian,
    161160                verbose=True)
    162161
  • anuga_work/production/australia_ph2/wyndham/build_urs_boundary.py

    r6539 r6618  
    139139                ordering_filename=project.urs_order,
    140140                weights=mux_weights,
    141                 zone=project.zone,
    142                 mean_stage=project.tide,
     141                central_meridian=project.central_meridian,
    143142                verbose=True)
    144143    else:                           # a single mux stem file, assume 1.0 weight
     
    158157                ordering_filename=order_filename,
    159158                weights=mux_weights,
    160                 mean_stage=project.tide,
     159                central_meridian=project.central_meridian,
    161160                verbose=True)
    162161
Note: See TracChangeset for help on using the changeset viewer.