API Reference¶
Subpackages¶
- curve_apps.contours package
- Submodules
- curve_apps.contours.driver module
- curve_apps.contours.options module
ContourDetectionParametersContourDetectionParameters.contoursContourDetectionParameters.fixed_contour_input_to_list_of_floats()ContourDetectionParameters.fixed_contoursContourDetectionParameters.has_intervalsContourDetectionParameters.interval_maxContourDetectionParameters.interval_minContourDetectionParameters.interval_spacingContourDetectionParameters.intervalsContourDetectionParameters.max_distanceContourDetectionParameters.resolution
ContourParametersContourSourceParameters
- Module contents
- curve_apps.edges package
- curve_apps.peak_finder package
- Submodules
- curve_apps.peak_finder.anomaly module
- curve_apps.peak_finder.anomaly_group module
- curve_apps.peak_finder.application module
- curve_apps.peak_finder.base_dash module
- curve_apps.peak_finder.constants module
- curve_apps.peak_finder.driver module
- curve_apps.peak_finder.layout module
- curve_apps.peak_finder.line_anomaly module
- curve_apps.peak_finder.line_data module
- curve_apps.peak_finder.line_group module
- curve_apps.peak_finder.line_position module
LinePositionLinePosition.compute_azimuth()LinePosition.interp_x()LinePosition.interp_y()LinePosition.interp_z()LinePosition.interpolate_array()LinePosition.line_indicesLinePosition.line_startLinePosition.locationsLinePosition.locations_resampledLinePosition.map_locationsLinePosition.resample_values()LinePosition.residualLinePosition.samplingLinePosition.smoothingLinePosition.sorting
- curve_apps.peak_finder.params module
PeakFinderParamsPeakFinderParams.conda_environmentPeakFinderParams.conda_environment_booleanPeakFinderParams.flip_signPeakFinderParams.ga_group_namePeakFinderParams.get_line_field()PeakFinderParams.get_property_groups()PeakFinderParams.group_a_colorPeakFinderParams.group_a_dataPeakFinderParams.group_b_colorPeakFinderParams.group_b_dataPeakFinderParams.group_c_colorPeakFinderParams.group_c_dataPeakFinderParams.group_d_colorPeakFinderParams.group_d_dataPeakFinderParams.group_e_colorPeakFinderParams.group_e_dataPeakFinderParams.group_f_colorPeakFinderParams.group_f_dataPeakFinderParams.line_fieldPeakFinderParams.line_idPeakFinderParams.masking_dataPeakFinderParams.max_migrationPeakFinderParams.max_separationPeakFinderParams.min_amplitudePeakFinderParams.min_channelsPeakFinderParams.min_valuePeakFinderParams.min_widthPeakFinderParams.monitoring_directoryPeakFinderParams.n_groupsPeakFinderParams.objectsPeakFinderParams.out_groupPeakFinderParams.plot_resultPeakFinderParams.smoothingPeakFinderParams.structural_markersPeakFinderParams.surveyPeakFinderParams.template_colorPeakFinderParams.template_dataPeakFinderParams.titlePeakFinderParams.trend_lines
- curve_apps.peak_finder.utils module
- curve_apps.peak_finder.window module
- Module contents
- curve_apps.trend_lines package
Submodules¶
curve_apps.driver module¶
curve_apps.utils module¶
- curve_apps.utils.filter_segments_orientation(vertices: numpy.ndarray, edges: numpy.ndarray, azimuth: float, azimuth_tol: float)¶
Filter segments orientation.
- Parameters:
vertices – Vertices for points.
edges – Edges for points.
azimuth – Filter angle (degree) on segments orientation, clockwise from North.
azimuth_tol – Tolerance (degree) on the azimuth.
- Returns:
Array of boolean.
- curve_apps.utils.find_curves(vertices: numpy.ndarray, parts: numpy.ndarray, params: TrendLineDetectionParameters | None = None) list[list[list[float]]]¶
Find curves in a set of points.
- Parameters:
vertices – Vertices for points.
parts – Identifier for points belong to common parts.
params – Trend line detection parameters.
- Returns:
List of curves.
- curve_apps.utils.get_contour_list(params: ContourDetectionParameters) list[float]¶
Compute contours requested by input parameters.
- Returns:
Corresponding list of values in float format.
- curve_apps.utils.image_to_grid_coordinate_transfer(image: numpy.ndarray, grid: list[numpy.ndarray]) Callable¶
Returns a function to interpolate from image to grid coordinates.
- Parameters:
grid – list of x and y grids.
- curve_apps.utils.interp_to_grid(entity: geoh5py.objects.ObjectBase, values: numpy.ndarray, resolution: float, max_distance: float) tuple[list[numpy.ndarray], numpy.ndarray]¶
Interpolate values into a regular grid based on entity locations.
- Parameters:
entity – Geoh5py object with locations data.
values – Data to be interpolated to grid.
resolution – Grid resolution
max_distance – Maximum distance used in weighted average.
- curve_apps.utils.orientation_from_segments(vertices: numpy.ndarray, cells: numpy.ndarray) tuple[numpy.ndarray, numpy.ndarray]¶
Compute orientation vectors from segments.
- Parameters:
vertices – Segment vertices.
cells – Segment connectivity.
- Returns:
Lengths and orientations of segments.
- curve_apps.utils.set_vertices_height(vertices: numpy.ndarray, entity: geoh5py.objects.ObjectBase)¶
Uses entity z values to add height column to an Nx2 vertices array.
- Parameters:
vertices – Nx2 array of vertices.
entity – geoh5py entity with vertices property.
returns: Nx3 array of vertices.
- curve_apps.utils.walk_edges(path: list, incoming: list, edges: np.ndarray, vertices: np.ndarray, damping: float = 0.0, *, mask: np.ndarray | None = None) tuple[list, np.ndarray]¶
Find all edges connected to a point.
- Parameters:
path – Current list of edges forming a path.
incoming – Incoming edge.
edges – All edges.
vertices – Direction of the edges.
damping – Damping factor between [0, 1] for the path roughness.
mask – Mask for nodes that have already been visited.
- Returns:
Edges connected to point.
Module contents¶
- curve_apps.assets_path() Path¶
Return the path to the assets folder.