Changes between Version 3 and Version 4 of Ticket #341


Ignore:
Timestamp:
Sep 16, 2009, 2:21:29 PM (16 years ago)
Author:
rwilson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #341 – Description

    v3 v4  
    11We need to think about refactoring the code users change to run ANUGA.  This is files like project.py, setup_model.py, etc.
    22
    3 Currently the code to put ASCelevations into ANUGA looks like:[[BR]]
     3Currently the code to put ASC elevations into ANUGA looks like:[[BR]]
    44'''convert_dem_from_ascii2netcdf(project.demname, ...)[[BR]]
    55dem2pts(project.demname, ...)[[BR]]
     
    1313We 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.
    1414
    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 DEM file just by looking at the extension (not a real good idea, but simple) or by some 'file'-like magic (do 'man file').
     15Additionally, 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').
    1616
    1717Similarly, a consistent function naming convention would be nice.  In runcairns.py we see this to convert an ASC file to a DEM file:[[BR]]