Ignore:
Timestamp:
Dec 11, 2008, 1:59:01 PM (16 years ago)
Author:
ole
Message:

Got River2D script to run

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:
    22
    33 node no.,x,y,z,roughness
     
    1919outfid2 = open('ANUGA_MeshVertices.csv', 'w') # output filename
    2020print "\nFILES are open ready for conversion....\n"
     21
    2122readpts=0
    2223type=1
    2324blank_line_count=0
    2425for line in infid.readlines():
    25     print line
     26    print 'line', line
    2627
    2728    #print 'type = ',type
     
    2930        #blank_line_count=blank_line_count+1
    3031        type=2   # blank line
     32        continue
     33   
    3134    print 'readpts=  %i, Type = %i  Blank Line = %i'%(readpts, type, blank_line_count)
    3235    if readpts==0 and type==1:   # Start to read Points
Note: See TracChangeset for help on using the changeset viewer.