From e6e4c01fab1764586e39dc6b8c0bbc2e297a7901 Mon Sep 17 00:00:00 2001 From: iosefa Date: Mon, 2 Dec 2024 23:42:42 -1000 Subject: [PATCH] Update conda channel and visualization function names Switch conda channel to conda-forge for package installation and rename visualization function to a more general term. These changes ensure compatibility with conda-forge packages and improve code readability by using a generic function name for plotting metrics. --- README.md | 4 ++-- docs/installation.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 889784a..b75fe57 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ The following snippet shows how you can load a las file, create 5m by 5m by 1m v ```python from pyforestscan.handlers import read_lidar, create_geotiff from pyforestscan.calculate import assign_voxels, calculate_pad, calculate_pai -from pyforestscan.visualize import plot_pai +from pyforestscan.visualize import plot_metric arrays = read_lidar("example_data/20191210_5QKB020880.laz", "EPSG:32605", hag=True) voxel_resolution = (5, 5, 1) @@ -56,7 +56,7 @@ voxels, extent = assign_voxels(arrays[0], voxel_resolution) pad = calculate_pad(voxels, voxel_resolution[-1]) pai = calculate_pai(pad) create_geotiff(pai, "output_pai.tiff", "EPSG:32605", extent) -plot_pai(pai, extent, cmap='viridis', fig_size=None) +plot_metric('Plant Area Index', pai, extent, metric_name='PAI', cmap='viridis', fig_size=None) ``` ![Plant Area Index](./screenshots/pai.png) diff --git a/docs/installation.md b/docs/installation.md index 8135713..07ca40b 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -13,7 +13,7 @@ Steps to install PDAL and GDAL: 1. Install PDAL and GDAL using `conda`: ``` bash -conda create -n pyforestscan_env pdal gdal +conda create -n pyforestscan_env -c conda-forge pdal gdal ``` 2. Activate the conda env: