- Timestamp:
- Dec 11, 2008, 1:59:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/river2d_integration/River2DMesh_ANUGAMesh.py
r6060 r6061 1 """ This scrip takes a River2D msh file of format:1 """ This script takes a River2D msh file of format: 2 2 3 3 node no.,x,y,z,roughness … … 19 19 outfid2 = open('ANUGA_MeshVertices.csv', 'w') # output filename 20 20 print "\nFILES are open ready for conversion....\n" 21 21 22 readpts=0 22 23 type=1 23 24 blank_line_count=0 24 25 for line in infid.readlines(): 25 print line26 print 'line', line 26 27 27 28 #print 'type = ',type … … 29 30 #blank_line_count=blank_line_count+1 30 31 type=2 # blank line 32 continue 33 31 34 print 'readpts= %i, Type = %i Blank Line = %i'%(readpts, type, blank_line_count) 32 35 if readpts==0 and type==1: # Start to read Points
Note: See TracChangeset
for help on using the changeset viewer.