Changeset 4292
- Timestamp:
- Mar 5, 2007, 3:55:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/data_manager.py
r4284 r4292 3103 3103 fields = line.split(',') 3104 3104 realtime = calendar.timegm(time.strptime(fields[0], time_format)) 3105 3106 3105 T[i] = realtime - starttime 3107 3106 … … 3112 3111 msg += 'increasing sequence' 3113 3112 assert alltrue( T[1:] - T[:-1] > 0 ), msg 3114 3115 3113 3116 3114 #Create NetCDF file … … 4598 4596 origin 4599 4597 #mint=None, maxt=None, 4600 """ 4598 """ 4601 4599 from anuga.pmesh.mesh import Mesh 4602 4600 … … 4637 4635 4638 4636 #mesh.export_mesh_file(basename_in + '.tsh') 4639 4640 4637 times = [] 4641 4638 for i in range(a_mux.time_step_count): … … 4661 4658 write_sww_triangulation(outfile, points_utm, volumes, 4662 4659 elevation, zone, origin=origin, verbose=verbose) 4660 4661 if verbose: print 'Converting quantities' 4663 4662 j = 0 4664 4663 # Read in a time slice from each mux file and write it to the sww file … … 4748 4747 # This will put the geo ref in the middle 4749 4748 #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.. 4752 4753 if verbose: 4753 4754 print '------------------------------------------------' … … 4761 4762 len(y)) 4762 4763 print ' z in [%f, %f], len(z) == %d'\ 4763 %(min( z), max(z),4764 len( z))4764 %(min(elevation), max(elevation), 4765 len(elevation)) 4765 4766 print 'geo_ref: ',geo_ref 4766 4767 print '------------------------------------------------' … … 4784 4785 ymomentum = outfile.variables['ymomentum'] 4785 4786 4786 if verbose: print 'Converting quantities'4787 4787 n = len(has) 4788 4788 j=0 … … 4805 4805 ymomentum = outfile.variables['ymomentum'] 4806 4806 4807 if verbose: print 'Converting quantities'4808 4807 4809 4808 w = zscale*ha + mean_stage
Note: See TracChangeset
for help on using the changeset viewer.