Changeset 4663 for anuga_core/source/anuga/load_mesh
- Timestamp:
- Aug 7, 2007, 2:20:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/load_mesh/loadASCII.py
r4496 r4663 1 1 """ 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 24 3 The format for a Points dictionary is: 25 4 … … 42 21 segment_tags : [tag,tag,...] list of strings 43 22 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) 45 25 triangle_neighbors: [[t1,t2,t3], [t4,t5,t6],..] lists of triangles 46 26 … … 58 38 is relative. This is optional. 59 39 60 Points files are . xyafor ascii and .pts for NetCDF40 Points files are .csv for ascii and .pts for NetCDF 61 41 Mesh files are .tsh for ascii and .msh for NetCDF 62 42
Note: See TracChangeset
for help on using the changeset viewer.