-
Data conversion
- hip - Tools for working with data from Hydrologisk Informations- og Prognosesystem.
-
Data retrieval
These instructions assume you have a working python installation with pip.
-
Use your package manager to install
On debian use
apt install libnetcdf19 libudunits2-0 git -
(Optional) Create a virtual environment
python -m venv ~/.venvs/daisy-tools source ~/.venvs/daisy-tools/bin/activate -
Use pip to install daisy tools
pip install git+https://github.com/daisy-model/tools.git@hip
These instructions assume you have a working python installation with pip.
-
Install homebrew. See https://brew.sh/
-
Use homebrew to install
- netcdf. See https://formulae.brew.sh/formula/netcdf#default
- udunits. See https://formulae.brew.sh/formula/udunits#default
- git. See https://formulae.brew.sh/formula/git#default
.
brew install netcdf udunits git -
(Optional) Create a virtual environment
python -m venv ~/.venvs/daisy-tools source ~/.venvs/daisy-tools/bin/activate -
Use pip to install daisy tools
pip install git+https://github.com/daisy-model/tools.git@hip
-
Install Miniconda or Anaconda. Install Miniconda unless you want all the extra stuff in Anaconda.
-
Start the Miniconda/Anaconda Powershell prompt.
-
Download the conda environment file
environment.ymland create a new environment from it using the following commands. This will install all dependencies.curl.exe -o daisy-tools-environment.yml https://raw.githubusercontent.com/daisy-model/tools/hip/environment.yml conda env create -f daisy-tools-environment.yml rm daisy-tools-environment.yml conda activate daisy-tools -
Set the path to
udunits2.xmland reactivate the environmentconda env config vars set UDUNITS2_XML_PATH="$env:CONDA_PREFIX\Library\share\udunits\udunits2.xml" conda activate daisy-tools -
Download and install daisy tools
curl.exe -o daisy_tools.tar.gz -L https://github.com/daisy-model/tools/releases/latest/download/daisy_tools.tar.gz pip install daisy_tools.tar.gz rm daisy_tools.tar.gz
See the README in each tool directory.