Skip to content

Commit

Permalink
updated environments, their descriptions and setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
cnavacch committed Nov 13, 2019
1 parent c413a65 commit 1c70301
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 24 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ MANIFEST
# Per-project virtualenvs
.venv*/

# user scripts
.scripts

# testdata
/tests/testdata/
/tests/data/
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*Earth Observation (EO) data, I must read.*

## Description

*yeoda* stands for **y**our **e**arth **o**bservation **d**ata **a**ccess and provides lower and higher-level data cube
classes to work with well-defined and structured earth observation data. These data cubes allow to filter, split and load data independently from the way the data is structured on the hard disk.
Once the data structure is known to *yeoda*, it offers a user-friendly interface to access the data with the aforementioned operations.
Expand All @@ -22,26 +21,29 @@ These grid packages can simplify and speed up spatial operations to identify til

## Limitations and Outlook
At the moment the functionality of *yeoda* is limited in terms of flexibility with different file types, bands and
tiles, e.g. you can only load data from one tile and one band. This will change in the future by allowing to load data also independent from tile boundaries, bands and file types.
tiles, e.g. you can only load data from one tile and one band. This will change in the future by allowing to load data also independently from tile boundaries, bands and file types.
Most changes will take place in *veranda* and *geospade*, so the actual interface to the data given by *yeoda* should stay approximately the same.

## Installation
The package can be either installed via pip or if you solely want to work with *yeoda* or contribute, we recommend to
install it as a conda environment.
install it as a conda environment. If you work already with your own environment, please have look at ``requirements.txt``.

### pip
To install *yeoda* via pip in you own environment, use:
To install *yeoda* via pip in your own environment, use:
```
pip install yeoda
```

### conda
The packages also comes along with an own conda environment (``conda_env.yml``).
The packages also comes along with two conda environments, one for Linux (``conda_env_linux.yml``) and one for Windows (``conda_env_windows.yml``).
This is especially recommended if you want to contribute to the project.
The following script will install miniconda and setup the environment on a UNIX
like system. Miniconda will be installed into ``$HOME/miniconda``.
```
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda env create -f conda_env.yml
conda env create -f conda_env_linux.yml
source activate yeoda
```
This script adds ``$HOME/miniconda/bin`` temporarily to the ``PATH`` to do this
Expand All @@ -55,7 +57,7 @@ For Windows, use the following setup:
You can find the ``condabin`` folder usually under: ``C:\Users\username\AppData\Local\Continuum\miniconda3\condabin``
* Finally, you can set up the conda environment via:
```
conda env create -f conda_env.yml
conda env create -f conda_env_windows.yml
source activate yeoda
```

Expand Down
1 change: 1 addition & 0 deletions conda_env_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- netCDF4
- xarray
- dask
- pip
- pip:
- geopandas>=0.6.1
- pytileproj==0.0.12
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ Installation
============

The package can be either installed via pip or if you solely want to work with *yeoda* or contribute, we recommend to
install it as a conda environment.
install it as a conda environment. If you work already with your own environment, please have look at ``requirements.txt``.

pip
===

To install *yeoda* via pip in you own environment, use:
To install *yeoda* via pip in your own environment, use:

.. code-block:: console
pip install yeoda
conda
=====
The packages also comes along with an own conda environment (``conda_env.yml``).
The packages also comes along with two conda environments, one for Linux (``conda_env_linux.yml``) and one for Windows (``conda_env_windows.yml``).
This is especially recommended if you want to contribute to the project.
The following script will install miniconda and setup the environment on a UNIX
like system. Miniconda will be installed into ``$HOME/miniconda``.
Expand All @@ -26,7 +26,7 @@ like system. Miniconda will be installed into ``$HOME/miniconda``.
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda env create -f conda_env.yml
conda env create -f conda_env_linux.yml
source activate yeoda
This script adds ``$HOME/miniconda/bin`` temporarily to the ``PATH`` to do this
Expand All @@ -45,7 +45,7 @@ For Windows, use the following setup:

.. code-block:: console
conda env create -f conda_env.yml
conda env create -f conda_env_windows.yml
source activate yeoda
Expand Down
14 changes: 13 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# remaining and currently not officially released requirements
# Required packages needed to be installed with conda (preferably from the conda-forge channel):
# python=3.6
# gdal=2.4.3
# geopandas>=0.6.1 # Note that at the moment geopandas needs to be installed with pip under Linux
# regex
# netCDF4
# xarray
# dask
# pip

# remaining and currently not officially released requirements:
pytileproj==0.0.12
Equi7Grid==0.0.10
git+https://github.com/TUW-GEO/veranda.git@master
git+https://github.com/TUW-GEO/geopathfinder.git@master

10 changes: 0 additions & 10 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ package_dir =
=src
# DON'T CHANGE THE FOLLOWING LINE! IT WILL BE UPDATED BY PYSCAFFOLD!
setup_requires = pyscaffold>=3.1a0,<3.2a0
# Add here dependencies of your project (semicolon/line-separated), e.g.

install_requires =
regex
netCDF4
geopandas>=0.6.1
xarray
dask
pytileproj==0.0.12
Equi7Grid==0.0.10

# The usage of test_requires is discouraged, see `Dependency Management` docs
# tests_require = pytest; pytest-cov
Expand Down

0 comments on commit 1c70301

Please sign in to comment.