Skip to content

Commit

Permalink
Merge pull request #36 from sentinel-hub/ref
Browse files Browse the repository at this point in the history
reference updates [TO BE APPLIED AFTER TRANSFER]
  • Loading branch information
emmanuelmathot authored Jan 22, 2025
2 parents 12975dc + a61f1f4 commit f630e3f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

Initial release

[Unreleased]: <https://github.com/developmentseed/titiler-openeo/compare/main..main>
[Unreleased]: <https://github.com/sentinel-hub/titiler-openeo/compare/main..main>
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Development - Contributing

Issues and pull requests are more than welcome: https://github.com/developmentseed/titiler-openeo/issues
Issues and pull requests are more than welcome: https://github.com/sentinel-hub/titiler-openeo/issues

**dev install**

```bash
git clone https://github.com/developmentseed/titiler-openeo.git
git clone https://github.com/sentinel-hub/titiler-openeo.git
cd titiler

python -m pip install -e ".[test,dev]"
Expand All @@ -28,7 +28,7 @@ python -m pytest --cov=titiler.openeo --cov-report=xml --cov-append --cov-report
### Docs

```bash
git clone https://github.com/developmentseed/titiler-openeo.git
git clone https://github.com/sentinel-hub/titiler-openeo.git
cd titiler
python -m pip install -e ".[docs]"
```
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The application provides with a minimal [openEO API (L1A and L1C)](https://opene
To install [`titiler-openeo`](titiler/openeo/main.py ), clone the repository and install the dependencies:

```bash
git clone https://github.com/developmentseed/titiler-openeo.git
git clone https://github.com/sentinel-hub/titiler-openeo.git
cd titiler-openeo
python -m pip install -e .
```
Expand Down Expand Up @@ -130,14 +130,14 @@ Login with the following credentials:

## License

See [LICENSE](https://github.com/developmentseed/titiler-open/blob/main/LICENSE)
See [LICENSE](https://github.com/sentinel-hub/titiler-open/blob/main/LICENSE)

## Authors

Created by [Development Seed](<http://developmentseed.org>) and [Sinergise](https://www.sinergise.com/).

See [contributors](https://github.com/developmentseed/titiler-openeo/graphs/contributors) for a listing of individual contributors.
See [contributors](https://github.com/sentinel-hub/titiler-openeo/graphs/contributors) for a listing of individual contributors.

## Changes

See [CHANGES.md](https://github.com/developmentseed/titiler-openeo/blob/main/CHANGES.md).
See [CHANGES.md](https://github.com/sentinel-hub/titiler-openeo/blob/main/CHANGES.md).
2 changes: 1 addition & 1 deletion docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ docs_dir: 'src'
site_dir: 'build'

repo_name: "developmentseed/titiler-openeo"
repo_url: "https://github.com/developmentseed/titiler-openeo"
repo_url: "https://github.com/sentinel-hub/titiler-openeo"
edit_uri: "blob/main/docs/src/"
site_url: "https://developmentseed.org/titiler-openeo/"

Expand Down
6 changes: 3 additions & 3 deletions docs/src/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ Unlike most of the existing openEO implementation, `titiler-openeo` project simp
### Raster with ImageData

In order to make the processing as light and fast as possible, the backend must manipulate the data in a way that is easy to process and serve.
That is why most of the processes use [`ImageData`](https://github.com/developmentseed/titiler-openeo/blob/43702f98cbe2b418c4399dbdefd8623af446b237/titiler/openeo/processes/data/load_collection_and_reduce.json#L225) object type for passing data between the nodes of a process graph.
That is why most of the processes use [`ImageData`](https://github.com/sentinel-hub/titiler-openeo/blob/43702f98cbe2b418c4399dbdefd8623af446b237/titiler/openeo/processes/data/load_collection_and_reduce.json#L225) object type for passing data between the nodes of a process graph.
[`ImageData`](https://cogeotiff.github.io/rio-tiler/models/#imagedata) is provided by [rio-tiler](https://cogeotiff.github.io/rio-tiler/) that was initially designed to create slippy map tiles from large raster data sources and render these tiles dynamically on a web map.

![alt text](img/raster.png)

### Reducing the data

The ImageData object is obtained by reducing as early as possible the data from the collections.
While the traditional [`load_collections` process](https://github.com/developmentseed/titiler-openeo/blob/43702f98cbe2b418c4399dbdefd8623af446b237/titiler/openeo/processes/data/load_collection.json#L2) is implemented and can be used, it is recommended to use the `load_collection_and_reduce` process to have immediately an `imagedata` object to manipulate. The `load_collection_and_reduce` process actually apply the [`apply_pixel_selection`](https://github.com/developmentseed/titiler-openeo/blob/main/titiler/openeo/processes/data/apply_pixel_selection.json) process on a stack of raster data that are loaded from the collections.
While the traditional [`load_collections` process](https://github.com/sentinel-hub/titiler-openeo/blob/43702f98cbe2b418c4399dbdefd8623af446b237/titiler/openeo/processes/data/load_collection.json#L2) is implemented and can be used, it is recommended to use the `load_collection_and_reduce` process to have immediately an `imagedata` object to manipulate. The `load_collection_and_reduce` process actually apply the [`apply_pixel_selection`](https://github.com/sentinel-hub/titiler-openeo/blob/main/titiler/openeo/processes/data/apply_pixel_selection.json) process on a stack of raster data that are loaded from the collections.

![alt text](img/rasterstack.png)

The reduce process comes with a parameter to choose the [pixel selection method](https://github.com/developmentseed/titiler-openeo/blob/main/titiler/openeo/processes/data/apply_pixel_selection.json#L24) to apply on the stack of raster data. The default method is `first` that will select the first pixel value of the stack. Other methods are available like `highest`, `lowest`, `mean`, `median`, `stddev`, `lastbandlow`, `lastbandhigh`, `lastbandavg`, `count`.
The reduce process comes with a parameter to choose the [pixel selection method](https://github.com/sentinel-hub/titiler-openeo/blob/main/titiler/openeo/processes/data/apply_pixel_selection.json#L24) to apply on the stack of raster data. The default method is `first` that will select the first pixel value of the stack. Other methods are available like `highest`, `lowest`, `mean`, `median`, `stddev`, `lastbandlow`, `lastbandhigh`, `lastbandavg`, `count`.

## Collections

Expand Down
2 changes: 1 addition & 1 deletion infrastructure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The following steps detail how to to setup and deploy the CDK stack from your lo

```bash
# Download titiler repo
git clone https://github.com/developmentseed/titiler-openeo.git
git clone https://github.com/sentinel-hub/titiler-openeo.git
cd titiler-openeo

# Create a virtual environment
Expand Down
2 changes: 1 addition & 1 deletion titiler/openeo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
**Documentation**: <a href="https://developmentseed.org/titiler-openeo/" target="_blank">https://developmentseed.org/titiler-openeo/</a>
**Source Code**: <a href="https://github.com/developmentseed/titiler-openeo" target="_blank">https://github.com/developmentseed/titiler-openeo</a>
**Source Code**: <a href="https://github.com/sentinel-hub/titiler-openeo" target="_blank">https://github.com/sentinel-hub/titiler-openeo</a>
---
""",
Expand Down

0 comments on commit f630e3f

Please sign in to comment.