Opened 19 years ago

Last modified 15 years ago

#87 closed defect

Refactor dem2pts — at Version 2

Reported by: ole Owned by: duncan
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 (2)

comment:1 Changed 19 years ago by ole

Description: modified (diff)

comment:2 Changed 19 years ago by ole

Description: modified (diff)
Note: See TracTickets for help on using tickets.