Skip to main content

EcoMod

Greetings, fellow ecologists. This is a simple species distribution modelling package, with currently only having the BIOCLIM function.

installation

Use the package manager pip to install the module. Due to the issue of osgeo package, I've included the whl of GDAL for Win py3.11 in this package. You might need to look for other relevant source if you're running on a different system, such as Mac.

pip install YOUR_PYTHON_FOLDER/GDAL-3.4.3-cp311-cp311-win_amd64.whl
pip install EcoMod

Usage

import EcoMod

# get occurrences data & WorldClim GeoTiff
bioclims = [1, 12]
# # |: repeat for testing set
coordinates = EcoMod.get_coord("sp. name")
latitudes = [i[0] for i in coordinates]
longitudes = [i[1] for i in coordinates]
EcoMod.bioclimap(coordinates, bioclims, reso=10)
# # # [1] call to get the optimum from the training set.
EcoMod.get_norm_const(coordinates)
# # :| [2] normalise the prediction (i.e., testing, present) map
clusters = EcoMod.radius_cluster(coordinates, 2) # optional
normed_array = EcoMod.normalise()

# view the prediction map using matplotlib
# # assign 'extent_84320700' (variable) to the 'extent' param
# # to crop out the Region of Focus
...
plt.imshow(normed_array, extent=extent_84320700)
plt.show()

Roadmap

I'll next be working on a more advance and statistically comprehensive feature like MaxEnt and its related target group background. The aesthetic part of the map (i.e, visualisation) is also part of the roadmap. This project is also following the guidelines and suggestions in Soley-Guardia et al.'s (2024) publication on the top ten hazards that were seen when modelling species distribution.

Contributing

Contributions are welcome. Feel free to open an issue for any suggestion or submit a pull request.

License

This project is licensed under the conventional MIT License - see the LICENSE file for details.

Acknowledgement

This eco-modelling package was inspired by Timothée Poisot's "BioClim from scratch" tutorial. Special thanks to Professor Poisot (@tpoisot) for creating such an informative guide on modelling the bioclimatic distribution of species.

References

  1. Mateo, R.G., Croat, T.B., Felicísimo, A.M. & Muñoz, J. (2010) Profile or group discriminative techniques? Generating reliable species distribution models using pseudo-absences and target-group absences from natural history collections.Diversity and Distribution, 16(1), 84-94. https://doi.org/10.1111/j.1472-4642.2009.00617.x
  2. Poisot, T. (2021) Building the BioClim model from scratch_.[[video]]YouTube.(https://www.youtube.com/watch?v=81MblyNWz3Q)
  3. Soley-Guardia, M., Alvarado-Serrano, D.F. & Anderson, R.P. (2024) _Top ten hazards to avoid when modeling species distributions: a didactic guide of assumptions, problems, and recommendations.Ecography, e06852. https://doi.org/10.1111/ecog.06852

Metadata

Release files for EcoMod 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for EcoMod 0.1.6
File Size Uploaded
ecomod-0.1.6.tar.gz 25.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for EcoMod 0.1.6
File Interpreter ABI Platform
ecomod-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 25.4 MB

Release files / ecomod-0.1.6.tar.gz

Download URL ecomod-0.1.6.tar.gz
Size 25.4 MB
Tags Source
SHA-256 checksum
How to use checksums
a391d7d831b908667e1e9cacd803488c39a40eeaba6a6e9e2b8ed2a980d8611b
BLAKE2b-256 checksum
How to use checksums
033e4cbbe60b0d5a880c02220dbbf8f4f3a2dd762f15afa56975c82cf31f0377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / ecomod-0.1.6-py3-none-any.whl

Download URL ecomod-0.1.6-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b67350e98f5560f64d339922b4cd9a084e43679c5650a34ecd56fa0b14e9bc8c
BLAKE2b-256 checksum
How to use checksums
c046b3778ab63d80a24009358dcb28738d0f2683b15da82dae3413342e25ffdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page