Changeset 5793


Ignore:
Timestamp:
Sep 26, 2008, 3:46:52 PM (16 years ago)
Author:
kristy
Message:
 
Files:
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/fit_interpolate/fit.py

    r5352 r5793  
    368368           
    369369        if point_coordinates is None:
    370             assert self.AtA <> None
     370            print 'Warning: no data points in fit'
     371            assert self.AtA <> None, 'no interpolation matrix'
    371372            assert self.Atz <> None
     373           
    372374            #FIXME (DSG) - do  a message
    373375        else:
  • anuga_work/production/busselton/project_250m.py

    r5792 r5793  
    5151finaltime=80000         # final time for simulation
    5252
    53 interior_mesh = 'none' # Can have 'all' or 'none' for Phase 2 study
     53interior_mesh = 'all' # Can have 'all' or 'none' for Phase 2 study
    5454
    5555setup='final'  # Final can be replaced with trial or basic.
  • anuga_work/production/carnarvon/build_carnarvon_250m.py

    r5790 r5793  
    7171
    7272#-------------------------------------------------------------------------------
    73 # Combine, clip and export dataset
     73# export dataset
    7474#-------------------------------------------------------------------------------
    75 
    76 print'clip combined geospatial object by bounding polygon'
    77 G_clipped = G.clip(project_250m.poly_all)
    7875
    7976print'export combined DEM file'
    8077if access(project_250m.topographies_dir,F_OK) == 0:
    8178    mkdir (project_250m.topographies_dir)
    82 G_clipped.export_points_file(project_250m.combined_dir_name + '.pts')
    83 #G_clipped.export_points_file(project_250m.combined_dir_name + '.txt') #Use for comparision in ARC
     79G.export_points_file(project_250m.combined_dir_name + '.pts')
     80G.export_points_file(project_250m.combined_dir_name + '.txt') #Use for comparision in ARC
    8481
  • anuga_work/production/carnarvon/export_results.py

    r5790 r5793  
    1616directory = project.output_dir
    1717name = directory+sep+time_dir+sep+project.scenario_name
    18 
    19 
    20 
    2118
    2219is_parallel = False
  • anuga_work/production/carnarvon/project_250m.py

    r5790 r5793  
    5151finaltime=80000         # final time for simulation
    5252
    53 interior_mesh = 'all' # Can have 'all' or 'none' for Phase 2 study
     53interior_mesh = 'none' # Can have 'all' or 'none' for Phase 2 study
    5454
    5555setup='final'  # Final can be replaced with trial or basic.
  • anuga_work/production/carnarvon/run_carnarvon.py

    r5790 r5793  
    9191
    9292    # boundary tags refer to project.landward 4 points equals 5 segments start at N
    93      boundary_tags={'back': [N+1,N+2,N+3], 'side': [N,N+4],'ocean': range(N)}
     93    boundary_tags={'back': [N+1,N+2,N+3], 'side': [N,N+4], 'ocean': range(N)}
    9494
    9595    #--------------------------------------------------------------------------
  • anuga_work/production/carnarvon/run_carnarvon_250m.py

    r5790 r5793  
    9191
    9292    # boundary tags refer to project_250m.landward 4 points equals 5 segments start at N
    93      boundary_tags={'back': [N+1,N+2,N+3], 'side': [N,N+4],'ocean': range(N)}
     93    boundary_tags={'back': [N+1,N+2,N+3], 'side': [N,N+4], 'ocean': range(N)}
     94
    9495
    9596    #--------------------------------------------------------------------------
     
    132133
    133134    # sets the initial stage in the offcoast region only
    134       IC = Polygon_function( [(project.poly_mainland, 0),(project.poly_island1, 0)
    135                             ,(project.poly_island2, 0)], default = kwargs['tide'],
     135    IC = Polygon_function( [(project_250m.poly_mainland, 0),(project_250m.poly_island1, 0)
     136                            ,(project_250m.poly_island2, 0)], default = kwargs['tide'],
    136137                             geo_reference = domain.geo_reference)
    137      domain.set_quantity('stage', IC)
     138    domain.set_quantity('stage', IC)
    138139    #domain.set_quantity('stage',kwargs['tide'] )
    139140    domain.set_quantity('friction', kwargs['friction'])
  • anuga_work/production/geraldton/export_results.py

    r5789 r5793  
    1 import project, os
     1import project_250m, os
    22import sys
    33
     
    77
    88
    9 time_dir = '20080911_094915_run_final_0.6_27255_alpha0.1_kvanputt'
    10 #time_dir = '20080911_100609_run_final_0.6_27283_alpha0.1_kvanputt'
    11 
     9time_dir = '20080925_162836_run_final_0_27283_250m_none_kvanputt'
    1210
    1311cellsize = 25
    1412#cellsize = 150
    1513#timestep = 0
    16 directory = project.output_dir
    17 name = directory+sep+time_dir+sep+project.scenario_name
    18 #var = [0,4]
    19 var = [2] # depth and Speed
     14directory = project_250m.output_dir
     15name = directory+sep+time_dir+sep+project_250m.scenario_name
     16
     17var = [0,4]
     18#var = [2] # depth and Speed
    2019#var = [2,3] # elevation, depth and Speed
    2120
     
    2625print 'output dir:', name
    2726
     27name = directory+time_dir+sep+project_250m.scenario_name
    2828
    29 name1 = directory+time_dir+sep+project.scenario_name
    30 name2 = directory+time_dir+sep+'sww2'+sep+project.scenario_name+'_time_41700_0' #need to get assistance on how to make this into anything
     29for which_var in var:
     30    if which_var == 0:  # Stage
     31        outname = name + '_stage'
     32        quantityname = 'stage'
    3133
    32 names = [name1, name2]
     34    if which_var == 1:  # Absolute Momentum
     35        outname = name + '_momentum'
     36        quantityname = '(xmomentum**2 + ymomentum**2)**0.5' 
    3337
    34 for name in names:
     38    if which_var == 2:  # Depth
     39        outname = name + '_depth'
     40        quantityname = 'stage-elevation' 
    3541
    36     for which_var in var:
    37         if which_var == 0:  # Stage
    38             outname = name + '_stage'
    39             quantityname = 'stage'
     42    if which_var == 3:  # Speed
     43        outname = name + '_speed'
     44        quantityname = '(xmomentum**2 + ymomentum**2)**0.5/(stage-elevation+1.e-6/(stage-elevation))'  #Speed
    4045
    41         if which_var == 1:  # Absolute Momentum
    42             outname = name + '_momentum'
    43             quantityname = '(xmomentum**2 + ymomentum**2)**0.5' 
     46    if which_var == 4:  # Elevation
     47        outname = name + '_elevation'
     48        quantityname = 'elevation'  #Elevation
    4449
    45         if which_var == 2:  # Depth
    46             outname = name + '_depth'
    47             quantityname = 'stage-elevation' 
    48 
    49         if which_var == 3:  # Speed
    50             outname = name + '_speed'
    51             quantityname = '(xmomentum**2 + ymomentum**2)**0.5/(stage-elevation+1.e-6/(stage-elevation))'  #Speed
    52 
    53         if which_var == 4:  # Elevation
    54             outname = name + '_elevation'
    55             quantityname = 'elevation'  #Elevation
    56 
    57         if is_parallel == True:
    58         #    print 'is_parallel',is_parallel
    59             for i in range(0,nodes):
    60                 namei = name + '_P%d_%d' %(i,nodes)
    61                 outnamei = outname + '_P%d_%d' %(i,nodes)
    62                 print 'start sww2dem for sww file %d' %(i)
    63                 sww2dem(namei, basename_out = outnamei,
    64                             quantity = quantityname,
    65                             #timestep = timestep,
    66                             cellsize = cellsize,     
    67                             easting_min = project_grad.e_min_area,
    68                             easting_max = project_grad.e_max_area,
    69                             northing_min = project_grad.n_min_area,
    70                             northing_max = project_grad.n_max_area,       
    71                             reduction = max,
    72                             verbose = True,
    73                             format = 'asc')
    74         else:
    75             print 'start sww2dem'
    76             sww2dem(name, basename_out = outname,
     50    if is_parallel == True:
     51    #    print 'is_parallel',is_parallel
     52        for i in range(0,nodes):
     53            namei = name + '_P%d_%d' %(i,nodes)
     54            outnamei = outname + '_P%d_%d' %(i,nodes)
     55            print 'start sww2dem for sww file %d' %(i)
     56            sww2dem(namei, basename_out = outnamei,
    7757                        quantity = quantityname,
    7858                        #timestep = timestep,
    79                         cellsize = cellsize,
    80                         number_of_decimal_places = 4,
     59                        cellsize = cellsize,     
     60                        easting_min = project_grad.e_min_area,
     61                        easting_max = project_grad.e_max_area,
     62                        northing_min = project_grad.n_min_area,
     63                        northing_max = project_grad.n_max_area,       
    8164                        reduction = max,
    8265                        verbose = True,
    8366                        format = 'asc')
     67    else:
     68        print 'start sww2dem'
     69        sww2dem(name, basename_out = outname,
     70                    quantity = quantityname,
     71                    #timestep = timestep,
     72                    cellsize = cellsize,
     73                    number_of_decimal_places = 4,
     74                    reduction = max,
     75                    verbose = True,
     76                    format = 'asc')
    8477
  • anuga_work/production/geraldton/project_250m.py

    r5789 r5793  
    5151finaltime=80000         # final time for simulation
    5252
    53 interior_mesh = 'all' # Can have 'all' or 'none' for Phase 2 study
     53interior_mesh = 'none' # Can have 'all' or 'none' for Phase 2 study
    5454
    5555setup='final'  # Final can be replaced with trial or basic.
Note: See TracChangeset for help on using the changeset viewer.