Skip to content

Commit 1f3689b

Browse files
author
miguelcleon
committed
Merge remote-tracking branch 'origin/afterdjango2' into afterdjango2
2 parents 84af93b + 173e091 commit 1f3689b

16 files changed

+134
-120
lines changed

.travis.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ env:
1616
before_cache:
1717
- rm -rf $HOME/miniconda/envs/TEST
1818

19+
services:
20+
- postgresql
21+
addons:
22+
postgresql: "9.5"
23+
apt:
24+
packages:
25+
- postgresql-9.5-postgis-2.3
26+
1927
matrix:
2028
fast_finish: true
2129
include:
@@ -29,6 +37,8 @@ matrix:
2937

3038

3139
before_install:
40+
- psql -U postgres -c "create extension postgis"
41+
- psql -c "CREATE DATABASE test;" -U postgres
3242
- |
3343
URL="http://bit.ly/miniconda"
3444
echo ""
@@ -42,17 +52,14 @@ before_install:
4252
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
4353
- conda update conda
4454
- conda config --add channels conda-forge --force
45-
- conda config --add channels odm2 --force
46-
- conda create --name TEST python=$TRAVIS_PYTHON_VERSION libgdal boost --file requirements.txt --file requirements-dev.txt
55+
- conda create --name TEST python=$TRAVIS_PYTHON_VERSION libgdal --file requirements.txt --file requirements-dev.txt
4756
- source activate TEST
48-
- pip install --upgrade http://github.com/miguelcleon/django-admin-shortcuts/zipball/master
57+
# - pip install --upgrade http://github.com/miguelcleon/django-admin-shortcuts/zipball/master
58+
4959

5060
install:
5161
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install odm2admin-${version}.tar.gz && popd
5262

53-
before_script:
54-
- psql -c "CREATE DATABASE test;" -U postgres
55-
5663
script:
5764
- if [[ $TEST_TARGET == 'default' ]]; then
5865
python $TRAVIS_BUILD_DIR/manage.py test tests/;

docker/odm2admin/startup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
echo "Activating environment..."
44
source activate odm2adminenv
55
conda install --yes -c conda-forge sqlalchemy
6-
pip install git+git://github.com/miguelcleon/django-admin-shortcuts --upgrade
6+
# pip install git+git://github.com/miguelcleon/django-admin-shortcuts --upgrade
77

88
#echo "Building database..."
99
#su - postgres -c 'pg_restore -d odm2_db -1 -v "/ODM2-Admin/ODM2AdminDBBlank"'
@@ -18,4 +18,4 @@ wget https://raw.githubusercontent.com/ODM2/ODM2/master/src/load_cvs/cvload.py
1818
python cvload.py postgresql+psycopg2://postgres:test@db:5432/odm2
1919

2020
echo "Running server..."
21-
python manage.py runserver 0.0.0.0:8000
21+
python manage.py runserver 0.0.0.0:8000

docs/source/DataQAQC.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ Our Annotated data will then look something like this:
3939

4040
You can also add or subtract an offset value to a set of points or drift correct them. Drift correcting points will
4141
apply a linear correction so that the first or last point (depending if you select forward or backward) will have the
42-
value entered. the remaining values you selected will have an offset added to them proportional to their position in the
43-
set of points selected.
42+
value entered. The remaining values you selected will have an offset added to them. This offset is proportional to the
43+
points position in the set of points selected.
4444

4545
.. image:: /images/offsetanddriftcorrect.png
4646

4747
:ref:`5) Data visualization and URL parameters <Data-Visualization>`
4848

4949
* :ref:`ODM2 Admin docs home page<ODM2-Admin>`
50-
* :ref:`Search the docs <search>`
50+
* :ref:`Search the docs <search>`

docs/source/DataVisualizationTips.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Data Visualization and URL parameters
44
=====================================
55

6-
Graphs presenting ODM2 Time Series can be easily shared with formatted URL parameters. if we return to the example we
6+
Graphs presenting ODM2 Time Series can be easily shared with formatted URL parameters. Let's we return to the example we
77
used in :ref:`Data QAQC doc<Data-QA-QC>`
88

99
* We looked at a timeseries with the following link: https://dev-odm2admin.cuahsi.org/Sandbox/graphfa/samplingfeature=776/resultidu=16657/popup=Anno/

docs/source/ManagingODM2WithTheDjangoORM.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
The Django ORM and WOFpy
44
========================
55

6-
While not all of the ODM2 entities are exposed through the ODM2 Admin interface all of the entities can be managed
7-
using Python scripts using either ODM2PythonAPI or the Django ORM using the models in ODM2 Admin. Two examples using
8-
the Django ORM come with the source code of ODM2 Admin.
6+
While not all of the ODM2 entities are exposed through the ODM2 Admin interface they can all be managed using Python
7+
scripts using either ODM2PythonAPI or the Django ORM using the models in ODM2 Admin. Two examples using the Django ORM
8+
are included with the source code of ODM2 Admin.
99

1010
The ODM2PythonAPI can be found here: https://github.com/ODM2/ODM2PythonAPI
1111

12-
An example merging data from a csv file to fill a gap in a time series can be found here:
12+
An example of merging data from a csv file to fill a gap in a time series can be found here:
1313
https://github.com/ODM2/ODM2-Admin/blob/master/example_scripts/SonadoraNitrateFill.py
1414

1515
An example creating soil profile result values from a file can be found here:
@@ -20,8 +20,8 @@ WOFpy
2020

2121
ODM2 Admin can also be used with WOFpy and water one flow webservices can be registered with CUAHSI HIS central.
2222

23-
WOFpy REST API test page:
24-
http://odm2admin.cuahsi.org/wofpy/odm2lczo/rest_1_1/
23+
WOFpy REST API test page for the Luquillo CZO:
24+
http://dev-odm2admin.cuahsi.org/odm2lczo/odm2lczo/rest_1_1/
2525

2626
This is still in testing an initial implementation has been registered with the HIS central QA system:
2727

docs/source/ODM2AdminAdministration.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Many of the below entities use controlled vocabularies which can be found here h
2323
People and Organizations
2424
------------------------
2525

26-
* **Organizations:** Observations and other Actions can be associated with the Organization responsible for creating
26+
* **Organizations:** Observations, Sensor deployments retrievals and other Actions can be associated with the Organization responsible for creating
2727
or performing them. `see here for ODM2 Organizations doc <https://github.com/ODM2/ODM2/blob/master/doc/ODM2Docs/core_organizations.md>`_
2828
* **People:** ODM2 Core people details can be found `here ODM2 people doc <https://github.com/ODM2/ODM2/blob/master/doc/ODM2Docs/core_people.md>`_
2929
* **Affiliation:** Relates people and organizations
@@ -47,6 +47,8 @@ Methods and Actions
4747
* Sample preparation methods
4848
* Sample analysis methods
4949
* Observation methods
50+
* Instrument calibration
51+
*Instrument Maintenance
5052
5153
See the `ODM2 Methods doc <https://github.com/ODM2/ODM2/blob/master/doc/ODM2Docs/core_methods.md>`_
5254
* **Actions:** ODM2 Core Action details can be found at the `ODM2 Actions doc <https://github.com/ODM2/ODM2/blob/master/doc/ODM2Docs/core_actions.md>`_
@@ -88,7 +90,8 @@ Sampling Features and Sites
8890
Results
8991
-------
9092

91-
* **Results:** labeled as data results in ODM2 Admin.
93+
* **Results:** The outcome of an action, such as sensor deployment or specimen observation. These are labeled as data
94+
results in ODM2 Admin. For more see `ODM2 Results doc https://github.com/ODM2/ODM2/blob/master/doc/ODM2Docs/core_results.md`_
9295

9396
* **Datasets:** The Datasets entity is used to encode information about groups of Results that are logically related.
9497
A Dataset has a type, title, an abstract, and is the entity in ODM2 that would receive a citation.
@@ -178,7 +181,7 @@ External identifier systems
178181

179182
* **External identifier systems:** Such as an IGSN or ORCiD.
180183

181-
:ref:`2) Using Data Logger Files <DataLoggerFiles>`
184+
:ref:`2) ODM2 Admin Site Management <ODM2AdminSiteManagement>`
182185

183186
* :ref:`ODM2 Admin docs home page <ODM2-Admin>`
184187
* :ref:`Search the docs <search>`

docs/source/ODM2AdminDemo.rst

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ ODM2 Admin site administration dashboard
4040

4141
.. image:: /images/AdminDashboard.png
4242

43+
The recent actions block of the site administration dashboard shows changes you have recently completed in ODM2 Admin
44+
such as adding or editing an item in the forms. In the example above we can see that a method, a data result and a
45+
variable were recently changed.
46+
47+
The Authentication and Authorization link will allow you to create users and groups so others can login to the system.
48+
4349
The ODM2 Admin Administration link will take you to a list of all 44 ODM2 entities that can be directly managed in
4450
ODM2 Admin. See the ODM2 Admin Forms for details about the ODM2 Admin Forms :ref:`ODM2-Administration`.
4551

@@ -58,13 +64,13 @@ ORM with ODM2 databases.
5864
:maxdepth: 1
5965

6066
1) The ODM2 Admin Forms <ODM2AdminAdministration>
61-
2) Using Data Logger Files <DataLoggerFiles>
62-
3) Managing Profile Results With ODM2 Admin <ProfileResults>
63-
4) Time series QA/QC <DataQAQC>
64-
5) Data visualization and URL parameters <DataVisualizationTips>
65-
6) Using the Django ORM <ManagingODM2WithTheDjangoORM>
67+
2) ODM2 Admin Field Site Management <ODM2AdminSiteManagement>
68+
3) Using Data Logger Files <DataLoggerFiles>
69+
4) Managing Profile Results With ODM2 Admin <ProfileResults>
70+
5) Time series QA/QC <DataQAQC>
71+
6) Data visualization and URL parameters <DataVisualizationTips>
72+
7) Using the Django ORM <ManagingODM2WithTheDjangoORM>
6673

6774

6875
* :ref:`ODM2 Admin docs home page <ODM2-Admin>`
6976
* :ref:`Search the docs <search>`
70-

docs/source/ODM2AdminSettings.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ where your data are viewable.
123123
"featureactionids": [1699, 1784,1782,1780,1701,1707,1778,1779],
124124
}
125125
126-
Add sampling feature actions to the sensor dashboard. Feature actions listed here will be present in a drop down list on
127-
the sensor dashboard page.
126+
In the Sensor dashboard configuration "featureactionids" add sampling feature actions, related to sensor time series
127+
results, to the sensor dashboard. Feature actions listed here will be present in a drop down list on the sensor
128+
dashboard page.
128129

129130
The sensor dashboard can be found by visiting 'Graph My Data' -> 'Sensor Dashboard'.
130131

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
ODM2 Admin Site Management
2+
==========================
3+
4+
One of the principal ways ODM2 improves on the original ODM information model is in accounting for a field sites needs
5+
for managing field sites. In ODM2 Admin users can track instrument deployments, equipment maintenance, sample collection
6+
and methods used for these tasks. Users can also track who performed the task, called actions in ODM2, along with field
7+
or lab notes from the performance of the task.
8+
9+
Record an Action
10+
----------------
11+
12+
While logged into the ODM2 Admin demo, click the record an action shortcut, then select add a new method.
13+
14+
.. image:: /images/methods.png
15+
16+
Here we will see a list of methods for our site. Along with the method name, and method type is a link to documentation.
17+
This link might be to a web page, dropbox, box or other hosted file describing the method. Types of methods listed here
18+
include equipment maintenance, specimen analysis, and Instrument deployment. Let's look at the first method "A quick
19+
temp-accuracy check (ice bath)". We can see the documentation link will take us to webpage from an equipment
20+
manufacturer onset. The Method Type link will take us to the ODM2 controlled vocabulary page for equipment maintenance.
21+
Click on the method name, this will show us the details about this method.
22+
23+
Here we have a method description, and at the bottom actions. The actions listed here used this method, we can also add
24+
a new action.
25+
26+
:ref:`3) Using Data Logger Files <DataLoggerFiles>`

docs/source/ODM2Adminbackground.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Why ODM2 Admin was developed
66

77
ODM2 Admin is an application for site level data management of environmental observations using Observation Data Model 2
88
(ODM2). The application was designed for management of observations generated by the Luquillo Critical Zone Observatory
9-
(LCZO), an NSF funded Observatory established in 2009, located in northeastern Puerto Rico. The LCZO is one of NSF
10-
funded nine critical zone observatories, it features a dynamic tropical rainforest, with a long history of scientific
9+
(LCZO), an NSF funded Observatory established in 2009, located in northeastern Puerto Rico. The LCZO is one of nine NSF
10+
funded critical zone observatories, it features a dynamic tropical rainforest, with a long history of scientific
1111
inquiry and natural resource management. The LCZO manages in situ stream, groundwater, atmospheric, and soil sensors at
1212
53 locations throughout the Luquillo Mountains. The LCZO also supports a number of field campaigns where samples of
1313
soils, rocks, and water are taken and analyzed in a laboratory. The results of these analyzes inform LCZO researchers on
1414
rates of weathering, sources and sinks of carbon, nitrogen and phosphorus, riparian zone dynamics among many other
1515
subjects of inquiry.
1616

17-
Managing the diverse range of data and associated metadata generated from studies of the LCZO requires a robust
17+
Managing the diverse range of data, and associated metadata, generated from studies of the LCZO requires a robust
1818
information model. To meet this requirement the LCZO adopted Observation data model 2 (ODM2) which serves as the
1919
foundation of ODM2 Admin. ODM2 is designed to manage data generated from discreet earth observations across many
2020
disciplines such as those made through the CZO program. Once the LCZO began using ODM2 it became clear, that due to the

0 commit comments

Comments
 (0)