Skip to content

Commit

Permalink
Added catchstats to bin commands in setup tool
Browse files Browse the repository at this point in the history
  • Loading branch information
doc78 committed Apr 30, 2024
1 parent 58265c0 commit ee35396
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ gdal-config --version # 3.0.1
pip install GDAL==3.0.1
```

Note: if you previously installed an older version of the lisflood-utilitiies, it is highly recommended to remove it before installing the newest version:
Note: if you previously installed an older version of the lisflood-utilities, it is highly recommended to remove it before installing the newest version:

```bash
pip uninstall lisflood-utilities
Expand Down
14 changes: 14 additions & 0 deletions bin/catchstats
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!python

import os
import sys

current_dir = os.path.dirname(os.path.abspath(__file__))
src_dir = os.path.normpath(os.path.join(current_dir, '../src/'))
if os.path.exists(src_dir):
sys.path.append(src_dir)

from lisfloodutilities.catchstats import main_script

if __name__ == '__main__':
main_script()
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def run(self):
'nc2pcr: Convert netCDF files ot PCRaster format; '
'cutmaps: cut netCDF files; '
'compare: compare two set of netCDF files; '
'ncextract: extract values from netCDF files; ',
'ncextract: extract values from netCDF files; '
'catchstats: calculates catchment statistics; ',
long_description=long_description,
long_description_content_type='text/markdown',
setup_requires=[
Expand All @@ -145,7 +146,7 @@ def run(self):
keywords=['netCDF4', 'PCRaster', 'mapstack', 'lisflood', 'efas', 'glofas', 'ecmwf', 'copernicus'],
license='EUPL 1.2',
url='https://github.com/ec-jrc/lisflood-utilities',
scripts=['bin/pcr2nc', 'bin/cutmaps', 'bin/compare', 'bin/nc2pcr', 'bin/thresholds', 'bin/gridding', 'bin/cddmap', 'bin/ncextract',],
scripts=['bin/pcr2nc', 'bin/cutmaps', 'bin/compare', 'bin/nc2pcr', 'bin/thresholds', 'bin/gridding', 'bin/cddmap', 'bin/ncextract','bin/catchstats',],
zip_safe=True,
classifiers=[
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down

0 comments on commit ee35396

Please sign in to comment.