As of January 2020 GLTG has 32,122,836 datapoints.
Please don't fetch all of them at once.
Step 1: Create an Account
Step 2: Acquire Data from API
You can acquire the data from API by using curl command or python library (we provide the example in jupyter notebook in attached)
Using CURL
Currently, pulling sensors does not require authentication.
Inputs | Outputs type | Example |
---|
url | JSON |
|
Code Block |
---|
|
curl -X GET --compressed https://greatlakestogulf.org/geostreams/api/sensors |
Using Python Library (pyGeotemporal)
<< insert code example here>>
<< need to have instruction how to get pyGeotemporal >>
Jupyter notebook example can be download here <link>
Jupyter Notebook
We have created a jupyter notebook that allows a user to run several common data fetching methods including get sensors as CSV and get datapoints in CSV or JSON.
Install Jupyter
Code Block |
---|
|
conda install -c conda-forge notebook |
Or
Code Block |
---|
|
pip install notebook |
Download and Run Notebook
Download this file geostreams_jupyter.ipynb, move it in a directory of your choice, from a terminal in the chosen directory .
Code Block |
---|
|
jupyter notebook |
Examples using Curl