Opened 12 years ago
Closed 12 years ago
#375 closed defect (fixed)
dem2pts change very slow
Reported by: | martins | Owned by: | ole |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Efficiency and optimisation | Version: | |
Severity: | major | Keywords: | |
Cc: |
Description (last modified by )
In dem2pts there is a change to an iterative process which takes an order of magnitude longer to complete, starting from line 241:
if upper_index == lower_index + newcols:
# Seems to be an error with the windows version of # Netcdf. The following gave errors #points[lower_index:upper_index, :] = tpoints #elevation[lower_index:upper_index] = telev # so used the following for index in range(newcols):
points[index+lower_index, :] = tpoints[index,:] elevation[index+lower_index] = telev[index]
Not sure what the netcdf problem is but maybe this is not the way to deal with it?
Change History (2)
comment:1 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Summary: | asc2dem change very slow → dem2pts change very slow |
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Changed to the faster code. if faster code fail (which it does for some strange reason on windows) it falls back to slow code.