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 ole)

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 ole

Description: modified (diff)

comment:2 Changed 19 years ago by ole

Description: modified (diff)

comment:3 Changed 19 years ago by anonymous

Priority: normallow

comment:4 Changed 17 years ago by ole

Owner: changed from duncan to rwilson

comment:5 Changed 16 years ago by rwilson

Owner: changed from rwilson to nhabili

comment:6 Changed 16 years ago by ole

Owner: changed from nhabili to nariman

comment:7 Changed 15 years ago by James Hudson

Owner: changed from nariman to James Hudson

comment:8 Changed 15 years ago by James Hudson

There is no longer any asc2dem function - is this task still valid?

comment:9 Changed 15 years ago by James Hudson

Resolution: fixed
Status: newclosed

Done - 1-line fix to the new dem2pts.

Note: See TracTickets for help on using tickets.