PyHelios 0.1.11
Loading...
Searching...
No Matches
pyhelios.LeafOptics Namespace Reference

Classes

class  LeafOptics
 High-level interface for PROSPECT leaf optical model. More...
 
class  LeafOpticsError
 Exception raised for LeafOptics-specific errors. More...
 
class  LeafOpticsProperties
 Data class for PROSPECT leaf optical model parameters. More...
 

Functions

 _leafoptics_working_directory ()
 Context manager that temporarily changes working directory to where LeafOptics assets are located.
 

Variables

 logger = logging.getLogger(__name__)
 
list AVAILABLE_SPECIES
 

Function Documentation

◆ _leafoptics_working_directory()

pyhelios.LeafOptics._leafoptics_working_directory ( )
protected

Context manager that temporarily changes working directory to where LeafOptics assets are located.

LeafOptics C++ code uses relative paths like "plugins/leafoptics/spectral_data/" expecting assets relative to working directory. This manager temporarily changes to the build directory where assets are actually located.

Definition at line 140 of file LeafOptics.py.

Variable Documentation

◆ AVAILABLE_SPECIES

list pyhelios.LeafOptics.AVAILABLE_SPECIES
Initial value:
1= [
2 "default",
3 "garden_lettuce",
4 "alfalfa",
5 "corn",
6 "sunflower",
7 "english_walnut",
8 "rice",
9 "soybean",
10 "wine_grape",
11 "tomato",
12 "common_bean",
13 "cowpea"
14]

Definition at line 30 of file LeafOptics.py.

◆ logger

pyhelios.LeafOptics.logger = logging.getLogger(__name__)

Definition at line 21 of file LeafOptics.py.