Skip to content

Commit

Permalink
Merge pull request #225 from ecmwf/feature/update_docs
Browse files Browse the repository at this point in the history
Split the docs into algorithm and Service, add initial docs to service
  • Loading branch information
awarde96 authored Oct 30, 2024
2 parents 817a8e4 + 2494a93 commit 0f833c7
Show file tree
Hide file tree
Showing 36 changed files with 10,158 additions and 20 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions docs/Algorithm/User_Guide/Building_Features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Building Features

The Polytope software implements a set of base shapes that might be of interest to users. These are detailed [here](../Developer_Guide/shapes.md).

For many applications however, these shapes are not directly of interest and should rather be used as building blocks for more complex and domain-specific "features", such as timeseries or country areas.

The main requirement when building such features in Polytope is that the feature should be defined on all dimensions of the provided datacube.
This implies that, when defining lower-dimensional shapes in higher-dimensional datacubes, the remaining axes still need to be specified within the Polytope request (most likely as *Select* shapes).

For example, for a given datacube with dimensions "level", "step", "latitude" and "longitude", we could query the following shapes:

- a timeseries of a point which would be defined as

Request(
Point(["latitude", "longitude"], [[p1_lat, p1_lon]]),
Span("step", start_step, end_step),
Select("level", [level1])
)


- a specific country area which would be defined as

Request(
Polygon(["latitude", "longitude"], country_points),
Select("step", [step1]),
Select("level", [level1])
)

- a flight path which would be defined as

Request(
Path(
["latitude", "longitude", "level", "step"],
Box(
["latitude", "longitude", "level", "step"],
[0, 0, 0, 0],
[lat_padding, lon_padding, level_padding, step_padding]
),
flight_points
)
)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ For a quick guide of how to install and use Polytope, refer to the links below:

- <a href="../Example">Example</a>

- <a href="../Building_Features">Building Features</a>

!!!note
<!-- For more information about Polytopes' APIs, refer to the [API page](../Developer_Guide/API.md). -->
An exhaustive list of all shapes that can currently be requested using Polytope can be found [here](../Developer_Guide/shapes.md).
Expand Down
Loading

0 comments on commit 0f833c7

Please sign in to comment.