perrette / webglacier1d

This is a python-javascript project to visualize 2-D ice sheet data, draw a glacier outline, and extract relevant, averaged data along the 1-D profile.
MIT License
0 stars 0 forks source link

Speed-up flowline calculation #2

Open perrette opened 9 years ago

perrette commented 9 years ago

Flowline calculation is currently relatively slow. One part is related to necessary loading of relatively large netCDF files, the other relates to the calculation itself. The first - because easier - task would be to speed-up the calculation part, for instance by writing a very short fortran code with iso_c_bindings (or using f2py), or with cython, or whatever. It is unclear to me whether the loading of netCDF files could be made quicker, since netCDF4 is already a wrapper around netCDF4/HDF5 routines.

An additional option could be to propose the drawing of a series of flowlines which could be seeded from an existing polyline, so that the netCDF file is loaded one, and all flowlines calculated at once.

perrette commented 9 years ago

After a bit of experimenting:

Cost associated with adopting C++ code from pism-regional tool:

Issues / advantages with using a fortran implementation

Speed?