Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We have added an API call for retrieving individual ensembles #35

Open
wants to merge 364 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
364 commits
Select commit Hold shift + click to select a range
c6b2e0b
Added warning point control panel, made tab panels.
Mar 17, 2016
1ca564d
Modified content organization for plot area
Mar 18, 2016
2f471c5
Bug fix for hiding legend items.
Mar 18, 2016
fc0428f
Added warning point forecast date option for consistency.
Mar 18, 2016
db013d5
Added automatic switch to plot tab when displaying data.
Mar 18, 2016
28b28f5
Bug fix for layer group turning off. Modified visibility of boundary …
Mar 24, 2016
5a01722
Modified LSM process
Apr 6, 2016
0b23bbe
updated dataset manager
Apr 6, 2016
860758b
Added functionality to download ERA Interim data.
Apr 6, 2016
8a1bfc2
Fixed ERA Interim daily download.
Apr 7, 2016
5460646
Made print statements compatible with all python versions.
Apr 7, 2016
8813599
Initial stages for warning point slider.
Apr 7, 2016
f5b8520
More stable version of warning points filter.
Apr 8, 2016
0cad4b8
Made warning point slider stable for layer groups
Apr 8, 2016
0c84640
Update warning point load method. Changed display of chart units.
Apr 8, 2016
b1f298b
Updated units display for chart
Apr 11, 2016
1c0f5b3
Bug fix displaying warning flags when not group
Apr 19, 2016
6f3c99a
Date comparison bug fix for warning flags.
Apr 29, 2016
a26b44d
Added redirect with message if watershed not selected.
May 2, 2016
1b0d1a9
Modified info window from reach to river segment.
May 2, 2016
5c356e5
Bug fixes and new map controls with legend.
May 2, 2016
af83224
Added legend and new map controls.
May 2, 2016
21fb557
removed mini-map
May 3, 2016
2be6532
added legend to highchart
May 3, 2016
1e0a9e0
added tooltip for toggle
May 3, 2016
20860ab
improved error handling for era interim download
May 3, 2016
1be8630
Added tooltop for warning flag layers
May 3, 2016
7c86f41
added tooltip for ECMWF legend items
May 3, 2016
f24a2fa
added tooltip for ERA Interim legend item
May 3, 2016
2e7e237
removed unused variables
May 3, 2016
7baaa48
bug fix added attributes to database
Jun 17, 2016
ddc0788
Bug fix incrementing date.
Jun 29, 2016
c3b45a4
Warning slider bug fix date increments.
Jun 29, 2016
1e4e2f9
Added reference to publication.
Jun 29, 2016
ef38f55
Added message for when warning points are loading.
Jun 30, 2016
652b14a
Merge branch 'master' of https://github.com/erdc-cm/tethysapp-streamf…
Jun 30, 2016
1d2351e
Rearranged links to preprocessing tools
Jul 5, 2016
6414f54
Bug fix displaying warning point at end of time limit if +12 hrs
Jul 12, 2016
b0b6563
Merge branch 'master' of https://github.com/erdc-cm/tethysapp-streamf…
Jul 12, 2016
2c7cdb8
Bug fix hiding warning point legend item
Jul 12, 2016
d84477c
bug fix deleting prediction folder with updated naming conventions
Jul 15, 2016
c2c40e7
Added function to delete RAPID input on CKAN. Made app delete RAPID i…
Jul 15, 2016
3c6340a
updated dataset manager
Jul 15, 2016
6b5c7aa
added workspace directory
Jul 15, 2016
df40a11
modified upload path to app_workspace
Jul 15, 2016
36dd424
delete uploaded file when done
Jul 15, 2016
63dd40e
Added owner_org attribute to CKAN data store
Jul 15, 2016
a4b485b
Added publications page.
Aug 2, 2016
6c49428
added html for publications
Aug 2, 2016
3be831b
Modified exit button to be back button
Aug 2, 2016
aa0db2b
Modified side navigation to highlight active links
Aug 2, 2016
202875e
updated to new DataStore object
Aug 16, 2016
833e34f
made publication page open to logged in users
Aug 30, 2016
73239a7
updated version
Aug 30, 2016
24ea464
Updated code for select2 v4
Sep 2, 2016
bc01573
Added seasonal average option.
Sep 2, 2016
973be51
Improved error message behavior.
Sep 2, 2016
e7ea43c
Improve behavior of seasonal chart load.
Sep 2, 2016
6b2a2c0
Modified seasonal chart to display month & day of the year.
Sep 2, 2016
73fc991
Improved seasonal series date appearance.
Sep 2, 2016
d009896
updated dataset manager
Sep 2, 2016
d9d1dc3
incemented tethysplatform version required as well as CORS for geoserver
Sep 2, 2016
6c4adda
added initial readthedocs docs
Sep 9, 2016
3bbe688
added gitignore
Sep 9, 2016
87ef995
added requirements txt
Sep 9, 2016
575f001
removed github pages extension
Sep 9, 2016
668a6bc
updated headers
Sep 9, 2016
2b91cae
updated theme
Sep 9, 2016
d351824
updated theme
Sep 9, 2016
0f4b845
moved instructions to readthedocs
Sep 9, 2016
9493d68
removed last modified and unused items
Sep 9, 2016
7756bb2
updated paths
Sep 9, 2016
1276302
updated RAPIDpy docs to readthedocs
Sep 27, 2016
de395cf
added develoment information
Oct 4, 2016
1b70833
added docs
Oct 4, 2016
29b22ce
modified urls to use https where possible
Dec 15, 2016
e9c9457
fixed conflict with erdc dev branch
msouff Jan 27, 2017
1813472
added documentation for the getwaterml method
msouff Jan 27, 2017
9aca785
added documentation for the getwaterml method
msouff Jan 27, 2017
838ba4c
renamed spt rest api doc file
msouff Jan 27, 2017
807c519
Merge pull request #4 from msouff/dev
Jan 27, 2017
7bb66c1
merge to be compatible with Tethys Platform 1.5
Jan 27, 2017
a3fc9eb
added credential parameters to getwaterml parameters
msouff Feb 1, 2017
e26cb26
Changed authentication system to token authentication
msouff Feb 15, 2017
0e13fdf
added GetHistoricData method to retrieve ERA Interim data in WaterML …
msouff Feb 23, 2017
bf4da58
added GetReturnPeriods and GetAvailableDates methods to the API
msouff Feb 23, 2017
34597b5
Modified the API methods
msouff Mar 1, 2017
85a28ce
Merge pull request #5 from msouff/dev
Mar 2, 2017
d0fa5da
Update README.md
Apr 7, 2017
75f1fd4
Merge pull request #17 from erdc-cm/dev
May 22, 2017
65c020c
migrate to tethys settings for database
Jun 24, 2017
7fb1cd6
updated back button
Jun 24, 2017
832240b
made padding smaller
Jun 25, 2017
0ba542d
re-ordered return period warings so most important on top
Jul 6, 2017
0ebc29b
updated to 2.0 Tethys version
Jul 6, 2017
af59bee
Merge pull request #18 from snowman2/tethys2
Jul 6, 2017
e9a7899
fixed minor bugs
Jul 19, 2017
393de26
fixed minor bugs
Jul 19, 2017
c60e4e2
Merge pull request #19 from msouff/tethys2.0
Jul 22, 2017
83c3518
removed unused floodmap code
Jul 24, 2017
2e7ff3f
added stroke buffer for better stream selection/set default warning p…
Jul 26, 2017
411e96e
Merge branch 'master' of https://github.com/erdc-cm/tethysapp-streamf…
Jul 26, 2017
73575ad
removed unnecessary lines
Jul 24, 2017
235db07
cleanup and update database stuff
Jul 24, 2017
185752a
moved settings to tethys custom settings; removed WRF from framework
Jul 25, 2017
3ec45a9
tabs to spaces
Jul 25, 2017
33da983
use http decorators require_GET, require_POST
Jul 25, 2017
11a72d9
bugfix with subtitle var
Jul 25, 2017
6daa3a4
remove __init__ and remove wrf parameters
Jul 25, 2017
40df2db
modified to use xarray/pandas to do statistics on ensembles
Jul 25, 2017
6423a0b
moved statistics function; use xarray with return periods
Jul 25, 2017
77ea719
spacing fixes
Jul 25, 2017
4cabd1a
moved modal to proper location
Jul 26, 2017
d499f06
made units toggle small
Jul 26, 2017
dc83e47
moved search to modal
Jul 26, 2017
06b4722
removed unused block
Jul 26, 2017
6ace4e4
map full screen; warnings modal; chart to modal
Jul 26, 2017
213908c
added button to show the plot
Jul 26, 2017
2775489
adjusted the resoulution for displaying streams to not overload the b…
Jul 26, 2017
981a7a7
update spacing
Jul 26, 2017
2adab77
added message to click on reach in modal
Jul 26, 2017
89c7175
improved feature selection snapping
Jul 26, 2017
fb442e7
fix adding geoserver & data store
Jul 26, 2017
8d89fde
increase hit tolerance to 50
Jul 26, 2017
c02122c
update db model generation to use keywords
Jul 26, 2017
65bde5a
added cron submit to manage watersheds
Jul 26, 2017
6ec0aa5
added cron job in setup.py instead of in runtime
Jul 26, 2017
ed6e585
removed unecessary parenthesis
Jul 26, 2017
f1a827a
bug fix
Jul 26, 2017
a15be50
Merge pull request #21 from msouff/tethys2.0
Jul 26, 2017
23e2a06
Merge pull request #20 from snowman2/dev
Jul 26, 2017
4ce9720
updated initialization to new settings and database methods
Aug 2, 2017
dfd7909
Merge pull request #24 from snowman2/db_init_fix
Aug 2, 2017
cb729ca
modified init stores to use key value pairs
Aug 2, 2017
aab4706
Merge pull request #26 from snowman2/master
Aug 2, 2017
5b25cb3
remove hydroshare as unsupported
Aug 2, 2017
eb8c54d
Merge branch 'master' of https://github.com/erdc-cm/tethysapp-streamf…
Aug 2, 2017
13a89b6
removed submodule dependency
Aug 3, 2017
73787fc
updated documentation for 2.0 install
Aug 3, 2017
d30d4ed
fixed add watershedgroup bug/added tree style view for table of content
Aug 2, 2017
164afab
added GetWarningPoints functionality to API
Aug 2, 2017
a7b95fd
watershedgroup and getwarnings cherrypicked
msouff Aug 3, 2017
9394153
Merge pull request #27 from msouff/erdc-master
Aug 3, 2017
d1c231a
Merge branch 'master' of https://github.com/erdc-cm/tethysapp-streamf…
Aug 3, 2017
4bc3f43
updated to pass pylint & flake8
Aug 3, 2017
bdb956c
updated to pass pylint & flake8
Aug 3, 2017
80165c0
added pylintrc file
Aug 3, 2017
969158e
updated to pass flake8 & pylint
Aug 3, 2017
53ac8dd
spacing update
Aug 3, 2017
cbb55c2
updated comment style
Aug 3, 2017
5811a16
updated to pass flake8 & pylint
Aug 3, 2017
5bae4ad
added exceptions
Aug 3, 2017
b11410b
added exceptions for model.py
Aug 3, 2017
cf7763e
passed flake8 & pylint
Aug 3, 2017
c785d64
added ending
Aug 3, 2017
b71b783
code styling improvements
Aug 3, 2017
cf52d35
moved watershed cleanup functions to model class & added delete event…
Aug 4, 2017
bc63fcf
flake8 fixes
Aug 4, 2017
bd643b3
flake8 and pylint fixes
Aug 4, 2017
dea2fd3
bug fix for new input name
Aug 4, 2017
ed7203b
removed unused function
Aug 4, 2017
79a0e23
flake8 fixes & ignore warning by line
Aug 4, 2017
d69f017
flake8 fixes
Aug 4, 2017
b3069dc
updated to use xarray instead of RAPIDDataset
Aug 4, 2017
56896ec
pylint fixes
Aug 4, 2017
20bd905
added travis yml for testing; fixed pylint errors
Aug 4, 2017
d2a938d
added tethys install
Aug 4, 2017
747e7c3
added app installation
Aug 4, 2017
be2b5eb
added python version to install
Aug 4, 2017
a783a98
added miniconda to PATH
Aug 4, 2017
97a8fe6
add command to allow aliases
Aug 4, 2017
c7814ae
modified method to activate environment as t failed
Aug 4, 2017
f88cf8d
update order of install
Aug 4, 2017
e70bc90
only run custom tethys install command before init crontab
Aug 4, 2017
b44ab2e
update method for installing cron job to download data
Aug 4, 2017
3f1b35b
moved import to inside function
Aug 4, 2017
45b3756
added namespace declaration
Aug 4, 2017
2f33588
removed crontab test due to permissions limitations
Aug 4, 2017
efcbb60
bug fix for inputs
Aug 4, 2017
b553563
updated commands to add maangement command to tethys apps
Aug 4, 2017
f11621a
flake8 & pylint fixes
Aug 4, 2017
e8c47c1
added spt_dataset_services to install
Aug 7, 2017
9291c16
install spt_dataset_manager up a directory
Aug 7, 2017
69fe771
Merge pull request #28 from snowman2/master
Aug 7, 2017
35d7a72
updated seasonal chart to use plotly
Aug 7, 2017
d81e5ed
bugfix updating watershed groups
Aug 7, 2017
ec0b826
Merge branch 'master' of https://github.com/erdc-cm/tethysapp-streamf…
Aug 7, 2017
eb3dfd2
added travis-ci badge
Aug 7, 2017
fe85c98
improved exception handling; moved interim data to separate chart
Aug 7, 2017
4677fed
improved exception handling; moved interim data to separate chart
Aug 7, 2017
d3a0014
pylint and flake8 fixes
Aug 7, 2017
0b54430
added labels for return period bands
Aug 8, 2017
2917400
updated labels to add max and show values
Aug 8, 2017
28be6eb
styling fixes
Aug 8, 2017
ce051f3
Added return values to chart label
Aug 8, 2017
e54720a
modified functionality to automatically download chart when tab selected
Aug 8, 2017
7872423
stability fixes for new chart display methods
Aug 8, 2017
29ac207
update info message to include zoom
Aug 8, 2017
630b594
updated table of contents
Aug 8, 2017
922042d
removed bottom padding for intro message
Aug 8, 2017
c7cad39
removed unused line
Aug 8, 2017
ed35c43
various exception handling fixes
Aug 8, 2017
3690455
added contect manager for rivid exceptions; api fixes
Aug 8, 2017
f488183
Added flow-duration curve plot; added subtitles to plots
Aug 8, 2017
aabd41d
styling fixes
Aug 8, 2017
3338ef1
added scipy dependency
Aug 8, 2017
010e960
added fix to ensure plotly plots resize when window resizes
Aug 8, 2017
efb5f38
added monthly seasonal streamflow chart
Aug 8, 2017
11d2eb3
flake8 update
Aug 8, 2017
47eb02c
update organization to re-use functions in API and controllers; start…
Aug 9, 2017
65fcdcd
api fixes for GetForecast
Aug 9, 2017
9889df6
migrated main forecast plot to use plotly
Aug 9, 2017
004409f
added unit conversion for all charts
Aug 10, 2017
e6a060f
modified forecast chart to use plotly; removed highcharts; finsiehs f…
Aug 10, 2017
a0b2796
styling fixes
Aug 10, 2017
8d4dacb
updated forecast chart styling
Aug 10, 2017
74d0ec7
updated watershed management to use DataTable
Aug 10, 2017
abb6f50
updated manage watersheds to use DataTables
Aug 10, 2017
7b09d9b
updated geoserver management to use datatables; moved order to later …
Aug 10, 2017
ed87578
updated data store management to use datatables
Aug 10, 2017
7e25c56
moved duplicated controller management code to controller_functions
Aug 10, 2017
6f2a991
added csv download options for API
Aug 11, 2017
67f1fb7
add download forecast option
Aug 11, 2017
0476f57
removed unused import
Aug 11, 2017
51f8dfd
updated docs to include units and return format
Aug 11, 2017
29b4d07
update to use geojson for warning points
Aug 11, 2017
3e39de3
added logging of exceptions to fix issue #2
Aug 11, 2017
2afa92f
removed unused folder
Aug 16, 2017
4809f23
added empty string option for request for warning poings
Aug 16, 2017
4f9c34e
added event to resize plotly plot on modal show
Aug 16, 2017
e9405c8
make warning folder default to ''
Aug 16, 2017
1ca6092
change to search for geojson files
Aug 16, 2017
a77c924
fix to search for geojson instead of txt
Aug 16, 2017
62a3272
fixed plotly max band to go to max max
Aug 16, 2017
ef1cd41
removed check if dict as no longer needed
Aug 16, 2017
68ed4cc
added semicolon
Aug 16, 2017
b5a53c0
Merge branch 'master' of https://github.com/erdc-cm/tethysapp-streamf…
Aug 16, 2017
14ed187
made info message dismissible and made map bottom padding 0 when dism…
Aug 16, 2017
4a9bdd8
update scripts to work on dynamic content for datatables
Aug 17, 2017
97210bd
Merge branch 'master' of https://github.com/erdc-cm/tethysapp-streamf…
Aug 17, 2017
17a727a
updated version to 1.1.0
Aug 25, 2017
4c7fd92
Fix travis badge path.
Sep 14, 2017
a704a16
changed warnings to return periods
msouff Oct 18, 2017
ce63349
changed warnings to awareness
msouff Oct 18, 2017
41fcc34
fixed graph bug when missing high res forecat
msouff Mar 1, 2018
b8376ac
added api call for retrieving individual ensembles
msouff Mar 19, 2018
2363fbd
modified api to be browsable with session authetication
Apr 25, 2018
cdb2ca0
added ensemble percentage table
ckrew Jun 7, 2018
fa79c22
Changed docs link to go to the updated docs
pythonweb2 Mar 28, 2019
26dcbac
Merge pull request #1 from BYU-Hydroinformatics/waderoberts123-patch-1
msouff Mar 28, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ docs/_build/

# PyBuilder
target/

# other
*.nc
.idea
*.pyc
*~
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

5 changes: 5 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[MESSAGES CONTROL]
disable = broad-except,len-as-condition,superfluous-parens,too-many-locals,too-many-branches,too-many-nested-blocks,too-many-statements,too-many-lines,too-many-arguments,unnecessary-pass,bad-continuation,invalid-name,too-few-public-methods,too-many-return-statements
[TYPECHECK]
ignored-modules = crontab, netCDF4, plotly, xarray
ignored-classes = plotly.graph_objs
46 changes: 46 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#-------------------------------------------------------------------------------
# .travis.yml
# Author: Alan D. Snow, 2017
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# System specifications for Travis CI
#-------------------------------------------------------------------------------
language: c
os:
- linux
env:
- TRAVIS_PYTHON_VERSION="2"
- TRAVIS_PYTHON_VERSION="3"
matrix:
fast_finish: true
allow_failures:
- env: TRAVIS_PYTHON_VERSION="3"
notifications:
email: false

before_install:
#-----------------------------------------------------------------------------
# Install Tethys Platform
#-----------------------------------------------------------------------------
- wget https://raw.githubusercontent.com/tethysplatform/tethys/release/scripts/install_tethys.sh
- bash install_tethys.sh -b release --python-version $TRAVIS_PYTHON_VERSION
- export PATH=$HOME/tethys/miniconda/bin:$PATH
- conda config --set always_yes yes
#-----------------------------------------------------------------------------
# Activate Tethys Conda Environment & Install Dependencies
#-----------------------------------------------------------------------------
- source activate tethys
- conda install netcdf4 pandas scipy xarray
# install spt_dataset_services
- cd ..
- git clone https://github.com/erdc-cm/spt_dataset_manager.git
- cd spt_dataset_manager
- python setup.py install

install:
- cd $TRAVIS_BUILD_DIR
- pip install -e .[tests]

script:
- flake8
- pylint tethysapp setup.py
Loading