Skip to main content

A simple species distribution modelling package. Functionality is currently limited to BIOCLIM.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecomod-0.1.6.tar.gz (25.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecomod-0.1.6-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file ecomod-0.1.6.tar.gz.

File metadata

  • Download URL: ecomod-0.1.6.tar.gz
  • Upload date:
  • Size: 25.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for ecomod-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a391d7d831b908667e1e9cacd803488c39a40eeaba6a6e9e2b8ed2a980d8611b
MD5 3b75a73df1cfe8636007bf064de08eee
BLAKE2b-256 033e4cbbe60b0d5a880c02220dbbf8f4f3a2dd762f15afa56975c82cf31f0377

See more details on using hashes here.

File details

Details for the file ecomod-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: ecomod-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for ecomod-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b67350e98f5560f64d339922b4cd9a084e43679c5650a34ecd56fa0b14e9bc8c
MD5 420eeba94c1f86a9cd3bd0f07d5793cc
BLAKE2b-256 c046b3778ab63d80a24009358dcb28738d0f2683b15da82dae3413342e25ffdb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page