Opened 19 years ago
Closed 15 years ago
#87 closed defect (fixed)
Refactor dem2pts
Reported by: | ole | Owned by: | James Hudson |
---|---|---|---|
Priority: | low | Milestone: | AnuGA ready for release |
Component: | Efficiency and optimisation | Version: | 1.0 |
Severity: | minor | Keywords: | |
Cc: |
Description (last modified by )
To save space and to simplify the API refactor the two functions asc2dem and dem2pts as follows:
Rename dem2pts to netcdf_dem2pts and create new function something like
def dem2pts(filename, ....): basename, ext = os.path.splitext(filename) if ext == '': ext = 'asc' #Default if ext == 'asc': asc2dem(filename, ...) netcdf_dem2pts(filename, ...) os.remove(basename + '.dem' elif ext == 'dem': netcdf_dem2pts(filename, ...)
Change History (9)
comment:1 Changed 19 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 19 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 19 years ago by
Priority: | normal → low |
---|
comment:4 Changed 17 years ago by
Owner: | changed from duncan to rwilson |
---|
comment:5 Changed 16 years ago by
Owner: | changed from rwilson to nhabili |
---|
comment:6 Changed 16 years ago by
Owner: | changed from nhabili to nariman |
---|
comment:7 Changed 15 years ago by
Owner: | changed from nariman to James Hudson |
---|
comment:8 Changed 15 years ago by
comment:9 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Done - 1-line fix to the new dem2pts.
Note: See
TracTickets for help on using
tickets.
There is no longer any asc2dem function - is this task still valid?