Skip to content

Commit 1829b4d

Browse files
author
Joe Hamman
authored
Merge pull request #61 from UW-Hydro/develop
Develop --> master for v0.1
2 parents c7afa06 + 14c6a71 commit 1829b4d

Some content is hidden

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

71 files changed

+17474
-878
lines changed

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Based on http://conda.pydata.org/docs/travis.html
2+
sudo: false # use container based build
3+
notifications:
4+
email: false
5+
6+
language: python
7+
python:
8+
# We don't actually use the Travis Python, but this keeps it organized.
9+
- "3.6"
10+
- "3.5"
11+
12+
before_install:
13+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
14+
wget http://repo.continuum.io/miniconda/Miniconda-3.16.0-Linux-x86_64.sh -O miniconda.sh;
15+
else
16+
wget http://repo.continuum.io/miniconda/Miniconda3-3.16.0-Linux-x86_64.sh -O miniconda.sh;
17+
fi
18+
- bash miniconda.sh -b -p $HOME/miniconda
19+
- export PATH="$HOME/miniconda/bin:$PATH"
20+
- hash -r
21+
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
22+
- conda update -q conda
23+
- conda info -a
24+
25+
install:
26+
- conda env create --file ci/requirements-$TRAVIS_PYTHON_VERSION.yml
27+
- source activate test_env
28+
- python setup.py develop
29+
30+
script:
31+
- py.test --verbose

LICENSE

Lines changed: 675 additions & 21 deletions
Large diffs are not rendered by default.

ci/requirements-3.5.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: test_env
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.5
6+
- xarray
7+
- pandas
8+
- netcdf4
9+
- numba
10+
- numpy
11+
- scipy
12+
- pytest
13+
- pip:
14+
- coveralls
15+
- pytest-cov

ci/requirements-3.6.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: test_env
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.6
6+
- xarray
7+
- pandas
8+
- netcdf4
9+
- numba
10+
- numpy
11+
- scipy
12+
- pytest
13+
- pip:
14+
- coveralls
15+
- pytest-cov

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SPHINXPROJ = metsim
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/api.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.. currentmodule:: metsim
2+
3+
#############
4+
API reference
5+
#############
6+
7+
This page provides an auto-generated summary of metsim's API. For more details
8+
and examples, refer to the relevant chapters in the main part of the
9+
documentation.
10+
11+
MetSim
12+
=======
13+
14+
.. automodule:: metsim.metsim
15+
:members:
16+
17+
Physics
18+
=======
19+
20+
.. automodule:: metsim.physics
21+
:members:
22+
23+
MtClim
24+
=======
25+
26+
.. automodule:: metsim.methods.mtclim
27+
:members:
28+
29+
Disagg
30+
=======
31+
32+
.. automodule:: metsim.disaggregate
33+
:members:
34+

docs/conf.py

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# metsim documentation build configuration file, created by
5+
# sphinx-quickstart on Mon Feb 27 17:34:14 2017.
6+
#
7+
# This file is execfile()d with the current directory set to its
8+
# containing dir.
9+
#
10+
# Note that not all possible configuration values are present in this
11+
# autogenerated file.
12+
#
13+
# All configuration values have a default; values that are commented out
14+
# serve to show the default.
15+
16+
# If extensions (or modules to document with autodoc) are in another directory,
17+
# add these directories to sys.path here. If the directory is relative to the
18+
# documentation root, use os.path.abspath to make it absolute, like shown here.
19+
#
20+
import os
21+
import sys
22+
import sphinx_rtd_theme
23+
24+
sys.path.insert(0, os.path.abspath('.'))
25+
sys.path.insert(0, os.path.abspath('../'))
26+
27+
# -- General configuration ------------------------------------------------
28+
29+
# If your documentation needs a minimal Sphinx version, state it here.
30+
#
31+
# needs_sphinx = '1.0'
32+
33+
# Add any Sphinx extension module names here, as strings. They can be
34+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
35+
# ones.
36+
extensions = ['sphinx.ext.autodoc',
37+
'sphinx.ext.mathjax',
38+
'sphinx.ext.viewcode',
39+
'sphinx.ext.napoleon',
40+
'sphinx.ext.autosummary']
41+
42+
napoleon_google_docstring = False
43+
napoleon_use_param = False
44+
napoleon_use_ivar = True
45+
46+
# Add any paths that contain templates here, relative to this directory.
47+
templates_path = ['_templates']
48+
49+
# The suffix(es) of source filenames.
50+
# You can specify multiple suffix as a list of string:
51+
#
52+
# source_suffix = ['.rst', '.md']
53+
source_suffix = '.rst'
54+
55+
# The master toctree document.
56+
master_doc = 'index'
57+
58+
# General information about the project.
59+
project = 'metsim'
60+
copyright = '2017, Andrew Bennett, Joe Hamman, Bart Nijssen'
61+
author = 'Andrew Bennett, Joe Hamman, Bart Nijssen'
62+
63+
# The version info for the project you're documenting, acts as replacement for
64+
# |version| and |release|, also used in various other places throughout the
65+
# built documents.
66+
#
67+
# The short X.Y version.
68+
version = '0.0.0'
69+
# The full version, including alpha/beta/rc tags.
70+
release = '0.0.0'
71+
72+
# The language for content autogenerated by Sphinx. Refer to documentation
73+
# for a list of supported languages.
74+
#
75+
# This is also used if you do content translation via gettext catalogs.
76+
# Usually you set "language" from the command line for these cases.
77+
language = None
78+
79+
# List of patterns, relative to source directory, that match files and
80+
# directories to ignore when looking for source files.
81+
# This patterns also effect to html_static_path and html_extra_path
82+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
83+
84+
# The name of the Pygments (syntax highlighting) style to use.
85+
pygments_style = 'sphinx'
86+
87+
# If true, `todo` and `todoList` produce output, else they produce nothing.
88+
todo_include_todos = False
89+
90+
91+
# -- Options for HTML output ----------------------------------------------
92+
93+
# The theme to use for HTML and HTML Help pages. See the documentation for
94+
# a list of builtin themes.
95+
#
96+
html_theme = "sphinx_rtd_theme"
97+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
98+
99+
# Theme options are theme-specific and customize the look and feel of a theme
100+
# further. For a list of options available for each theme, see the
101+
# documentation.
102+
#
103+
# html_theme_options = {}
104+
105+
# Add any paths that contain custom static files (such as style sheets) here,
106+
# relative to this directory. They are copied after the builtin static files,
107+
# so a file named "default.css" will overwrite the builtin "default.css".
108+
html_static_path = ['_static']
109+
110+
111+
# -- Options for HTMLHelp output ------------------------------------------
112+
113+
# Output file base name for HTML help builder.
114+
htmlhelp_basename = 'metsimdoc'
115+
116+
117+
# -- Options for LaTeX output ---------------------------------------------
118+
119+
latex_elements = {
120+
# The paper size ('letterpaper' or 'a4paper').
121+
#
122+
# 'papersize': 'letterpaper',
123+
124+
# The font size ('10pt', '11pt' or '12pt').
125+
#
126+
# 'pointsize': '10pt',
127+
128+
# Additional stuff for the LaTeX preamble.
129+
#
130+
# 'preamble': '',
131+
132+
# Latex figure (float) alignment
133+
#
134+
# 'figure_align': 'htbp',
135+
}
136+
137+
# Grouping the document tree into LaTeX files. List of tuples
138+
# (source start file, target name, title,
139+
# author, documentclass [howto, manual, or own class]).
140+
latex_documents = [
141+
(master_doc, 'metsim.tex', 'metsim Documentation',
142+
'Andrew Bennett, Joe Hamman, Bart Nijssen', 'manual'),
143+
]
144+
145+
146+
# -- Options for manual page output ---------------------------------------
147+
148+
# One entry per manual page. List of tuples
149+
# (source start file, name, description, authors, manual section).
150+
man_pages = [
151+
(master_doc, 'metsim', 'metsim Documentation',
152+
[author], 1)
153+
]
154+
155+
156+
# -- Options for Texinfo output -------------------------------------------
157+
158+
# Grouping the document tree into Texinfo files. List of tuples
159+
# (source start file, target name, title, author,
160+
# dir menu entry, description, category)
161+
texinfo_documents = [
162+
(master_doc, 'metsim', 'metsim Documentation',
163+
author, 'metsim', 'One line description of project.',
164+
'Miscellaneous'),
165+
]

docs/examples.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Examples
2+
========
3+
4+
Coming soon.

docs/faq.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Frequently Asked Questions
2+
==========================
3+
4+
Why is VIC or MtClim not enough?
5+
-------------------------
6+
7+
8+
9+
What other Meteorological forcing disaggregation tools should I know about?
10+
---------------------------------------------------------------------------
11+
12+
13+
14+
How should I cite metsim?
15+
-------------------------

docs/index.md

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

0 commit comments

Comments
 (0)