Changeset 7771


Ignore:
Timestamp:
Jun 2, 2010, 6:10:50 PM (15 years ago)
Author:
hudson
Message:

Created sww_interrogate module for higher-level sww functions.

Location:
trunk/anuga_core/source/anuga/shallow_water
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/sww_interrogate.py

    r7770 r7771  
    22    Operations to extract information from an SWW file.
    33'''
     4
     5import os
     6import numpy as num
     7
     8from anuga.utilities.file_utils import get_all_swwfiles
     9from anuga.coordinate_transforms.geo_reference import Geo_reference
     10from anuga.abstract_2d_finite_volumes.util import file_function
     11from anuga.config import netcdf_mode_r, netcdf_mode_w, netcdf_mode_a
     12from anuga.geometry.polygon import is_inside_polygon
     13from anuga.file.sww import get_mesh_and_quantities_from_file
     14from anuga.abstract_2d_finite_volumes.neighbour_mesh import segment_midpoints
     15from anuga.config import g
    416
    517##
     
    364376    for file, swwfile in enumerate (iterate_over):
    365377        # Read sww file
    366         filename = join(dir, swwfile+'.sww')
     378        filename = os.path.join(dir, swwfile+'.sww')
    367379
    368380        if verbose: log.critical('Reading from %s' % filename)
  • trunk/anuga_core/source/anuga/shallow_water/test_data_manager.py

    r7770 r7771  
    4040# This is needed to run the tests of local functions
    4141import data_manager
     42from anuga.file_conversion.urs2sts import urs2sts
    4243from anuga.coordinate_transforms.redfearn import redfearn
    4344from anuga.coordinate_transforms.geo_reference import Geo_reference, \
  • trunk/anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py

    r7770 r7771  
    4040
    4141import numpy as num
     42from anuga.config import g
    4243
    4344# Get gateway to C implementation of flux function for direct testing
     
    56025603        from anuga.shallow_water import Domain
    56035604        from anuga.shallow_water.forcing import Inflow
    5604         from anuga.shallow_water.data_manager \
    5605                 import get_flow_through_cross_section
    56065605
    56075606        #----------------------------------------------------------------------
     
    56925691        from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross
    56935692        from anuga.shallow_water import Domain
    5694         from anuga.shallow_water.data_manager import get_flow_through_cross_section
    56955693
    56965694        #----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.