Skip to content

Commit 2ec2f79

Browse files
Merge pull request #1017 from ie3-institute/ms/#1016-improvements-to-finding-corner-points-in-IdCoordinateSource
Improvements to finding corner points in `IdCoordinateSource`.
2 parents c56597c + 41b8a79 commit 2ec2f79

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+336
-167
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased/Snapshot]
88

9+
### Added
10+
- Enhancing `VoltageLevel` with `equals` method [#1063](https://github.com/ie3-institute/PowerSystemDataModel/issues/1063)
11+
12+
### Fixed
13+
14+
### Changed
15+
- Improvements to the search for corner points in `IdCoordinateSource` [#1016](https://github.com/ie3-institute/PowerSystemDataModel/issues/1016)
16+
17+
918
## [5.0.1] - 2024-03-07
1019

1120
### Fixed
@@ -23,7 +32,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2332
- Added test for invalid input data in `CsvRawGridSource` [#1021](https://github.com/ie3-institute/PowerSystemDataModel/issues/1021)
2433
- Added `CsvThermalGridSource` [#1009](https://github.com/ie3-institute/PowerSystemDataModel/issues/1009)
2534
- Enhance documentation for CSV timeseries [#825](https://github.com/ie3-institute/PowerSystemDataModel/issues/825)
26-
- Enhancing `VoltageLevel` with `equals` method [#1063](https://github.com/ie3-institute/PowerSystemDataModel/issues/1063)
2735

2836
### Fixed
2937
- Fixed Couchbase integration tests that randomly failed [#755](https://github.com/ie3-institute/PowerSystemDataModel/issues/755)

docs/readthedocs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
author = 'Institute of Energy Systems, Energy Efficiency and Energy Economics'
2323

2424
# The full version, including alpha/beta/rc tags
25-
version = '3.0'
26-
release = '3.0.0'
25+
version = '5.0'
26+
release = '5.0.1'
2727

2828
pygments_style = 'tango'
2929
add_function_parentheses = True

docs/readthedocs/gettingstarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ On [Maven central](https://search.maven.org/artifact/com.github.ie3-institute/Po
2020
<dependency>
2121
<groupId>com.github.ie3-institute</groupId>
2222
<artifactId>PowerSystemDataModel</artifactId>
23-
<version>2.1.0</version>
23+
<version>5.0.1</version>
2424
</dependency>
2525
```
2626

@@ -41,7 +41,7 @@ and add the dependency:
4141
<dependency>
4242
<groupId>com.github.ie3-institute</groupId>
4343
<artifactId>PowerSystemDataModel</artifactId>
44-
<version>3.0-SNAPSHOT</version>
44+
<version>6.0-SNAPSHOT</version>
4545
</dependency>
4646
```
4747

docs/readthedocs/io/csvfiles.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ You may extend / alter the naming with pre- or suffix by calling `new EntityPers
8181
8282
```
8383

84+
### Id Coordinate
85+
Csv id coordinate sources can have two different ways to represent their coordinate:
86+
1. ICON: Takes a `latitude` and a `longitude` column
87+
2. COSMO: Takes a `lat_rot`, a `long_rot`, a `lat_geo` and a `long_geo` column
88+
89+
8490
### Time Series
8591

8692
```{eval-rst}

docs/readthedocs/models/input/additionaldata/idcoordinatesource.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,21 @@ coordinates.
77

88
## Information
99

10-
| Attribute | Remarks |
11-
|:-------------|:---------------------------------------------------------------|
12-
| `Id` | An integer value for identifying the coordinate. |
13-
| `Coordiante` | Geographical information presented as `Lat/long` of a `Point`. |
10+
```{eval-rst}
11+
.. list-table::
12+
:widths: 33 33
13+
:header-rows: 1
14+
15+
* - Attribute
16+
- Remarks
17+
18+
* - Id
19+
- An integer value for identifying the coordinate.
20+
21+
* - Coordinate
22+
- Geographical information presented as `Lat/long` of a `Point`.
1423
24+
```
1525

1626

1727
## Known implementations:
@@ -74,19 +84,17 @@ return less than n coordinates.
7484

7585

7686
## Finding and returning the closest corner coordinates:
77-
In most cases we need four corner coordinates for our given coordinate. Therefor the
78-
IdCoordinateSource contains a method that will use the calculated distances to find the closest
79-
corner coordinates for the given coordinate.
87+
In most cases we need four corner coordinates for our given coordinate. Therefor the IdCoordinateSource contains methods
88+
that tries to return the corner points for a given coordinate. The max. number of corner points is specified by the
89+
implementation of the second method.
8090

8191
``` java
82-
List<CoordinateDistance> restrictToBoundingBox(
83-
Point coordinate,
84-
Collection<CoordinateDistance> distances,
85-
int numberOfPoints
86-
)
92+
List<CoordinateDistance> findCornerPoints(Point coordinate, ComparableQuantity<Length> distance)
93+
List<CoordinateDistance> findCornerPoints(Point coordinate, Collection<CoordinateDistance> distances)
8794
```
8895

89-
For a given set of coordinates, the closest four corner coordinates plus more close points if n > 4
90-
are returned. If n < 4 the method will return the closest n corner coordinates. If the set of
91-
coordinates contains a coordinate that matches the given coordinate, only this one coordinate is
92-
returned. If n > number of coordinates in the set, all coordinates are returned.
96+
1. This method can be used to return the corner points by specifying a maximum search distance.
97+
98+
2. If a coordinate matches the given coordinate, only this coordinate is returned. If no coordinate matches the given
99+
coordinate, this method tries to return four corner points.
100+

docs/readthedocs/models/input/additionaldata/timeseries.md

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,39 @@ In addition to actual data, a mapping function has to be known.
1717
To be as flexible, as possible, the actual content of the time series is given as children of the `Value` class.
1818
The following different values are available:
1919

20-
| Value Class | Purpose |
21-
|:-----------------------|:--------------------------------------------------------------------------------------------------------------|
22-
| `PValue` | Electrical active power |
23-
| `SValue` | Electrical active and reactive power |
24-
| `HeatAndPValue` | Combination of thermal power (e.g. in kW) <br> and electrical active power (e.g. in kW) |
25-
| `HeatAndSValue` | Combination of thermal power (e.g. in kW) <br> and electrical active and reactive power (e.g. in kW and kVAr) |
26-
| `EnergyPriceValue` | Wholesale market price (e.g. in € / MWh) |
27-
| `SolarIrradianceValue` | Combination of diffuse and direct solar irradiance |
28-
| `TemperatureValue` | Temperature information |
29-
| `WindValue` | Combination of wind direction and wind velocity |
30-
| `WeatherValue` | Combination of irradiance, temperature and wind information |
20+
```{eval-rst}
21+
.. list-table::
22+
:widths: 33 33
23+
:header-rows: 1
24+
25+
* - Value Class
26+
- Purpose
27+
28+
* - `PValue`
29+
- Electrical active power
30+
31+
* - `SValue`
32+
- Electrical active and reactive power
33+
34+
* - `HeatAndPValue`
35+
- Combination of thermal power (e.g. in kW) <br> and electrical active power (e.g. in kW)
36+
37+
* - `HeatAndSValue`
38+
- Combination of thermal power (e.g. in kW) <br> and electrical active and reactive power (e.g. in kW and kVAr)
39+
40+
* - `EnergyPriceValue`
41+
- Wholesale market price (e.g. in € / MWh)
42+
43+
* - `SolarIrradianceValue`
44+
- Combination of diffuse and direct solar irradiance
45+
46+
* - `TemperatureValue`
47+
- Temperature information
48+
49+
* - `WindValue`
50+
- Combination of wind direction and wind velocity
51+
52+
* - `WeatherValue`
53+
- Combination of irradiance, temperature and wind information
54+
55+
```

docs/readthedocs/models/input/em.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Participants are connected to an EM each via their `em` field.
1010
```{eval-rst}
1111
.. list-table::
1212
:widths: 33 33 33
13-
:header-rows: 0
13+
:header-rows: 1
1414
1515
1616
* - Attribute

docs/readthedocs/models/input/grid/gridcontainer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A synoptic overview of both classes' attributes is given here:
4040
```{eval-rst}
4141
.. list-table::
4242
:widths: 33 33 33
43-
:header-rows: 0
43+
:header-rows: 1
4444
4545
4646
* - Attribute

docs/readthedocs/models/input/grid/line.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Representation of an AC line.
99
```{eval-rst}
1010
.. list-table::
1111
:widths: 33 33 33
12-
:header-rows: 0
12+
:header-rows: 1
1313
1414
* - Attribute
1515
- Unit
@@ -56,7 +56,7 @@ A list with some standard line types can be found here: [Standard Line Types](#s
5656
```{eval-rst}
5757
.. list-table::
5858
:widths: 33 33 33
59-
:header-rows: 0
59+
:header-rows: 1
6060
6161
6262
* - Attribute
@@ -129,7 +129,7 @@ Some standard overhead lines.
129129
```{eval-rst}
130130
.. list-table::
131131
:widths: 11 11 11 11 11 11 11 11 11
132-
:header-rows: 0
132+
:header-rows: 1
133133
134134
135135
* - uuid
@@ -312,7 +312,7 @@ Some standard cables.
312312
```{eval-rst}
313313
.. list-table::
314314
:widths: 11 11 11 11 11 11 11 11 11
315-
:header-rows: 0
315+
:header-rows: 1
316316
317317
318318
* - uuid

docs/readthedocs/models/input/grid/linegraphic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Schematic drawing information for a line model.
99
```{eval-rst}
1010
.. list-table::
1111
:widths: 33 33 33
12-
:header-rows: 0
12+
:header-rows: 1
1313
1414
1515
* - Attribute

0 commit comments

Comments
 (0)