This repository contains Jupyter notebooks which are working examples of ways to work with eReefs datasets using Python.
All of the datasets are queried via HTTP(s) from the data services they are published in: you do not need to download any of the eReefs data files to your local environment to make these work.
Many of the examples depend on the emsarray library, which is an open-source library that assists Python developers to work with the results of CSIRO EMS models like eReefs GBR4, GBR1 and RECOM model results.
- How to run these notebooks
- Notebooks Directory
- Discovering eReefs Datasets (data-discovery.ipynb)
- Discovering eReefs dataset dimensions (dataset-dimentions.ipynb)
- Extracting a timeseries from eReefs model results (timeseries.ipynb)
- Plotting eReefs model results with matplotlib (plot.ipynb)
- Plotting eReefs model results with bokeh (bokeh.ipynb)
- Clipping eReefs datasets (clip.ipynb)
- Plotting eReefs transects (transect.ipynb)
- Animating eReefs model results (animation.ipynb)
- Simulated true colour from eReefs optical model variables (true-colour.ipynb)
Binder is an online platform that can set up an environment and run Jupyter Lab in your browser. Launch the eReefs data access notebooks on Binder.
This will run the Jupyter Lab server on your local computer in a Conda environment. First install miniconda if you do not already have a Conda install. Then clone this repository:
$ git clone git@github.com:eReefs/ereefs-data-access-notebooks.git
$ cd ereefs-data-access-notebooks
Create a new conda environment:
$ conda env create --name ereefs-data-access-notebooks --file environment.yml
Finally, activate the conda environment and run Jupyter Lab:
$ conda activate ereefs-data-access-notebooks
$ jupyter-lab
The Jupyter Lab interface should open in your browser. From here you can open, edit, and run any of the notebooks in this repository.
This notebook is more like documentation...
It explains how to identify the OPeNDAP endpoint URL for any eReefs netCDF dataset using the CSIRO eReefs Data Explorer. URLs of this type are using in most of the other notebooks in the suite.
This notebook demonstrates how to extract information about the spatial and temporal dimensions of an eReefs dataset.
This notebook demonstrates how to extract a timeseries of variable values for spatial locations within an eReefs dataset.
This notebook shows the basics of using emsarray
and matplotlib
to plot variables extracted from eReefs datasets on a map.
It is adapted from the similar example in the emsarray-notebooks
repository.
This notebook also plots eReefs data on a map, but uses the popular bokeh
library to do so.
It is adapted from the similar example in the emsarray-notebooks
repository.
This notebook shows how to use emsarray
to extract a spatial subset of a large eReefs dataset, that is then plotted on a map using matplotlib
.
It is adapted from the similar example in the emsarray-notebooks
repository.
This notebook shows how to extract values from an eReefs dataset along a predefined spatial transect, either as a line chart for a single elevation, or as a vertical cross-section of the model results.
It is adapted from the similar example in the emsarray-notebooks
repository.
This notebook demonstrates how to use emsarray to render animations of eReefs dataset variables. The animations can be across time, or across another axis such as depth.
It is adapted from the similar example in the emsarray-notebooks
repository.
This notebook shows how to combine simulated remote sensing reflctance variables from an eReefs Biogeochemistry and Sediments dataset to create a simulated true-colour image of the GBR. The resulting image simulates what remote sensing observations of the GBR might look like to the Ocean and Land Colour Instrument (OLCI) on the Sentinel-3A or Sentinel-3B satellites.