ec-jrc / lisflood-utilities

LISFLOOD OS - Utilities
https://ec-jrc.github.io/lisflood
European Union Public License 1.2
22 stars 10 forks source link

Unify utilities scripts in one distribution #3

Closed domeniconappo closed 5 years ago

domeniconappo commented 5 years ago

Should we collect all scripts/utilities in one project and create a setup with multiple scripts/entrypoints so that the user can do:

pip install lisflood-utilities
pcr2nc -i /path/to/input/ -o /path/to/output/out.nc -m ./nc_metadata.yaml
nc_cutter -m /path/to/mask -l /path/to/list/of/files -o /path/output

?

In this sense, would be nice to port the gfit R source code to Python.

@alfios17 @valeriolorini

What do you think? Currently is quite intricate as the user must clone repository, having then three different disconnected source folders...

Only pcr2nc can be installed like a simple python package:

pip install pcr2nc
pcr2nc -i /path/to/input/ -o /path/to/output/out.nc -m ./nc_metadata.yaml