ODM2 IPython Notebook Examples

Owners: This resource does not have an owner who is an active HydroShare user. Contact CUAHSI (help@cuahsi.org) for information on this resource.
Resource type: Composite Resource
Storage: The size of this resource is 4.0 MB
Created: May 05, 2017 at 2:59 p.m.
Last updated: May 17, 2017 at 3:02 p.m.
Citation: See how to cite this resource
Sharing Status: Public
Views: 1532
Downloads: 178
+1 Votes: Be the first one to 
Comments: No comments (yet)


This resource provides three examples of how to use ODM2 and its Python application programming interface (API). The three examples are as follows:

1. ODM2_Example1.ipynb: Create a blank ODM2 database and load controlled vocabulary terms from http://vocabulary.odm2.org in preparation for data loading.
2. ODM2_Example2.ipynb: Parse water quality sample data from an ODM2 Excel Template file using the ODM2 Python API and write data to an ODM2 database instance and a YAML Observations Data Archive (YODA) file.
3. ODM2_Example3.ipynb: Read water quality sample data from an ODM2 database instance using the ODM2 Python API for manipulation or visualization of the data.

Instructions for running each of these Notebooks using HydroShare's JupyterHub server are in the "readme.pdf" file in the Content section below.

The data used by these examples are packaged in the "data" folder within the content section below. Code for generating the ODM2 schema, loading the controlled vocabularies, the ODM2 Python API, and the YODA Tools utilities has been packaged for convenience in the "code" folder in the content section below. Each of these are available in their respective GitHub repositories see http://github.com/ODM2/.

Subject Keywords

Deleting all keywords will set the resource sharing status to private.


Related Resources


Funding Agencies

This resource was created using funding from the following sources:
Agency Name Award Title Award Number
National Science Foundation Developing a Community Information Model and Supporting Software to Extend Interoperability of Sensor and Sample Based Earth Observations 1224638

How to Cite

Horsburgh, J. (2017). ODM2 IPython Notebook Examples, HydroShare, http://www.hydroshare.org/resource/ff79d7926f6040c9acd004636b4e4d38

This resource is shared under the Creative Commons Attribution CC BY.



There are currently no comments

New Comment