Geo statisticals#
The following functions use a simple dataframe, so you can understand what the variables may look like in your own project.
Dataframe#
>>> d = {'col1': [1, 9, 3, 6, 20, 8, 3, 1, 30, 5]}
>>> df = pd.DataFrame(data=d)
col1
0 1
1 9
2 3
3 6
4 20
5 8
6 3
7 1
8 30
9 5
- TSCC.correction.geo_statisticals.getGeoStatValue(loc, loc_stations, vals_at_stations, edges, method='idw', remove_missing=False)[source]#
Keine Ahnung.
- Parameters:
- loclist of length two
Coordinates to transform. For input use loc format like this [lat, lon].
- loc_stationslist???
Location of some stations.???
- vals_at_stations???
- edgesarray from function getGrid()???
- methodstr, optional
Method to use for interpolation. The default is ‘idw’.
- remove_missingboolean, optional
Remove missing values??? The default is False.
- Returns:
Examples
>>> ohne Beispiel?
- TSCC.correction.geo_statisticals.getGrid(loc, r, n_steps=50)[source]#
Receive a grid around your location.
- Parameters:
- locList of length two
Coordinates to transform. For input use loc format like this [lat, lon].
- rinteger
Radius from your location in [m].
- n_stepsnumber, optional
Number of points you want to get. The default is 50.
- Returns:
- array
A number of coordinates???
Examples
>>> loc = [51.516666, 7.100000] # lat, lon of Gelsenkirchen >>> r = 20000 >>> test = getGrid(loc, r, n_steps=50) array([[-19948.483334 , -19992.9 ], [-19132.15680339, -19992.9 ], [-18315.83027278, -19992.9 ], ..., [ 18418.86360478, 20007.1 ], [ 19235.19013539, 20007.1 ], [ 20051.516666 , 20007.1 ]])
- TSCC.correction.geo_statisticals.getInterpolation(arr_stations, arr_grid, s_method='idw', remove_missing=False)[source]#
Creates a modell for geostatical interpolation for the stations arr_stations in the grid arr_grid
- Parameters:
- arr_stationsnumpy.array
Contains utm coordinates of the stations.
- arr_gridnumpy.array
Contains the grid in which the stations are in and to interpolate values for these points.
- s_methodstr, optional
Method to use for interpolation. The default is ‘idw’.
- remove_missingboolean, optional
Remove missing values??? The default is False.
- Returns:
- modellfunction
Map the grid points depending on input values at the stations.
Examples
>>> ohne Beispiel?
- TSCC.correction.geo_statisticals.getPlot(loc_stations, mid_X, mid_Y, r, vals_at_stations, remove_missing=False)[source]#
Create a plot of your ???
- Returns:
- plot
A plot of ???
Examples
>>> ohne Beispiel?
- TSCC.correction.geo_statisticals.getValueFromGrid(arr_grid, loc, arr_I)[source]#
Finding nearest station and get the ???
- Parameters:
- arr_gridarray from function getGrid()???
- loclist of length two
Coordinates to transform. For input use loc format like this [lat, lon].
- arr_I???
- Returns:
- float???
Examples
>>> ohne Beispiel?