Skip to content

Commit 57f39c6

Browse files
authored
Merge pull request #14 from wpreimes/develop
Preparation for new release
2 parents cf25fa1 + 6158eee commit 57f39c6

8 files changed

+36
-17
lines changed

Diff for: .gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pygeobase/_version.py export-subst
1+
pygeobase/_version.py export-subst

Diff for: README.rst

+21-6
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,34 @@ You can find additional information regarding DOI versioning at http://help.zeno
3737
Installation
3838
============
3939

40-
For installation we recommend `Miniconda
41-
<http://conda.pydata.org/miniconda.html>`_. So please install it according to
42-
the official installation instructions. As soon as you have the ``conda``
40+
Install required C-libraries via conda. For installation we recommend
41+
`Miniconda<http://conda.pydata.org/miniconda.html>`_. So please install it according
42+
to the official installation instructions. As soon as you have the ``conda``
4343
command in your shell you can continue.
4444

45-
The following script will download and install all the needed packages.
45+
.. code::
46+
47+
conda install -c conda-forge pygrib netcdf4=1.2.2
48+
49+
The following command will download and install all the needed pip packages as well
50+
as the ecmwf-model package itself.
4651

4752
.. code::
4853
49-
conda env create -f environment.yml
50-
source activate ecmwf-models
5154
pip install ecmwf_models
5255
56+
To create a full development environment with conda, the environment.yml file
57+
in this repository can be used.
58+
59+
.. code::
60+
61+
git clone [email protected]:TUW-GEO/ecmwf_models.git ecmwf_models
62+
cd ecmwf_models
63+
conda create -n ecmwf-models python=2.7 # or any other supported version
64+
conda env update -f environment.yml
65+
source activate ecmwf-models
66+
python setup.py develop
67+
5368
This script should work on Linux or OSX and uses the ``environment.yml`` file
5469
included in this repository. On Windows the reading of grib files is not
5570
available at the moment. On Windows a solution would be to download the ECMWF

Diff for: ecmwf_models/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
try:
44
__version__ = pkg_resources.get_distribution(__name__).version
55
except:
6-
__version__ = 'unknown'
6+
__version__ = 'unknown'

Diff for: ecmwf_models/download.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
# The MIT License (MIT)
23
#
34
# Copyright (c) 2018, TU Wien
@@ -27,7 +28,12 @@
2728
from ecmwfapi import ECMWFDataServer
2829
import argparse
2930
import sys
30-
import pygrib
31+
import warnings
32+
try:
33+
import pygrib
34+
except ImportError:
35+
warnings.warn("pygrib has not been imported")
36+
3137
import os
3238
from datetime import datetime, timedelta
3339
import xarray as xr

Diff for: environment.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#this file is not used at the moment
21
name: ecmwf-models
32
channels:
4-
- conda-forge
3+
- conda-forge
54
dependencies:
65
- numpy
76
- matplotlib

Diff for: requirements.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Add your requirements here like:
22
# numpy
33
# scipy>=0.9
4-
numpy
4+
numpy>=1.15.4
55
pandas
66
scipy
77
configobj
@@ -16,6 +16,4 @@ pygeobase
1616
repurpose
1717
pytesmo
1818
pynetcf
19-
configobj
20-
21-
19+
configobj

Diff for: setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = ecmwf_models
3-
summary = Add a short description here!
3+
summary = Downloading, reading and TS conversion of ECMWF reanalysis data
44
author = Christoph Paulik
55
author-email = [email protected]
66
license = mit

Diff for: test-requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# They will be installed automatically when running `python setup.py test`.
33
# ATTENTION: Don't remove pytest-cov and pytest as they are needed.
44
pytest-cov
5-
pytest
5+
coverage==4.5.2
6+
pytest

0 commit comments

Comments
 (0)