Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • altitude_constant: Ken een constante hoogte aan de rekencellen. Dit kan zowel op de faces (cellen) als nodes (hoekpunten) gedaan worden, al zal dat in praktijk niet uitmaken bij een constante hoogte.

  • altitude_from_raster: Bepaal de hoogte uit een hoogteraster. Op basis van het grid, het gekozen hoogteraster en wat instellingen wordt de hoogte van het rekenrooster bepaald. De docstring van de functie verduidelijkt dit (Engels):

Code Block
def altitude_from_raster(self, rasterpath, where='face', stat='mean', missing='default'):
    """
    Method to determine level within cell or on nodes. The values are determined by
    applying a statistic to the pixels within the cell bounds or around the node.

    In case of the option 'node' Voronoi polygons are drawn around the nodes. These cells
    are cut of at the edges of the the grid. This option might take a bit longer, since
    all the polygons need to be drawn and clipped at the edges.

    In case of msising values, which can occur:
    - due to no-data parts in the grid that is sampled
    - when the cell sizes within which the altitude is determined is smaller than a raster pixel.
   pixel. The missing data can be filled.

    Parameters
    ----------
    rasterpath : str
	
        Path to raster
    where : str
	
        Locations where the altitude is determined. Can be on the faces, so within the
	
        cell boundaries, or node, on the cell edged. Default: 'face'
    stat : str
	
        Statistic to determined from values within polygon bounds. A string is required 	that
        describes a function that is known by numpy, such as 'mean' or 'max', 	without any
        further arguments (quantile is not possible, since we'd need to 	specify which quantile).
        Default: 'mean'
    missing : str
	
        How to fill the missing values.
	
        - default: No filling, the missing values will have a NaN-value in the grid
	
        - nearest: Fill the missing data with the nearest cell value that has a value
	
        - interpolation: Interpolate the missing data with cell values that are present
	
            Default: 'default'
    """

Beide functies zijn een ‘method’ van de class Mesh2D.

...