Changeset 3694


Ignore:
Timestamp:
Oct 4, 2006, 4:04:07 PM (18 years ago)
Author:
duncan
Message:

In ferret2sww set default of inverted_bathymetry to True

Location:
anuga_core/source/anuga/shallow_water
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r3685 r3694  
    25302530               NaN_filler = 0,
    25312531               elevation = None,
    2532                inverted_bathymetry = False
     2532               inverted_bathymetry = True
    25332533               ): #FIXME: Bathymetry should be obtained
    25342534                                  #from MOST somehow.
     
    25852585    #Get NetCDF data
    25862586    if verbose: print 'Reading files %s_*.nc' %basename_in
     2587    #print "basename_in + '_ha.nc'",basename_in + '_ha.nc'
    25872588    file_h = NetCDFFile(basename_in + '_ha.nc', 'r') #Wave amplitude (cm)
    25882589    file_u = NetCDFFile(basename_in + '_ua.nc', 'r') #Velocity (x) (cm/s)
  • anuga_core/source/anuga/shallow_water/test_data_manager.py

    r3642 r3694  
    24422442        #Call conversion (with zero origin)
    24432443        ferret2sww('test', verbose=False,
    2444                    origin = (56, 0, 0))
     2444                   origin = (56, 0, 0), inverted_bathymetry=False)
    24452445
    24462446        os.remove('test_va.nc')
     
    26052605
    26062606        #Call conversion (with zero origin)
    2607         ferret2sww('test', verbose=False, origin = (56, 0, 0))
     2607        ferret2sww('test', verbose=False, origin = (56, 0, 0)
     2608                   , inverted_bathymetry=False)
    26082609
    26092610        os.remove('test_va.nc')
Note: See TracChangeset for help on using the changeset viewer.