Changes between Version 3 and Version 4 of Ticket #341
- Timestamp:
- Sep 16, 2009, 2:21:29 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #341 – Description
v3 v4 1 1 We need to think about refactoring the code users change to run ANUGA. This is files like project.py, setup_model.py, etc. 2 2 3 Currently the code to put ASC elevations into ANUGA looks like:[[BR]]3 Currently the code to put ASC elevations into ANUGA looks like:[[BR]] 4 4 '''convert_dem_from_ascii2netcdf(project.demname, ...)[[BR]] 5 5 dem2pts(project.demname, ...)[[BR]] … … 13 13 We should always pass full filenames into functions. If there is an output file, the name for that should be supplied also. This will remove some confusion for beginners as to what is happening. 14 14 15 Additionally, it may now be possible to get ANUGA code to *automatically* convert files. If we say that a file is an "input elevation" file, then ANUGA can convert an ASC file to a DEMfile just by looking at the extension (not a real good idea, but simple) or by some 'file'-like magic (do 'man file').15 Additionally, it may now be possible to get ANUGA code to *automatically* convert files. If we say that a file is an "input elevation" file, then ANUGA can convert an ASC file to a PTS file just by looking at the extension (not a real good idea, but simple) or by some 'file'-like magic (do 'man file'). 16 16 17 17 Similarly, a consistent function naming convention would be nice. In runcairns.py we see this to convert an ASC file to a DEM file:[[BR]]