Ignore:
Timestamp:
Aug 7, 2007, 2:20:57 PM (18 years ago)
Author:
duncan
Message:

getting rid of xya more. Cleaning up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/load_mesh/loadASCII.py

    r4496 r4663  
    11"""
    2 The format for a .xya file is:
    3 1st line:     [attribute names]
    4 other lines:  x y [attributes]
    5 
    6 for example:
    7 elevation, friction
    8 0.6, 0.7, 4.9, 0.3
    9 1.9, 2.8, 5, 0.3
    10 2.7, 2.4, 5.2, 0.3
    11 
    12 The first two columns are always implicitly assumed to be x, y coordinates.
    13 Use the same delimiter for the attribute names and the data
    14 
    15 An xya file can optionally end with
    16 #geo reference
    17 56
    18 466600.0
    19 8644444.0
    20 
    21 When the 1st # is the zone,
    22 2nd # the xllcorner and
    23 3rd # the yllcorner
     2
    243The format for a Points dictionary is:
    254
     
    4221    segment_tags : [tag,tag,...] list of strings
    4322    triangles : [(v1,v2,v3), (v4,v5,v6),....] lists of points
    44     triangle_tags: [s1,s2,...] A list of list of strings (probably not neccecary.  a list of string should be ok)
     23    triangle_tags: [s1,s2,...] A list of list of strings (probably not
     24    neccecary.  a list of string should be ok)
    4525    triangle_neighbors: [[t1,t2,t3], [t4,t5,t6],..] lists of triangles
    4626       
     
    5838        is relative. This is optional.
    5939
    60     Points files are .xya for ascii and .pts for NetCDF
     40    Points files are .csv for ascii and .pts for NetCDF
    6141    Mesh files are .tsh for ascii and .msh for NetCDF
    6242
Note: See TracChangeset for help on using the changeset viewer.