CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-leafmap

A Python package for geospatial analysis and interactive mapping in a Jupyter environment.

54%

Overall

Evaluation54%

0.81x

Agent success when using this tile

Overview
Eval results
Files

task.mdevals/scenario-10/

LiDAR Terrain Cube Renderer

A module that turns raw LiDAR point clouds and gridded data cubes into aligned rasters and a simple 3D scene for inspection.

Capabilities

Create DEM from LiDAR

  • Generates a GeoTIFF elevation raster from a LAS/LAZ file clipped to [xmin, ymin, xmax, ymax] bounds at the requested resolution, returning the output path. @test
  • Raises a descriptive error when the requested bounds fall completely outside the LiDAR footprint. @test

Export data cube slice

  • Extracts a single variable and time index from a NetCDF/HDF data cube into a GeoTIFF aligned to the DEM's extent/CRS and resolution, returning the output path. @test

Render 3D overlay

  • Builds a lightweight 3D HTML rendering that displays the DEM surface and an optional overlay raster, writing to a provided HTML path and returning it. @test

Implementation

@generates

API

from typing import Optional

def build_dem_from_lidar(lidar_path: str, bounds: list[float], resolution: float, output_tif: str) -> str:
    """Create a DEM GeoTIFF from the LiDAR file clipped to [xmin, ymin, xmax, ymax]."""


def cube_slice_to_raster(cube_path: str, variable: str, time_index: int, dem_tif: str, output_tif: str) -> str:
    """Export a single variable slice to a GeoTIFF aligned to the DEM's extent/CRS and resolution."""


def render_3d_scene(dem_tif: str, overlay_tif: Optional[str], output_html: str) -> str:
    """Render a 3D scene of the DEM with an optional overlay and save it to HTML."""

Dependencies { .dependencies }

leafmap { .dependency }

Provides LiDAR ingestion, data cube rasterization, and 3D terrain visualization support.

tessl i tessl/pypi-leafmap@0.52.0

tile.json