Skip to content

Commit 531d93e

Browse files
authored
Merge pull request #28 from AndrewAnnex/add_mosaic_json_tutorials
initial tutorial for creating mosaic.json files.
2 parents 916885a + 15d2d81 commit 531d93e

16 files changed

+990
-4
lines changed

content/bibliography.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/tutorials/advanced_python.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ draft: false
55
weight: 21
66
---
77

8-
This tutorial focuses on advancing the previous knowledge of searching for and downloading Analysis Ready Data (ARD) from a dynamic Spatio-Temporal Asset Catalog (STAC) using the python programming language. As one gets into more advanced queries, new tools can be used to speed up the process. In this tutorial we will use [`async`](https://docs.python.org/3/library/asyncio.html) to help us retrieve a list of url's that we want before using `rclone` to download them from the cloud. Rclone is perfered when accessing the cloud as opposed to `wget` or `urllib.request.urlretrieve`.
8+
This tutorial focuses on advancing the previous knowledge of searching for and downloading Analysis Ready Data (ARD) from a dynamic Spatio-Temporal Asset Catalog (STAC) using the python programming language. As one gets into more advanced queries, new tools can be used to speed up the process. In this tutorial we will use [`async`](https://docs.python.org/3/library/asyncio.html) to help us retrieve a list of url's that we want before using `rclone` to download them from the cloud. Rclone is preferred when accessing the cloud as opposed to `wget` or `urllib.request.urlretrieve`.
99

1010
## Configuring the environment
1111
For this tutorial you will need `pystac_client` (refer to "Discovering and Downloading Data with Python" for an example of how to get this set up), `pandas`, `geopandas`, `shapely`, `pvl`, `aiohttp` and `asyncio`. These packages can all be installed with pip or conda depending on preference.
1212

1313
### A quick aside about async
14-
Why use async? Async allows you to write more eddiecient and responsive code. Tradionally, python programs execute code sequentially, which can lead to delays while eaiting for tasks to cpmplete (such as network requests). Async is based on asychronous programing and is implimented through Python's `asyncio` module. It enables non-blocking execution. In this tutorial we will use it to quickly find the data we need.
14+
Why use async? Async allows you to write more efficient and responsive code. Traditionally, python programs execute code sequentially, which can lead to delays while waiting for tasks to complete (such as network requests). Async is based on asynchronous programming and is implemented through Python's `asyncio` module. It enables non-blocking execution. In this tutorial we will use it to quickly find the data we need.
1515

1616
## The goal
17-
In this tutorial we want to use the API to access several databases and then retrieve urls based on a certain critera. For the purposes of this example we will be looking at the incidence angle of each image. Lets start by getting our file set up, for the purposes of this example, we will say we are trying to get images in a certain bounding box.
17+
In this tutorial we want to use the API to access several databases and then retrieve urls based on a certain criteria. For the purposes of this example we will be looking at the incidence angle of each image. Lets start by getting our file set up, for the purposes of this example, we will say we are trying to get images in a certain bounding box.
1818

1919
```python
2020
from pystac_client import Client

content/tutorials/mosaic_json.md

Lines changed: 353 additions & 0 deletions
Large diffs are not rendered by default.

content/tutorials/mosaic_json_analysis.md

Lines changed: 633 additions & 0 deletions
Large diffs are not rendered by default.
59.4 KB
Loading
50.7 KB
Loading
30.1 KB
Loading
98.4 KB
Loading
5.63 KB
Loading
30 KB
Loading

0 commit comments

Comments
 (0)