FLApy-0.245


توضیحات

Forest Light availability heterogeneity Analysis in Python
ویژگی مقدار
سیستم عامل OS Independent
نام فایل FLApy-0.245
نام FLApy
نسخه کتابخانه 0.245
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Bin Wang
ایمیل نویسنده wb931022@hotmail.com
آدرس صفحه اصلی https://github.com/niB-gnaW/FLApy
آدرس اینترنتی https://pypi.org/project/FLApy/
مجوز -
![](https://github.com/niB-gnaW/FLApy/blob/master/Pics/logo.png) # FLApy ![PyPI - Downloads](https://img.shields.io/pypi/dm/FLApy?label=Downloads&style=flat-square) ## General description Forest Light Analyzer python package (FLApy) is a python package for assessing light availability(LA) condition at any observers within forest using Airborne Laser Scanning data and analysis the change or heterogeneity of LA over spatial scale. At the same time, FLApy can also be used to analyze the Light Availability Heterogeneity (LAH) of forest, and calculate a series of indicators to describe the 3D LAH of forest at different spatial scales. ## Demo Material UAV-based LiDAR data was obtained in Ailao Mountain sampling quadrate, Yunnan Province, China NOTE: The data is only for demonstration, and the data is not allowed to be used for commercial purposes. # Getting started FLApy is recommended to be installed in a virtual environment (Python version: 3.8.6). GDAL(http://www.gdal.org/) and C++ 14.0 are required to be installed before installing FLApy. ## Installation ``` pip install FLApy # Install the package ``` ## Usage A simple workflow is as follows: ![](https://github.com/niB-gnaW/FLApy/blob/master/Pics/WorkFlow_FLApy.png) A simple example can be found in the [Simple guidance](https://github.com/niB-gnaW/FLApy/blob/master/examples/A_simple_guidance.ipynb). ### Read data In general, the point cloud data is required, and the DSM, DEM and DTM are optional. The FLApy package can read the point cloud data in the LAS format. And the DSM and DTM can be produced automatically from the point cloud data when the SFL is generated. Yet, the third-party tools are recommended to produce these raster data. Especially, the study area is large, and the point cloud data is too big, the DSM, DEM and DTM can be produced by using the [lastools](https://rapidlasso.com/lastools/). Besides, if the study area locates in a mountainous area, the DEM is recommended to be provided. ``` import FLApy as fp site = fp.DataManagement.StudyFieldLattice() site.read_LasData('/your/path/to/point.las') # Read point cloud data site.read_RasterData('/your/path/to/dsm.tif', 'DSM') # These raster data are optional, but recommended to be provided, especially when the point cloud data is too big. site.read_RasterData('/your/path/to/dem.tif', 'DEM') site.read_RasterData('/your/path/to/dtm.tif', 'DTM') ``` ### generate A Study-Field Lattice (SFL) SFL is a data container for storing the information of each voxel in the study area. And all data processing and analysis are based on the SFL. `gen_SFL` is a function to generate the SFL. It needs a study area extent determined by `[min_X, max_X, min_Y, max_Y]`. The `resolution` is the size of each voxel in the SFL. The unit is meter. ``` site.gen_SFL([705501.9,705551.9,2715164.9,2715214.9], resolution=2) ``` ### Compute the Light Availability (LA) at voxels The LA is calculated at each voxel in the SFL. The LA is calculated by the `LAcalculator` class. ``` siteLA = fp.LAcalculator.LAcalculator(site) siteLA.computeBatch() ``` ### 3D Light Availability Heterogeneity (LAH) analysis The LAH is calculated by the `LAH_calculator` class. The `field` is the LA field to be calculated. ``` siteLAH = fp.LAHanalysis.LAH_calculator(siteLA, field = 'SVF_flat') summary_result = siteLAH.computeLAH() summary_result ``` ### Output All support for calculation 3D-LAH indicator system. | Indicators | Scale | Abbreviation | |:-----------------------------------:|:----------:|:------------:| | Average | Voxel | AVE_Vox | | Standard_deviation | Voxel | STD_Vox | | Coefficient_of_variation | Voxel | CV_Vox | | Range | Voxel | RAN_Vox | | Spatial_autocorrelation | Voxel | SAC_Vox | | Diversity | Voxel | DIV_Vox | | Gini_coefficient | Voxel | GINI_Vox | | Light_attenuation_rate | Vertical | LAR_Ver | | Height_of_inflection_point | Vertical | HIP_Ver | | Relative_height_of_inflection_point | Vertical | HIPr_Ver | | Convex_hull_area | Vertical | ACH_Ver | | Average | Horizontal | AVE_Hor | | Standard_deviation | Horizontal | STD_Hor | | Coefficient_of_variation | Horizontal | CV_Hor | | Range | Horizontal | RAN_Hor | | Spatial_autocorrelation | Horizontal | SAC_Hor | | Diversity | Horizontal | DIV_Hor | | Gini_coefficient | Horizontal | GINI_Hor | | Hot_volume | 3D_Cluster | HVOL_3D | | Cold_volume | 3D_Cluster | CVOL_3D | | Relative_hot_volume | 3D_Cluster | HVOLr_3D | | Relative_cold_volume | 3D_Cluster | CVOLr_3D | | Volume_ratio_of_hot_to_cold | 3D_Cluster | VRH2C_3D | | Largest_hot_volume | 3D_Cluster | LHV_3D | | Largest_cold_volume | 3D_Cluster | LCV_3D | | Hot_abundance | 3D_Cluster | HAB_3D | | Cold_abundance | 3D_Cluster | CAB_3D | | Hot_volume_average | 3D_Cluster | HVA_3D | | Cold_volume_average | 3D_Cluster | CVA_3D | | Hot_cohesion | 3D_Cluster | HCO_3D | | Cold_cohesion | 3D_Cluster | CCO_3D | | Hot_shape_factor | 3D_Cluster | HSF_3D | | Cold_shape_factor | 3D_Cluster | CSF_3D | | Hot_shape_index | 3D_Cluster | HSI_3D | | Cold_shape_index | 3D_Cluster | CSI_3D | # Notation The FLApy package is developed by Bin Wang, Cameron Proctor, Zhenghua Sun, Luxiang Lin, Zhiming Zhang. # Authors Bin Wang<sup>1, 2</sup>, Cameron Proctor<sup>2</sup>, Zhenghua Sun<sup>3</sup>, Luxiang Lin<sup>3</sup>, Zhiming Zhang<sup>1</sup> 1. Institute of Ecology and Geobotany, School of Ecology and Environmental Science, Yunnan University, Kunming 650091, China 2. School of the Environment, University of Windsor, Windsor, N9B 3P4, Canada 3. Key Laboratory of Tropical Forest Ecology, Xishuangbanna Tropical Botanical Garden, Chinese Academy of Sciences, Menglun 666303, China Author mail: wb931022@hotmail.com # Acknowledgements The FLApy package is developed by Bin Wang Cameron Proctor and Zhiming Zhang directed this project. Luxing Lin and Zhenhua Sun provided the guidance of the project. # Dependencies The FLApy package is developed based on Python 3.6.8 and the following packages: - numpy 1.21.2 (https://numpy.org/) - scipy 1.6.0 (https://www.scipy.org/) - matplotlib 3.7.1 (https://matplotlib.org/) - open3d 0.12.0 (http://www.open3d.org/) - pyvista 0.33.3 (https://docs.pyvista.org/) - PVGeo 2.1.0 (https://pvgeo.org/) - laspy 1.7.0 (https://laspy.readthedocs.io/en/latest/) - pandas 1.3.2 (https://pandas.pydata.org/) - tqdm 4.62.2 (https://tqdm.github.io/) - p_tqdm 1.4.0 (https://pypi.org/project/p-tqdm/) - miniball 1.1.0 (https://pypi.org/project/miniball/) - rasterio 1.2.6 (https://rasterio.readthedocs.io/en/latest/) - xarray 0.19.0 (https://xarray.pydata.org/en/stable/) # Citation In submission.


نیازمندی

مقدار نام
==1.21.2 numpy
==1.6.0 scipy
- matplotlib
- open3d
- pyvista
- PVGeo
==1.7.0 laspy
- pandas
- tqdm
- p-tqdm
- miniball
- rasterio
==0.19.0 xarray
- naturalneighbor
- numba
- joblib


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl FLApy-0.245:

    pip install FLApy-0.245.whl


نصب پکیج tar.gz FLApy-0.245:

    pip install FLApy-0.245.tar.gz