![]() |
PyHelios 0.1.11
|
Classes | |
| class | ULeafOptics |
| Opaque structure for LeafOptics C++ class. More... | |
Functions | |
| _check_error (result, func, args) | |
| Automatic error checking for all leaf optics functions. | |
| ctypes.POINTER(ULeafOptics) | createLeafOptics (ctypes.POINTER(UContext) context) |
| Create LeafOptics instance. | |
| None | destroyLeafOptics (ctypes.POINTER(ULeafOptics) leafoptics) |
| Destroy LeafOptics instance. | |
| None | leafOpticsRun (ctypes.POINTER(ULeafOptics) leafoptics, List[int] uuids, List[float] properties, str label) |
| Run LeafOptics model and assign spectra to primitives. | |
| None | leafOpticsRunNoUUIDs (ctypes.POINTER(ULeafOptics) leafoptics, List[float] properties, str label) |
| Run LeafOptics model without assigning to primitives. | |
| Tuple[List[float], List[float], List[float]] | leafOpticsGetLeafSpectra (ctypes.POINTER(ULeafOptics) leafoptics, List[float] properties) |
| Get leaf reflectance and transmittance spectra. | |
| None | leafOpticsSetProperties (ctypes.POINTER(ULeafOptics) leafoptics, List[int] uuids, List[float] properties) |
| Set leaf optical properties for primitives. | |
| None | leafOpticsGetPropertiesFromSpectrum (ctypes.POINTER(ULeafOptics) leafoptics, List[int] uuids) |
| Get PROSPECT parameters from reflectivity spectrum for primitives. | |
| None | leafOpticsGetPropertiesFromSpectrumSingle (ctypes.POINTER(ULeafOptics) leafoptics, int uuid) |
| Get PROSPECT parameters from reflectivity spectrum for a single primitive. | |
| List[float] | leafOpticsGetPropertiesFromLibrary (ctypes.POINTER(ULeafOptics) leafoptics, str species) |
| Get leaf optical properties from the built-in species library. | |
| None | leafOpticsDisableMessages (ctypes.POINTER(ULeafOptics) leafoptics) |
| Disable command-line output messages from LeafOptics. | |
| None | leafOpticsEnableMessages (ctypes.POINTER(ULeafOptics) leafoptics) |
| Enable command-line output messages from LeafOptics. | |
| None | leafOpticsOptionalOutputPrimitiveData (ctypes.POINTER(ULeafOptics) leafoptics, str label) |
| Selectively output primitive data for specific biochemical properties. | |
| bool | is_leafoptics_available () |
| Check if LeafOptics functions are available in the current library. | |
| mock_create (*args, **kwargs) | |
| mock_method (*args, **kwargs) | |
|
protected |
Automatic error checking for all leaf optics functions.
Definition at line 32 of file ULeafOpticsWrapper.py.
| ctypes.POINTER(ULeafOptics) pyhelios.wrappers.ULeafOpticsWrapper.createLeafOptics | ( | ctypes.POINTER(UContext) | context | ) |
Create LeafOptics instance.
| context | Pointer to the Helios Context |
| NotImplementedError | If LeafOptics functions not available |
| ValueError | If context is None |
Definition at line 151 of file ULeafOpticsWrapper.py.
| None pyhelios.wrappers.ULeafOpticsWrapper.destroyLeafOptics | ( | ctypes.POINTER(ULeafOptics) | leafoptics | ) |
Destroy LeafOptics instance.
Definition at line 166 of file ULeafOpticsWrapper.py.
| bool pyhelios.wrappers.ULeafOpticsWrapper.is_leafoptics_available | ( | ) |
Check if LeafOptics functions are available in the current library.
Definition at line 418 of file ULeafOpticsWrapper.py.
| None pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsDisableMessages | ( | ctypes.POINTER(ULeafOptics) | leafoptics | ) |
Disable command-line output messages from LeafOptics.
Definition at line 373 of file ULeafOpticsWrapper.py.
| None pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsEnableMessages | ( | ctypes.POINTER(ULeafOptics) | leafoptics | ) |
Enable command-line output messages from LeafOptics.
Definition at line 383 of file ULeafOpticsWrapper.py.
| Tuple[List[float], List[float], List[float]] pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsGetLeafSpectra | ( | ctypes.POINTER(ULeafOptics) | leafoptics, |
| List[float] | properties ) |
Get leaf reflectance and transmittance spectra.
| leafoptics | Pointer to LeafOptics instance |
| properties | List of 9 floats [numberlayers, brownpigments, chlorophyllcontent, carotenoidcontent, anthocyancontent, watermass, drymass, protein, carbonconstituents] |
Definition at line 241 of file ULeafOpticsWrapper.py.
| List[float] pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsGetPropertiesFromLibrary | ( | ctypes.POINTER(ULeafOptics) | leafoptics, |
| str | species ) |
Get leaf optical properties from the built-in species library.
| leafoptics | Pointer to LeafOptics instance |
| species | Name of the species (case-insensitive). Available species: "default", "garden_lettuce", "alfalfa", "corn", "sunflower", "english_walnut", "rice", "soybean", "wine_grape", "tomato", "common_bean", "cowpea" |
Definition at line 355 of file ULeafOpticsWrapper.py.
| None pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsGetPropertiesFromSpectrum | ( | ctypes.POINTER(ULeafOptics) | leafoptics, |
| List[int] | uuids ) |
Get PROSPECT parameters from reflectivity spectrum for primitives.
| leafoptics | Pointer to LeafOptics instance |
| uuids | List of primitive UUIDs to query |
Definition at line 304 of file ULeafOpticsWrapper.py.
| None pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsGetPropertiesFromSpectrumSingle | ( | ctypes.POINTER(ULeafOptics) | leafoptics, |
| int | uuid ) |
Get PROSPECT parameters from reflectivity spectrum for a single primitive.
| leafoptics | Pointer to LeafOptics instance |
| uuid | Single primitive UUID to query |
Definition at line 327 of file ULeafOpticsWrapper.py.
| None pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsOptionalOutputPrimitiveData | ( | ctypes.POINTER(ULeafOptics) | leafoptics, |
| str | label ) |
Selectively output primitive data for specific biochemical properties.
By default, all biochemical properties are written as primitive data. Use this method to select only needed properties for better performance.
| leafoptics | LeafOptics instance pointer |
| label | Property label - one of: "chlorophyll", "carotenoid", "anthocyanin", "brown", "water", "drymass", "protein", "cellulose" |
Definition at line 405 of file ULeafOpticsWrapper.py.
| None pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsRun | ( | ctypes.POINTER(ULeafOptics) | leafoptics, |
| List[int] | uuids, | ||
| List[float] | properties, | ||
| str | label ) |
Run LeafOptics model and assign spectra to primitives.
| leafoptics | Pointer to LeafOptics instance |
| uuids | List of primitive UUIDs |
| properties | List of 9 floats [numberlayers, brownpigments, chlorophyllcontent, carotenoidcontent, anthocyancontent, watermass, drymass, protein, carbonconstituents] |
| label | Label for the spectra (appended to "leaf_reflectivity_" and "leaf_transmissivity_") |
Definition at line 180 of file ULeafOpticsWrapper.py.
| None pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsRunNoUUIDs | ( | ctypes.POINTER(ULeafOptics) | leafoptics, |
| List[float] | properties, | ||
| str | label ) |
Run LeafOptics model without assigning to primitives.
| leafoptics | Pointer to LeafOptics instance |
| properties | List of 9 floats [numberlayers, brownpigments, chlorophyllcontent, carotenoidcontent, anthocyancontent, watermass, drymass, protein, carbonconstituents] |
| label | Label for the spectra |
Definition at line 210 of file ULeafOpticsWrapper.py.
| None pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsSetProperties | ( | ctypes.POINTER(ULeafOptics) | leafoptics, |
| List[int] | uuids, | ||
| List[float] | properties ) |
Set leaf optical properties for primitives.
| leafoptics | Pointer to LeafOptics instance |
| uuids | List of primitive UUIDs |
| properties | List of 9 floats [numberlayers, brownpigments, chlorophyllcontent, carotenoidcontent, anthocyancontent, watermass, drymass, protein, carbonconstituents] |
Definition at line 277 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.mock_create | ( | * | args, |
| ** | kwargs ) |
Definition at line 424 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.mock_method | ( | * | args, |
| ** | kwargs ) |
Definition at line 430 of file ULeafOpticsWrapper.py.
|
protected |
Definition at line 128 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.argtypes |
Definition at line 39 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.createLeafOptics = mock_create |
Definition at line 437 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.errcheck |
Definition at line 41 of file ULeafOpticsWrapper.py.
| int pyhelios.wrappers.ULeafOpticsWrapper.LEAF_OPTICS_PROPERTIES_COUNT = 9 |
Definition at line 23 of file ULeafOpticsWrapper.py.
| int pyhelios.wrappers.ULeafOpticsWrapper.LEAF_OPTICS_SPECTRAL_POINTS = 2101 |
Definition at line 26 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsGetLeafSpectra = mock_method |
Definition at line 440 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsGetPropertiesFromLibrary = mock_method |
Definition at line 444 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsGetPropertiesFromSpectrum = mock_method |
Definition at line 442 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsGetPropertiesFromSpectrumSingle = mock_method |
Definition at line 443 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsRun = mock_method |
Definition at line 438 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsRunNoUUIDs = mock_method |
Definition at line 439 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.leafOpticsSetProperties = mock_method |
Definition at line 441 of file ULeafOpticsWrapper.py.
| pyhelios.wrappers.ULeafOpticsWrapper.restype |
Definition at line 40 of file ULeafOpticsWrapper.py.