Skip to content

Commit ef16e06

Browse files
author
Joe Hamman
committed
Merge pull request #56 from UW-Hydro/develop
RVIC 1.1 release merge from develop
2 parents 1b220c8 + ea5e52d commit ef16e06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2411
-1512
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.nc filter=lfs diff=lfs merge=lfs -text
2+
*.csv filter=lfs diff=lfs merge=lfs -text

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ rvic.egg-info
2121
# Configuration Files #
2222
#######################
2323
*cfg
24+
samples/cases/*
2425

2526
# Packages #
2627
############

.travis.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
language: python
2+
sudo: false # use container based build
3+
notifications:
4+
email: false
5+
6+
matrix:
7+
fast_finish: true
8+
include:
9+
- python: 2.7
10+
- python: 3.4
11+
- python: 3.5
212

3-
python:
4-
- "2.7"
513
# Setup anaconda
614
before_install:
7-
- wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh
8-
- chmod +x miniconda.sh
9-
- ./miniconda.sh -b
10-
- export PATH=/home/travis/anaconda/bin:$PATH
11-
# Update conda itself
12-
- conda update --yes conda
13-
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
14-
- sudo rm -rf /dev/shm
15-
- sudo ln -s /run/shm /dev/shm
15+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
16+
wget http://repo.continuum.io/miniconda/Miniconda-3.16.0-Linux-x86_64.sh -O miniconda.sh;
17+
else
18+
wget http://repo.continuum.io/miniconda/Miniconda3-3.16.0-Linux-x86_64.sh -O miniconda.sh;
19+
fi
20+
- bash miniconda.sh -b -p $HOME/miniconda
21+
- export PATH="$HOME/miniconda/bin:$PATH"
22+
- hash -r
23+
- conda config --set always_yes yes --set changeps1 no
24+
- conda update -q conda
25+
- conda info -a
1626
# Install packages
1727
install:
18-
- conda create --yes --name=rvic_test_env python=$TRAVIS_PYTHON_VERSION --file=ci/requirements-2.7.txt
19-
- source activate rvic_test_env
28+
- conda create --yes --name=test python=$TRAVIS_PYTHON_VERSION numpy scipy pandas netcdf4 matplotlib pytest
29+
- source activate test
30+
# - conda install -c https://conda.anaconda.org/ioos cdo
31+
# - pip install cdo
2032
- python setup.py install
2133
# Run test
2234
script:
23-
- which python
24-
- python --version
25-
- conda list
26-
- pip freeze
27-
- echo $PATH
28-
- python -c 'import rvic; print rvic.__file__'
29-
- cd tests
30-
- pwd
31-
- python run_tests.py unit
35+
- py.test

ci/requirements-2.7-dev.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

ci/requirements-2.7.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

config/rvic_convert_example.cfg

Lines changed: 0 additions & 95 deletions
This file was deleted.

docs/development/whats_new.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# What's New
2+
3+
v1.1.0 (25 October 2015)
4+
5+
This release contains a number of bug and compatibility fixes.
6+
7+
### Enhancements
8+
9+
- Compatibility with Python 3.4 and 3.5 ([GH38](https://github.com/UW-Hydro/RVIC/pull/38)).
10+
- Simplified multiprocessing in `parameters` which should improve stability ([GH60](https://github.com/UW-Hydro/RVIC/pull/60)).
11+
12+
### Bug Fixes
13+
14+
- Fixed bug that caused `REMAP=False` to fail ([GH60](https://github.com/UW-Hydro/RVIC/pull/60)).
15+
- Improvements were made to the `SEARCH_FOR_CHANNEL` option in `parameters`.
16+
- Fixed bug where last timestep of history output was not populated ([GH71](https://github.com/UW-Hydro/RVIC/pull/71)).

docs/support/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
At the moment, no. However, many of the pieces needed to support this feature are already included in RVIC. This is a feature that has been identified for a future version of RVIC.
55

66
### Can route flows to every grid cell in my domain using RVIC?
7-
Yes, it is possible to route to every grid cell in the RVIC domain. That said, it may not be the most efficent way to use RVIC. RVIC is a source to sink routing model which means it doesn't track where streamflow is along its flow path. When you route to every grid cell in the domain, you are duplicating a lot of calculations. There are other routing models that route flow from grid cell to grid cell.
7+
Yes, it is possible to route to every grid cell in the RVIC domain. That said, it may not be the most efficient way to use RVIC. RVIC is a source to sink routing model which means it doesn't track where streamflow is along its flow path. When you route to every grid cell in the domain, you are duplicating a lot of calculations. There are other routing models that route flow from grid cell to grid cell.
88

99
### Is there a C or Fortran Version of RVIC?
10-
RVIC has been coupled in the Community Earth System Model (CESM) as the streamflow routing model. For that project, a Fortran version of the "convolution" step was written. At this time, there is not a C version of this routing model. In the future, a C binding may be created to coupled with the stand-alone VIC model version 5.
10+
RVIC has been coupled in the Community Earth System Model (CESM) as the streamflow routing model. For that project, a Fortran version of the "convolution" step was written. Work is currently underway to couple RVIC to the stand-alone image driver in VIC 5.0 ([VIC231](https://github.com/UW-Hydro/VIC/pull/231)).

docs/user-guide/convolution.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ The flux file(s) must be in netCDF format and have a `time` dimension as well as
2828
3. **CASE_DIR**
2929
- Description: case run directory
3030
- Type: char
31-
4. **RVIC_TAG**
32-
- Description: RVIC Tag
33-
- Type: char
3431
5. **CASEID**
3532
- Description: Case ID
3633
- Type: char

docs/user-guide/install.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
11
# Installing RVIC
22

33
## Dependencies
4-
- [Python 2.7](http://www.python.org/)
5-
- [Numpy](http://www.numpy.org)
6-
- [Scipy](http://www.scipy.org/)
7-
- [netcdf4-python](https://code.google.com/p/netcdf4-python/)
4+
- [Python 2.7 or later including Python3](http://www.python.org)
5+
- [NumPy](http://www.numpy.org)
6+
- [SciPy](http://www.scipy.org)
7+
- [netcdf4-python](https://code.google.com/p/netcdf4-python)
8+
- [pandas](http://pandas.pydata.org)
89

910
If using `REMAP=True`:
1011

11-
- [cdo](https://code.zmaw.de/projects/cdo)
12+
- [CDO](https://code.zmaw.de/projects/cdo)
1213
- [cdo.py](https://github.com/Try2Code/cdo-bindings)
1314

15+
## Installing using a package manager
16+
17+
RVIC is available via [PyPi](https://pypi.python.org/pypi/rvic):
18+
19+
```
20+
pip install rvic
21+
```
22+
23+
or Anaconda via the UW-Hydro channel:
24+
25+
```
26+
conda install --channel https://conda.anaconda.org/UW-Hydro rvic
27+
```
28+
1429
## Building RVIC
1530

1631
### Option 1: Using Anaconda

0 commit comments

Comments
 (0)