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/project.py

    r6289 r6298  
    4141# run_scenario script is executed
    4242tide = 0                #0.6
    43 #event_number = 27255   # Java 9.3 worst case for Perth
    44 #event_number = 68693   # Sumatra 9.2
    45 event_number = 27283    # Java 9.3 original
     43event_number = 7875    # Java 9.3 original
    4644alpha = 0.1             # smoothing parameter for mesh
    4745friction=0.01           # manning's friction coefficient
     
    9593# Used in run_busselton,py
    9694# Format for points easting,northing (no header)
    97 ##land_initial_conditions_filename = [['initial_condition_extend.csv', 0],
    98 ##                                    ['initial_condition_comerong_island.csv', 0],
    99 ##                                    ['initial_condition_gabo_island.csv', 0],
    100 ##                                    ['initial_condition_montague_island.csv', 0]]
     95land_initial_conditions_filename = [['initial_condition_extend.csv', 0],
     96                                    ['initial_condition_comerong_island.csv', 0],
     97                                    ['initial_condition_gabo_island.csv', 0],
     98                                    ['initial_condition_montague_island.csv', 0]]
    10199
    102100# BOUNDING POLYGON - for data clipping and estimate of triangles in mesh
     
    105103bounding_polygon_filename = 'bounding_polygon.csv'
    106104
     105# INTERIOR REGIONS -  for designing the mesh
     106# Used in run_model.py
     107# Format for points easting,northing (no header)                   
     108##interior_regions_data = [['coast_3km_buffer.csv', 50000]]
     109                         
    107110
    108111# BOUNDING POLYGON
     
    119122# Format easting,northing (no header)
    120123landward_boundary_filename = 'landward_boundary_extend.csv'
     124
     125
    121126
    122127
     
    148153
    149154# The absolute pathname of the mesh, generated in run_busselton.py
    150 meshes = join(meshes_folder, scenario_name, '.msh')
     155meshes = meshes_folder + sep + scenario_name + '.msh'
    151156
    152157# The absolute pathname for the urs order points, used within build_boundary.py
     
    158163
    159164# The absolute pathname for the .sts file, generated in build_boundary.py
    160 event_sts = join(boundaries_folder, str(event_number), scenario_name)
     165event_sts = join(boundaries_folder, str(event_number))
    161166
    162167# The absolute pathname for the output folder names
     
    174179
    175180# Create list of land polygons with initial conditions
    176 ##land_initial_conditions = []
    177 ##for filename, MSL in land_initial_conditions_filename:
     181land_initial_conditions = []
     182for filename, MSL in land_initial_conditions_filename:
     183    polygon = read_polygon(join(polygons_folder, filename))
     184    land_initial_conditions.append([filename, MSL])
     185
     186### Create list of interior polygons with scaling factor
     187interior_regions = []
     188##for filename, maxarea in interior_regions_data:
    178189##    polygon = read_polygon(join(polygons_folder, filename))
    179 ##    land_initial_conditions.append([filename, MSL])
    180 
    181 # Create list of interior polygons with scaling factor
    182 interior_regions = []
    183 #for filename, maxarea in interior_regions_data:
    184 #    polygon = read_polygon(join(polygons_folder, filename))
    185 #    interior_regions.append([polygon, maxarea*scale_factor])
     190##    interior_regions.append([polygon, maxarea*scale_factor])
    186191
    187192# Initial bounding polygon for data clipping
    188193bounding_polygon = read_polygon(join(polygons_folder,
    189194                                     bounding_polygon_filename))
    190 bounding_maxarea = 100000*scale_factor
     195bounding_maxarea = 125000*scale_factor
    191196
    192197# Estimate the number of triangles                     
Note: See TracChangeset for help on using the changeset viewer.