Ignore:
Timestamp:
Nov 27, 2007, 4:18:39 PM (17 years ago)
Author:
sexton
Message:

rename plot_polygons_points to original name of plot_polygons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/onslow_2006/export_results.py

    r4581 r4856  
    1 import project, os
     1import project_grad, os
    22import sys
    33
     
    1111#time_dir = '' # HAT 1 in Pt Hedland 10000 yr
    1212#time_dir = '' # MSL 1 in Pt Hedland 10000 yr
    13 #time_dir = '20070530_082920_run_final_1.5_onslow_nbartzis' # HAT 1 in Onslow 10000 yr
     13#time_dir = '20070608_060316_run_final_1.5_onslow_nbartzis' # HAT 1 in Onslow 10000 yr
    1414#time_dir = '20070531_002753_run_final_0.0_onslow_nbartzis' # MSL 1 in Onslow 10000 yr
    15 time_dir = '20070608_062811_run_final_1.5_exmouth_nbartzis' # HAT 1 in Exmouth 10000 yr
     15#time_dir = '20070608_062811_run_final_1.5_exmouth_nbartzis' # HAT 1 in Exmouth 10000 yr
    1616#time_dir = '20070605_234905_run_final_0.0_exmouth_nbartzis' # MSL 1 in Exmouth 10000 yr
    1717#time_dir = '20060704_063005' # 2006 simulation HAT Mw9
     18#time_dir = '20070619_042140_run_final_1.5_exmouth_nbartzis' # exmouth HAT longer time
     19#time_dir = '20070904_235118_run_final_1.5_jsexton_exmouth_original' # revised model original data
     20#time_dir = '20070905_052311_run_final_1.5_jsexton_exmouth_revised' # revised model original + survey data
     21time_dir = '20070906_061418_run_final_1.5_jsexton_exmouth_original' # refined again
     22#time_dir = '20070907_055936_run_final_1.5_jsexton_exmouth_revised' # refined again
    1823cellsize = 25
    1924#cellsize = 150
    2025timestep = None
    21 directory = project.outputdir
    22 #name = directory + time_dir + sep + project.scenario_name
    23 name = directory+time_dir+sep+project.scenario_name
     26directory = project_grad.output_dir
     27#name = directory + time_dir + sep + project_grad.scenario_name
     28name = directory+time_dir+sep+project_grad.scenario_name
     29#name = directory+time_dir+sep+'onslow_time_35760_0'
    2430#name = directory+time_dir+sep+'source'
    2531
    2632from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts
    2733
    28 elevgrid = directory+time_dir+sep+'onslow_elevation_town'
     34#elevgrid = directory+time_dir+sep+'onslow_elevation_town'
    2935
    30 convert_dem_from_ascii2netcdf(elevgrid, use_cache=True, verbose=True)
     36#convert_dem_from_ascii2netcdf(elevgrid, use_cache=True, verbose=True)
    3137
    32 dem2pts(elevgrid,run_up_elev=True,run_up_loc=True)
     38#dem2pts(elevgrid,run_up_elev=True,run_up_loc=True)
    3339
    34 """
    3540is_parallel = False
    3641#is_parallel = True
     
    4045#var = [2,3,4] # depth and speed
    4146#var = [2] # depth
    42 var = [0]
     47var = [4]
    4348
    4449for which_var in var:
     
    4853
    4954    if which_var == 1:  # Absolute Momentum
    50         outname = name + '_momentum_i1'
     55        outname = name + '_momentum'
    5156        quantityname = '(xmomentum**2 + ymomentum**2)**0.5' 
    5257
     
    7378                        timestep = timestep,
    7479                        cellsize = cellsize,     
    75                         easting_min = project.e_min_area,
    76                         easting_max = project.e_max_area,
    77                         northing_min = project.n_min_area,
    78                         northing_max = project.n_max_area,       
     80                        easting_min = project_grad.e_min_area,
     81                        easting_max = project_grad.e_max_area,
     82                        northing_min = project_grad.n_min_area,
     83                        northing_max = project_grad.n_max_area,       
    7984                        reduction = max,
    8085                        verbose = True,
     
    8691                    timestep = timestep,
    8792                    cellsize = cellsize,     
    88                     easting_min = project.e_min_area,
    89                     easting_max = project.e_max_area,
    90                     northing_min = project.n_min_area,
    91                     northing_max = project.n_max_area,       
     93                    easting_min = project_grad.e_min_area,
     94                    easting_max = project_grad.e_max_area,
     95                    northing_min = project_grad.n_min_area,
     96                    northing_max = project_grad.n_max_area,       
    9297                    reduction = max,
    9398                    verbose = True,
    9499                    format = 'asc')
    95100
    96 """
Note: See TracChangeset for help on using the changeset viewer.