Code Monkey home page Code Monkey logo

malstroem's People

Contributors

asgerpetersen avatar kbevers avatar miewinstrup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

malstroem's Issues

Split calculation of precip water volume and network transported volume

Allow calculating or setting the initial water volume caught by each watershed independently of the network calculation.

This will enable us to use different methods for coming up with the initial water volumes. Could for instance be

  • summed from a precip raster
  • added water from exterior sources like pumps , pipes etc
  • subtracted water removed by drianage, infiltration etc

Making work the test example

Hi, we are trying to make the blue spot analysis on latinamerica and we found this tool but we were unable to make it work, what kind of files do I need to make work the test example?

BTW, seems that we made a correct installation

Thanks in advance

Issue installing malstroem

I have previously used the Septima fork of malstroem but need to install it on another computer. I am unable to install it and am uncertain what is happening. This is the text produced in the anaconda prompt:

(malstroem) C:\Users\J>pip install https://github.com/Septima/malstroem/archive/master.zip#[speedups]
Collecting https://github.com/Septima/malstroem/archive/master.zip#[speedups]
Using cached https://github.com/Septima/malstroem/archive/master.zip
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\j\anaconda3\envs\malstroem\lib\site-packages (from malstroem==1.0.0) (1.21.6)
Requirement already satisfied: click in c:\users\j\anaconda3\envs\malstroem\lib\site-packages (from malstroem==1.0.0) (8.1.3)
Requirement already satisfied: gdal in c:\users\j\anaconda3\envs\malstroem\lib\site-packages (from malstroem==1.0.0) (3.5.2)
Requirement already satisfied: future in c:\users\j\anaconda3\envs\malstroem\lib\site-packages (from malstroem==1.0.0) (0.18.2)
Requirement already satisfied: scipy in c:\users\j\anaconda3\envs\malstroem\lib\site-packages (from malstroem==1.0.0) (1.7.3)
Requirement already satisfied: click-log==0.1.8 in c:\users\j\anaconda3\envs\malstroem\lib\site-packages (from malstroem==1.0.0) (0.1.8)
Requirement already satisfied: colorama in c:\users\j\anaconda3\envs\malstroem\lib\site-packages (from click->malstroem==1.0.0) (0.4.6)
Requirement already satisfied: importlib-metadata in c:\users\j\anaconda3\envs\malstroem\lib\site-packages (from click->malstroem==1.0.0) (5.0.0)
Requirement already satisfied: zipp>=0.5 in c:\users\j\anaconda3\envs\malstroem\lib\site-packages (from importlib-metadata->click->malstroem==1.0.0) (3.10.0)
Requirement already satisfied: typing-extensions>=3.6.4 in c:\users\j\anaconda3\envs\malstroem\lib\site-packages (from importlib-metadata->click->malstroem==1.0.0) (4.4.0)
Building wheels for collected packages: malstroem
Building wheel for malstroem (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [96 lines of output]
C:\Users\J\anaconda3\envs\malstroem\lib\site-packages\setuptools\dist.py:774: UserWarning: Usage of dash-separated 'dry-run' will not be supported in future versions. Please use the underscore name 'dry_run' instead
% (opt, underscore_opt)
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\malstroem
copying malstroem\approx.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\bluespots.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\dem.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\hyps.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\io.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\network.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\rain.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\streams.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\vector.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem_init_.py -> build\lib.win-amd64-cpython-37\malstroem
creating build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms\dtypes.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms\fill.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms\flow.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms\label.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms\net.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms_raster_utils.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms_init_.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
creating build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\bluespot.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\cli.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\complete.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\dem.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\finalstate.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\hyps.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\initvolume.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\stream.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts_utils.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts_init_.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
creating build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
copying malstroem\algorithms\speedups_init_.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
running egg_info
creating malstroem.egg-info
writing malstroem.egg-info\PKG-INFO
writing dependency_links to malstroem.egg-info\dependency_links.txt
writing entry points to malstroem.egg-info\entry_points.txt
writing requirements to malstroem.egg-info\requires.txt
writing top-level names to malstroem.egg-info\top_level.txt
writing manifest file 'malstroem.egg-info\SOURCES.txt'
reading manifest file 'malstroem.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README.rst'
adding license file 'LICENSE'
writing manifest file 'malstroem.egg-info\SOURCES.txt'
C:\Users\J\anaconda3\envs\malstroem\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning: Installing 'malstroem.algorithms.speedups' as data is deprecated, please list it in packages.
!!

      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'malstroem.algorithms.speedups' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'malstroem.algorithms.speedups' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'malstroem.algorithms.speedups' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.


  !!

    check.warn(importable)
  copying malstroem\algorithms\speedups\_fill.c -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_flow.c -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_label.c -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_definitions.pxd -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_fill.pyx -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_flow.pyx -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_label.pyx -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  running build_ext
  building 'malstroem.algorithms.speedups._fill' extension
  creating build\temp.win-amd64-cpython-37
  creating build\temp.win-amd64-cpython-37\Release
  creating build\temp.win-amd64-cpython-37\Release\malstroem
  creating build\temp.win-amd64-cpython-37\Release\malstroem\algorithms
  creating build\temp.win-amd64-cpython-37\Release\malstroem\algorithms\speedups
  "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\J\anaconda3\envs\malstroem\lib\site-packages\numpy\core\include -IC:\Users\J\anaconda3\envs\malstroem\include -IC:\Users\J\anaconda3\envs\malstroem\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /Tcmalstroem/algorithms/speedups/_fill.c /Fobuild\temp.win-amd64-cpython-37\Release\malstroem/algorithms/speedups/_fill.obj
  _fill.c
  C:\Users\J\anaconda3\envs\malstroem\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for malstroem
Running setup.py clean for malstroem
Failed to build malstroem
Installing collected packages: malstroem
Running setup.py install for malstroem ... error
error: subprocess-exited-with-error

× Running setup.py install for malstroem did not run successfully.
│ exit code: 1
╰─> [96 lines of output]
C:\Users\J\anaconda3\envs\malstroem\lib\site-packages\setuptools\dist.py:774: UserWarning: Usage of dash-separated 'dry-run' will not be supported in future versions. Please use the underscore name 'dry_run' instead
% (opt, underscore_opt)
running install
C:\Users\J\anaconda3\envs\malstroem\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\malstroem
copying malstroem\approx.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\bluespots.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\dem.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\hyps.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\io.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\network.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\rain.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\streams.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem\vector.py -> build\lib.win-amd64-cpython-37\malstroem
copying malstroem_init_.py -> build\lib.win-amd64-cpython-37\malstroem
creating build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms\dtypes.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms\fill.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms\flow.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms\label.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms\net.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms_raster_utils.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
copying malstroem\algorithms_init_.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms
creating build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\bluespot.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\cli.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\complete.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\dem.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\finalstate.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\hyps.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\initvolume.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts\stream.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts_utils.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
copying malstroem\scripts_init_.py -> build\lib.win-amd64-cpython-37\malstroem\scripts
creating build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
copying malstroem\algorithms\speedups_init_.py -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
running egg_info
writing malstroem.egg-info\PKG-INFO
writing dependency_links to malstroem.egg-info\dependency_links.txt
writing entry points to malstroem.egg-info\entry_points.txt
writing requirements to malstroem.egg-info\requires.txt
writing top-level names to malstroem.egg-info\top_level.txt
reading manifest file 'malstroem.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README.rst'
adding license file 'LICENSE'
writing manifest file 'malstroem.egg-info\SOURCES.txt'
C:\Users\J\anaconda3\envs\malstroem\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning: Installing 'malstroem.algorithms.speedups' as data is deprecated, please list it in packages.
!!

      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'malstroem.algorithms.speedups' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'malstroem.algorithms.speedups' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'malstroem.algorithms.speedups' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.


  !!

    check.warn(importable)
  copying malstroem\algorithms\speedups\_fill.c -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_flow.c -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_label.c -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_definitions.pxd -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_fill.pyx -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_flow.pyx -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  copying malstroem\algorithms\speedups\_label.pyx -> build\lib.win-amd64-cpython-37\malstroem\algorithms\speedups
  running build_ext
  building 'malstroem.algorithms.speedups._fill' extension
  creating build\temp.win-amd64-cpython-37
  creating build\temp.win-amd64-cpython-37\Release
  creating build\temp.win-amd64-cpython-37\Release\malstroem
  creating build\temp.win-amd64-cpython-37\Release\malstroem\algorithms
  creating build\temp.win-amd64-cpython-37\Release\malstroem\algorithms\speedups
  "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\J\anaconda3\envs\malstroem\lib\site-packages\numpy\core\include -IC:\Users\J\anaconda3\envs\malstroem\include -IC:\Users\J\anaconda3\envs\malstroem\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /Tcmalstroem/algorithms/speedups/_fill.c /Fobuild\temp.win-amd64-cpython-37\Release\malstroem/algorithms/speedups/_fill.obj
  _fill.c
  C:\Users\J\anaconda3\envs\malstroem\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> malstroem

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

(malstroem) C:\Users\J>

Projection error message and polygon geometry warning during Malstroem execution

Hi Asger,
I get the below errors and warnings when executing the Malstroem module dated Sept. 9 2022.
I hope you can find some time to resolve them.
Best regards,
Thomas

C:\Malstroem>malstroem_20200922 complete -mm 30 -mm 60 -mm 100 -filter "volume > 1" -dem c:\malstroem\inputs\DTM_616_69\DTM_1km_6166_691.tif -outdir c:\Malstroem\Test2 -zresolution 0.10 -vector

ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
Processing
dem: c:\malstroem\inputs\DTM_616_69\DTM_1km_6166_691.tif
outdir: c:\Malstroem\Test2
mm: 100.0mm
zresolution: 0.1m
accum: False
filter: volume > 1
Calculating filled DEM
Calculating bluespot depths
Calculating flow directions
Done
Calculating unfiltered bluespots
Number of bluespots found before filtering: 218412
Calculating filtered bluespots
Number of bluespots left after filtering: 194
Vectorizing bluespots
Warning 1: A geometry of type POLYGON is inserted into layer bluespots of geometry type MULTIPOLYGON, which is not normally allowed by the GeoPackage specification, but the driver will however do it. To create a conformant GeoPackage, if using ogr2ogr, the -nlt option can be used to override the layer geometry type. This warning will no longer be emitted for this combination of layer and feature geometry type.
Calculating watersheds
Vectorizing watersheds
Warning 1: A geometry of type POLYGON is inserted into layer watersheds of geometry type MULTIPOLYGON, which is not normally allowed by the GeoPackage specification, but the driver will however do it. To create a conformant GeoPackage, if using ogr2ogr, the -nlt option can be used to override the layer geometry type. This warning will no longer be emitted for this combination of layer and feature geometry type.
Calculating pour points at min filled
Writing 195 pour points
Done
Read input data
Processing stream network
Writing 221 nodes
Reading input nodes
Calculating rain volumes
100.0mm
Writing output
Done
Reading input nodes
Creating stream network
Calculating final state
Reading initial water volumes from 'inputv'
Writing output
Done
Calculating approximate bluespot water levels using hypsometric histograms
Writing approximate bluespot water levels
Reading approximated water levels
Reading bluespot labels
Setting water levels
Reading DEM
Calculating depths
Writing approximate depths
Writing bluespot labels for approximate extents
Polygonizing final bluespots
0...10...20...30...40...50...60...70...80...90...100 - done.
Complete done...

Buffer dtype mismatch

I have installed malstroem from your fork on a linux platform, but cannot run the given example successfully. I don't know how C extensions for Python work, so I'm at a loss to debug this. Is there additional information I could provide to help?

$ malstroem complete -r 10 -r 30 -filter "maxdepth > 0.05" -dem dem.tif -outdir out
Processing
   dem: dem.tif
   outdir: out
   rain: 10.0mm, 30.0mm
   accum: False
   filter: maxdepth > 0.05
Calculating filled DEM
Calculating bluespot depths
Calculating flow directions
Done
Calculating unfiltered bluespots
Number of bluespots found before filtering: 1788
Calculating filtered bluespots
Number of bluespots left after filtering: 1788
Calculating watersheds
Calculating pour points at min filled
Traceback (most recent call last):
  File "/research-home/icarroll/.local/bin/malstroem", line 11, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/research-home/icarroll/.local/lib/python3.5/site-packages/malstroem/scripts/complete.py", line 100, in process_all
    bluespot_tool.process()
  File "/research-home/icarroll/.local/lib/python3.5/site-packages/malstroem/bluespots.py", line 204, in process
    filled_no_flats = fill.fill_terrain_no_flats(dem, short, diag)
  File "/research-home/icarroll/.local/lib/python3.5/site-packages/malstroem/algorithms/fill.py", line 209, in fill_terrain_no_flats
    if keep_going and _fill_terrain_no_flats(dtm, filled, 1, maxrow, 1, maxcol, short, diag):
  File "malstroem/algorithms/speedups/_fill.pyx", line 74, in malstroem.algorithms.speedups._fill._fill_terrain_no_flats
ValueError: Buffer dtype mismatch, expected 'DTYPE_t_DTM' but got 'unsigned short'

Versions
Ubuntu==16.04
Python==3.5.2
numpy==1.16.2
Cython==0.29.6
click-log=0.1.8
GDAL==2.1.3
scipy==1.2.1

Wrong examples in help text

De to eksempler i ”-- help dokumentationen” bør nok opdateres fra ”malstroem rain -pr …” til ”malstroem initvolumes -pr ... ”.

Python 2.7 deprecation

Are there plans to migrate / shift this program to python 3.x? With the EOL scheduled for 2020, installation might soon be problematic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.