in3Utils.geoTrans
Opperations and transformations of rasters and lines
Functions
Gauss's area formula to calculate polygon area |
|
convert from cartesian to spherical coordinates |
|
find which cells of data area affected by points |
|
Check if two rasters overlap |
|
remove particles laying outside the polygon |
|
check that the avalanche profiles goes from top to bottom flip it if not and adjust the splitpoint in consequence |
|
compute distance along a dict of coordinates or a shapely lineString incrementally |
|
compute distance along a line in 2D |
|
compute s coordinate given a path (x, y) |
|
Find the beta point: first point under the beta value given in prepareAngleProfile. |
|
find the closest point of pointDict along line defined by xcoor and ycoor - only xy plane! |
|
find point on dem given a direction and a z value to reach |
|
Finds the closest point in Points to the avaProfile and returns its projection on avaProfile. |
|
Find all raster cells crossed by the line line has to be entierly contained on the raster extend. |
|
Find the neighbour cells to a given cell |
|
Interpolate vector field from grid to unstructured points |
|
Compute normal to surface at grid points |
|
Determines if a polygon path is mostly clockwise or counter clockwise |
|
Get x and y (2D) grid description vectors for a mesh with a given number of rows and columns, lower left center and cellSize. |
|
Create grid |
|
Creates a domain (irregular raster) along a path, given the path xyPath, a domain width and a raster cellsize |
|
find particles within a polygon |
|
convert line to raster |
|
Prepare inputs for findAngleProfile function Read profile (s, z), compute the slope Angle look for points for which the slope is under the given Beta value and that are located downstream of the splitPoint |
|
convert shape file polygon to raster |
|
Resample and project line on dem 1- Resample the avapath line with an interval of approximately distance in meters between points (projected distance on the horizontal plane). |
|
Resample and project line on dem, with strict settings, i.e. to follow the line as close as possible. |
|
Projects Z onto points (x,y) using a bilinear or nearest interpolation and returns the z coord |
|
Projects Points on raster using a bilinear or nearest interpolation and returns the z coord (no for loop) |
|
compute raster data on a new mesh with cellSize using the specified remeshOption. |
|
change raster cell size by reprojecting on a new grid - first check if remeshed raster available |
|
Reproject raster on a grid of shape rasterRef |
|
rotate a vector provided as start and end point with theta angle rotation counter-clockwise |
|
rotate clockwise a raster arround (0, 0) with theta angle |
|
search if remeshed raster with correct name and cell size already available |
|
snap points to line in dataframe only considering x, y plane! |