Ignore:
Timestamp:
Feb 9, 2009, 4:26:06 PM (16 years ago)
Author:
jgriffin
Message:

scripts modified to include file_length function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/sydney/build_boundary_7875.py

    r6290 r6298  
    55Input: order_filename from project.py
    66       event_number needs to be reflected in the project file
    7 Output: creates a sts file and csv files stored in project.boundaries_dir_event.
     7Output: creates a sts file and csv files stored in project.event_sts.
    88The run_sydney.py is reliant on the output of this script.
    99"""
     
    103103
    104104    maxname = 'max_sts_stage.csv'
    105     fid_max = open(project.boundaries_dir_event+sep+maxname,'w')
     105    fid_max = open(project.event_sts+sep+maxname,'w')
    106106    s = 'index, x, y, max_stage \n'
    107107    fid_max.write(s)   
     
    120120
    121121    minname = 'min_sts_stage.csv'
    122     fid_min = open(project.boundaries_dir_event+sep+minname,'w')
     122    fid_min = open(project.event_sts+sep+minname,'w')
    123123    s = 'index, x, y, max_stage \n'
    124124    fid_min.write(s)   
     
    134134
    135135
    136         fid_sts = open(project.boundaries_dir_event+sep+basename+'_'+ str(index)+'.csv', 'w')
     136        fid_sts = open(project.event_sts+sep+basename+'_'+ str(index)+'.csv', 'w')
    137137        s = 'time, stage, xmomentum, ymomentum \n'
    138138        fid_sts.write(s)
     
    152152    return quantities,elevation,time
    153153
    154 quantities,elevation,time=get_sts_gauge_data(os.path.join(project.boundaries_dir_event,project.scenario_name),verbose=False)
     154quantities,elevation,time=get_sts_gauge_data(os.path.join(project.event_sts),verbose=False)
    155155
    156156print len(elevation), len(quantities['stage'][0,:])
Note: See TracChangeset for help on using the changeset viewer.