Ignore:
Timestamp:
Jul 11, 2006, 11:30:36 AM (18 years ago)
Author:
sexton
Message:

updates

Location:
production/onslow_2006
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • production/onslow_2006/export_results.py

    r3285 r3300  
    88
    99#time_dir = '20060704_063005' #HAT
    10 #time_dir = '20060704_063112' #LAT
    11 time_dir = '20060704_063234' #MSL
     10#time_dir = '20060706_235246' #LAT
     11#time_dir = '20060704_063234' #MSL
     12#time_dir = '20060515_001733' #DTED data
    1213directory = project.outputdir
    1314name = directory + time_dir +sep + 'source'
     15# to develop grid of MOST output
     16#directory = project.boundarydir
     17#name = directory + project.boundary_basename
    1418
    1519#normal screen output is stored in 'outname'
    16 screen_output_name = directory + time_dir + sep + "export_output.txt"
    17 screen_error_name = directory + time_dir + sep + "export_error.txt"
     20#screen_output_name = directory + time_dir + sep + "export_output.txt"
     21#screen_error_name = directory + time_dir + sep + "export_error.txt"
     22# for MOST output
     23#screen_output_name = directory  +  "export_output.txt"
     24#screen_error_name = directory +  "export_error.txt"
    1825
    1926#used to catch screen output to file
     
    2431#print 'Which variable do you want to export?'
    2532#which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3  '  ))
    26 which_var = 2
     33which_var = 4
    2734#sys.stderr.write(sys.stdout.data)
    2835if which_var == 0:  # Stage
  • production/onslow_2006/get_building_inundation.py

    r3285 r3300  
    3030# Inputs
    3131#timestampdir = '20060704_063005' # HAT
    32 #timestampdir = '20060704_063112' # LAT
     32#timestampdir = '20060706_235246' # LAT
    3333timestampdir = '20060704_063234' # MSL
     34#timestampdir = '20060515_001733' # MSL DTED
    3435file_loc = project.outputdir + timestampdir + sep
    3536swwfile = file_loc + project.basename + '.sww'
     
    101102    zero_depth = 0.0
    102103    zero_momentum = 0.0
    103     if inside_polygon(g,project.polyAll) == True:   
    104         for i, t in enumerate(T):
    105             w = f(t, point_id = k)[0]
    106             z = f(t, point_id = k)[1]
    107             uh = f(t, point_id = k)[2]
    108             vh = f(t, point_id = k)[3]
    109             depth = w-z
    110             m = sqrt(uh*uh + vh*vh)   
    111             #vel = m / (depth + 1.e-30)
    112             if depth > max_depth: max_depth = depth
    113             if m > max_momentum: max_momentum = m
    114     else:
    115         max_depth = 0.0
    116         max_momentum = 0.0
    117 
     104    #if inside_polygon(g,project.polyAll) == True:   
     105    for i, t in enumerate(T):
     106        w = f(t, point_id = k)[0]
     107        z = f(t, point_id = k)[1]
     108        uh = f(t, point_id = k)[2]
     109        vh = f(t, point_id = k)[3]
     110        depth = w-z
     111        m = sqrt(uh*uh + vh*vh)   
     112        #vel = m / (depth + 1.e-30)
     113        if depth > max_depth: max_depth = depth
     114        if m > max_momentum: max_momentum = m
     115    #else:
     116    #    max_depth = 0.0
     117    #    max_momentum = 0.0
     118    print 'gauge ', g
     119    print 'max depth', max_depth
    118120    lines[k+1] = lines[k+1].strip() +\
    119121                 ',%f' %max_depth +\
  • production/onslow_2006/make_report.py

    r3285 r3300  
    8181production_dirs = {'20060704_063234': 'MSL',
    8282                   '20060704_063005': 'HAT',
    83                    '20060704_063112': 'LAT'}
     83                   '20060706_235246': 'LAT'}
    8484
    8585max_maps = {'MSL': 'MSL_map',
  • production/onslow_2006/report/summary.tex

    r3253 r3300  
    11This report has described the impact to Onslow from a tsunami
    22generated by a Mw 9 earthquake on the Sunda Arc subduction zone
    3 occurring at Mean Sea Level.
     3occurring at Highest Astronomical Tide, Lowest Astronomical Tide
     4and Mean Sea Level.
    45There is no knowledge of the return period for this event. The
    56modelling methodology, assumptions and data sources which are
Note: See TracChangeset for help on using the changeset viewer.