Changeset 4292


Ignore:
Timestamp:
Mar 5, 2007, 3:55:18 PM (18 years ago)
Author:
duncan
Message:

verbose fix

File:
1 edited

Legend:

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

    r4284 r4292  
    31033103        fields = line.split(',')
    31043104        realtime = calendar.timegm(time.strptime(fields[0], time_format))
    3105 
    31063105        T[i] = realtime - starttime
    31073106
     
    31123111    msg += 'increasing sequence'
    31133112    assert alltrue( T[1:] - T[:-1] > 0 ), msg
    3114 
    31153113
    31163114    #Create NetCDF file
     
    45984596    origin
    45994597    #mint=None, maxt=None,
    4600     """    
     4598    """
    46014599    from anuga.pmesh.mesh import Mesh
    46024600
     
    46374635
    46384636    #mesh.export_mesh_file(basename_in + '.tsh')
    4639    
    46404637    times = []
    46414638    for i in range(a_mux.time_step_count):
     
    46614658    write_sww_triangulation(outfile, points_utm, volumes,
    46624659                            elevation, zone,  origin=origin, verbose=verbose)
     4660   
     4661    if verbose: print 'Converting quantities'
    46634662    j = 0
    46644663    # Read in a time slice from each mux file and write it to the sww file
     
    47484747    # This will put the geo ref in the middle
    47494748    #geo_ref = Geo_reference(refzone,(max(x)+min(x))/2.0,(max(x)+min(y))/2.)
    4750 
    4751 
     4749    x =  points_utm[:,0]
     4750    y =  points_utm[:,1]
     4751    z = outfile.variables['z'][:]
     4752    #FIXME the w.r.t time is lost now..
    47524753    if verbose:
    47534754        print '------------------------------------------------'
     
    47614762                len(y))
    47624763        print '    z in [%f, %f], len(z) == %d'\
    4763               %(min(z), max(z),
    4764                 len(z))
     4764              %(min(elevation), max(elevation),
     4765                len(elevation))
    47654766        print 'geo_ref: ',geo_ref
    47664767        print '------------------------------------------------'
     
    47844785    ymomentum = outfile.variables['ymomentum']
    47854786
    4786     if verbose: print 'Converting quantities'
    47874787    n = len(has)
    47884788    j=0
     
    48054805    ymomentum = outfile.variables['ymomentum']
    48064806
    4807     if verbose: print 'Converting quantities'
    48084807   
    48094808    w = zscale*ha + mean_stage
Note: See TracChangeset for help on using the changeset viewer.