Skip to content

Commit

Permalink
Update conda channel and visualization function names
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iosefa committed Dec 3, 2024
1 parent 0e70339 commit e6e4c01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ 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)
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)
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e6e4c01

Please sign in to comment.