Package: ogh
ObservatoryTools for observing the terrestrial and aquatic surfaces of Earth"You belong among the wildflowers, you belong somewhere you feel free." Tom PettyAn observatory is a location used for observing terrestrial or celestial events (thank you Wikipedia). Observatories have been as simple as containing an astronomical sextant, and as complicated as modern academic supported observatories containing multi-million dollar instruments, tools, with institutions supporting long term research and education programs.  While observatories are usually thought of as star-gazing investments in the field of astronomy, observatories have also been constructed in climatology/meteorology, geophysical, oceanography and volcanology communities, in order to investigate and coordinate their research efforts.This repository is intended for the sharing and distribution of open-source Python based code useful for model and data integration that improves access to large datasets, reduces computational burden, reinvent the wheel less often, and share and communicate more about how to synthesize earth surface observations in useful ways.Installing Version on conda-forgeInstall package with conda:condainstall-cconda-forgeoghExecute from Jupyter Notebook!conda install -c conda-forge --yes ogh
import oghInstalling Latest Master VersionLinux/OSX:wgethttps://raw.githubusercontent.com/Freshwater-Initiative/Observatory/master/requirements.txt
wgethttps://raw.githubusercontent.com/Freshwater-Initiative/Observatory/master/requirements-dev.txt
condacreate-noghenv-cconda-forgepython=2.7--filerequirements.txt--filerequirements-dev.txtsourceactivateoghenv
pipinstallgit+https://github.com/Freshwater-Initiative/Observatory.gitWork with a git-versioned-folder in hydroshare to develop your own UtilitiesMake a fork of Freshwater-Initiative/ObservatoryIn HydroShare, get to JupyterHub and open up a terminal instance.Change the working directory to notebooks/utilitiesIf you haven't cloned this repository into Hydroshare yet:type/copy in "git clone " that is available from your fork (eg.,https://github.com/username/Observatory.git)then type in your github username and password to then download the git clone.
$ git config --global user.name "your git username"
$ git config --global user.email "your email that you used to setup the git account"you should now have notebooks/utilities/Observatory subdirectory with this README.md and the observatory_gridded_hydrometeorology.py (OGH) within.If you have previously cloned the git folder to notebooks/utilities, update this to the latest fileChange the working directory to notebooks/utilities/ObservatoryPull the latest (your updated fork - pull from Freshwater-Initiative/Observatory master, before you do this) files from the repository
$ git pullyou should now have notebooks/utilities/Observatory subdirectory that matches your fork on github.com (which should match Freshwater-Initiative/Observatory - if you pulled from the master)Either way:Change the working directory to notebooks/utilities/ObservatoryCopy observatory_gridded_hydromet.py to notebooks/utilities/
$ cp observatory_gridded_hydromet.py ../
Now, the file '/notebooks/utilities/observatory_gridded_hydromet.py' is updated to the latest state (from git)Saving changes back to git repositoryWork on the file and save the changes.Change the working directory to '/notebooks/utilities'Copy the modified file back to git versioned folder
$ cp 'observatory_gridded_hydromet.py' Observatory/Change the working directory to '/notebooks/utilities/Observatory'Check file changes
$ git statusCommit the changes
$ git add observatory_gridded_hydromet.py
$ git commit -m 'Add message to describe these changes, if any'
$ git pushCheck that the files changed
$ git status“Use only that which works, and take it from any place you can find it.” Bruce Lee