v0.1.3
SpectralIndices v0.1.3
π SpectralIndices v0.1.3 Released π
Hello SpectralIndices Community!
We're excited to announce the release of SpectralIndices v0.1.3. This version brings a significant enhancement that broadens the horizons of your spectral analysis capabilities:
π New Feature: YAXArrays Support! π
- Extended Data Handling: We've introduced support for YAXArrays in spectral index computation. Now, you can seamlessly use
YAXArray
data structures in your analyses. - Enhanced Flexibility: This addition is aimed at providing you more options and flexibility in how you handle and analyze your remote sensing data.
- Effortless Integration: Incorporating YAXArrays into your workflow with SpectralIndices is now as straightforward as it gets. Enjoy the smooth and efficient processing of your multidimensional data arrays!
How to Use:
You can pass a single YAXArray
directly as a parameter or or through keyword arguments in your computation functions. This flexibility allows for seamless integration of YAXArrays into your existing workflows. Here's how you can do it:
Example:
axes = (Dim{:Lon}(1:5), Dim{:Lat}(1:5), Dim{:Time}(1:10))
N_data = fill(0.643, (5, 5, 10))
R_data = fill(0.175, (5, 5, 10))
nds = YAXArray((Dim{:Lon}(1:5), Dim{:Lat}(1:5), Dim{:Time}(1:10)),N_data)
rds = YAXArray((Dim{:Lon}(1:5), Dim{:Lat}(1:5), Dim{:Time}(1:10)),R_data)
nr_ds = concatenatecubes([nds, rds], Dim{:Variables}(["N", "R"]))
# as params
result_df_single = compute_index("NDVI", nr_ds)
# as kwargs
result_df_single2 = compute_index("NDVI"; N=nds, R=rds)
Happy Analyzing!
β The SpectralIndices Team
Merged pull requests:
- Dispatch over YAXArrays (#9) (@MartinuzziFrancesco)
- CompatHelper: add new compat entry for DimensionalData at version 0.25, (keep existing compat) (#10) (@github-actions[bot])
- CompatHelper: add new compat entry for YAXArrays at version 0.5, (keep existing compat) (#11) (@github-actions[bot])
- Update Project.toml (#12) (@MartinuzziFrancesco)