1 | """Common file modules. |
---|
2 | |
---|
3 | Here you will find modules to load, save, and extract information in a |
---|
4 | variety of different file formats. |
---|
5 | |
---|
6 | This module takes care of reading and writing datafiles such as topograhies, |
---|
7 | model output, etc |
---|
8 | |
---|
9 | |
---|
10 | Formats used within AnuGA: |
---|
11 | |
---|
12 | .sww: Netcdf format for storing model output f(t,x,y) |
---|
13 | .tms: Netcdf format for storing time series f(t) |
---|
14 | |
---|
15 | .csv: ASCII format for storing arbitrary points and associated attributes |
---|
16 | .pts: NetCDF format for storing arbitrary points and associated attributes |
---|
17 | |
---|
18 | .asc: ASCII format of regular DEMs as output from ArcView |
---|
19 | .prj: Associated ArcView file giving more meta data for asc format |
---|
20 | .ers: ERMapper header format of regular DEMs for ArcView |
---|
21 | |
---|
22 | .dem: NetCDF representation of regular DEM data |
---|
23 | |
---|
24 | .tsh: ASCII format for storing meshes and associated boundary and region info |
---|
25 | .msh: NetCDF format for storing meshes and associated boundary and region info |
---|
26 | |
---|
27 | .nc: Native ferret NetCDF format |
---|
28 | |
---|
29 | |
---|
30 | A typical dataflow can be described as follows |
---|
31 | |
---|
32 | Manually created files: |
---|
33 | ASC, PRJ: Digital elevation models (gridded) |
---|
34 | TSH: Triangular meshes (e.g. created from anuga.pmesh) |
---|
35 | NC Model outputs for use as boundary conditions (e.g from MOST) |
---|
36 | |
---|
37 | |
---|
38 | AUTOMATICALLY CREATED FILES: |
---|
39 | |
---|
40 | ASC, PRJ -> DEM -> PTS: Conversion of DEM's to native pts file |
---|
41 | |
---|
42 | NC -> SWW: Conversion of MOST bundary files to boundary sww |
---|
43 | |
---|
44 | PTS + TSH -> TSH with elevation: Least squares fit |
---|
45 | |
---|
46 | TSH -> SWW: Conversion of TSH to sww viewable using Swollen |
---|
47 | |
---|
48 | TSH + Boundary SWW -> SWW: Simluation using abstract_2d_finite_volumes |
---|
49 | """ |
---|
50 | |
---|
51 | # Add path of package to PYTHONPATH to allow C-extensions to be loaded |
---|
52 | import sys |
---|
53 | sys.path += __path__ |
---|