Skip to content

Commit

Permalink
Merge pull request #12 from awesome-spectral-indices/MartinuzziFrance…
Browse files Browse the repository at this point in the history
…sco-patch-1

Update Project.toml
  • Loading branch information
MartinuzziFrancesco authored Dec 16, 2023
2 parents fdadd3a + 3eb0b25 commit b206b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SpectralIndices"
uuid = "df0093a1-273d-40bc-819a-796ec3476907"
authors = ["MartinuzziFrancesco <[email protected]>"]
version = "0.1.2"
version = "0.1.3"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand Down

2 comments on commit b206b8a

@MartinuzziFrancesco
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

Release notes:

🌟 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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/97240

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.3 -m "<description of version>" b206b8aa866af3353692b684ad003b996adf5cd4
git push origin v0.1.3

Please sign in to comment.