Ticket #87 (closed defect: fixed)

Opened 11 years ago

Last modified 7 years ago

Refactor dem2pts

Reported by: ole Owned by: hudson
Priority: low Milestone: AnuGA ready for release
Component: Efficiency and optimisation Version: 1.0
Severity: minor Keywords:
Cc:

Description (last modified by ole) (diff)

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

Changed 11 years ago by ole

  • description modified (diff)

Changed 11 years ago by ole

  • description modified (diff)

Changed 11 years ago by anonymous

  • priority changed from normal to low

Changed 9 years ago by ole

  • owner changed from duncan to rwilson

Changed 8 years ago by rwilson

  • owner changed from rwilson to nhabili

Changed 8 years ago by ole

  • owner changed from nhabili to nariman

Changed 7 years ago by hudson

  • owner changed from nariman to hudson

Changed 7 years ago by hudson

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

Changed 7 years ago by hudson

  • status changed from new to closed
  • resolution set to fixed

Done - 1-line fix to the new dem2pts.

Note: See TracTickets for help on using tickets.