pyprecag
A suite of tools for Precision Agriculture
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
2 of 6 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.0%) to scientific vocabulary
Repository
A suite of tools for Precision Agriculture
Basic Info
- Host: GitHub
- Owner: CSIRO-Precision-Agriculture
- License: other
- Language: Python
- Default Branch: master
- Size: 15.9 MB
Statistics
- Stars: 24
- Watchers: 9
- Forks: 8
- Open Issues: 5
- Releases: 3
Metadata Files
README.md
pyprecag
A suite of tools for Precision Agriculture data analysis
- Homepage: https://github.com/CSIRO-Precision-Agriculture/pyprecag
- Documentation: https://CSIRO-Precision-Agriculture.github.io/pyprecag_docs
- Installation
- Version: 0.4.3
- License: GNU General Public Licence version 3 (GPLv3)
Precision Agriculture Tools (PAT) Plugin for QGIS contains tools for processing and analysing precision agriculture data which uses the pyPrecAg python module. For more infomation visit https://github.com/CSIRO-Precision-Agriculture/PAT_QGIS_Plugin
Citation
If you use pyprecag for any published work, please cite using the reference below:
Ratcliff, Christina; Gobbett, David; & Bramley, Rob (2025): pyprecag - a Python package for the analysis of precision agriculture data. CSIRO. v5. Software. http://hdl.handle.net/102.100.100/78353
Dependencies
Installation
pyprecag is available through the Python Packaging Index and can be installed with pip, however some dependencies require additional steps to install properly.
It is recommended to install pyprecag in a virtual environment so that the dependencies do not cause issues with your system-level Python installation.
VESPER Kriging is only supported on Windows platforms with the VESPER software installed.
Install via pip:
console
pip install pyprecag
Linux
The only dependency that causes issues is GDAL . The Python package is available from PyPI . However, the [libgdal-dev]{.title-ref} dependencies are required, and the location of the header files needs to be specified when installing. These libraries are available via UbuntuGIS and other avenues.
On Debian systems, this process should work. Add the unstable release of UbuntuGIS, get and install packages with:
console
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libgdal-dev gdal-bin
If the above doesn\'t work try removing all gdal related files from the [/etc/apt/sources.list.d]{.title-ref} direcory and trying again (it\'s possible old files are interfering with install attempts).
Once the [libgdal-dev]{.title-ref} libraries and [gdal-bin]{.title-ref} are installed, pip install GDAL while specifying the version and the location of the header files with:
console
pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
Then pyprecag should install without issue.
Docker
The Dockerfile included in the examples directory builds a container with Pyprecag installed in an Ubuntu 18.04 image. Build the container with:
console
docker build -f docs/Dockerfile -t <tag> .
The tests can be run inside this container like this:
console
docker run <container id or tag> make test
Windows
The dependencies GDAL, Fiona , and Rasterio , all cause issues when installing on Windows.
The easiest way to install all of these is with the Windows Binaries provided by Christoph Gohlke at https://www.lfd.uci.edu/~gohlke/pythonlibs/. Download the Python 2.7 version for your system architecture then install them with:
console
pip install /path/to/<downloaded_file.whl>
It is recommended to install GDAL first, as it is a requirements for both Fiona and Rasterio. GDAL might also return an error and require you to install Visual C++.
They are also available from the conda-forge channel in conda. pyprecag is not currently available to install with conda, however can be pip installed in a conda environment and use the conda-installed versions of GDAL, Fiona and Rasterio.
Once those three dependencies are installed, pyprecag should install without issue.
Development
There is a makefile in the project root with targets for the most common development operations such as lint checks, running unit tests, building the documentation, and building installer packages. [tox]{.title-ref} does not have a target, as [make tox]{.title-ref} is more typing than [tox]{.title-ref}.
Run make with no target to see the list of targets:
bash
$ make
Bump-my-version is used to manage the package version numbers. This ensures that the version number is correctly incremented in all required files. Please see the bumpversion documentation for usage instructions, and do not edit the version strings directly.
Version numbers follow the Semantic versioning guidelines.
Contributing
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
Bug reports
When reporting a bug please include:
- Your operating system name and version.
- Any details about your local setup that might be helpful in troubleshooting.
- The pyprecag package version.
- Detailed steps to reproduce the bug.
Documentation improvements
pyprecag could always use more documentation, whether as part of the official pyprecag docs, in docstrings, or even on the web in blog posts, articles, and such.
:::: note ::: title Note :::
This project uses Google-style docstrings. Contributed code should follow the same conventions. For examples, please see the Napoleon examples, or the Google Python Style Guide. ::::
Feature requests and feedback
The best way to send feedback is to file an issue
If you are proposing a feature:
- Explain in detail how it would work.
- Keep the scope as narrow as possible, to make it easier to implement.
- Remember that this is a volunteer-driven project, and that contributions are welcome :)
Or, implement the feature yourself and submit a pull request.
Development
To set up pyprecag for local development:
- Fork the [pyprecag]{.title-ref} repo on GitHub.
- Clone your fork locally:
bash
$ git clone git@github.com:your_name_here/pyprecag.git
- Create a branch for local development:
bash
git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
- When you\'re done making changes, run all the tests, doc builder and pylint checks using the project makefile:
bash
make clean lint test docs
- Commit your changes and push your branch to GitHub:
console
git add .
git commit -m "Your detailed description of your changes."
git push origin name-of-your-bugfix-or-feature
- Submit a pull request through the GitHub website.
Pull Request Guidelines
If you need some code review or feedback while you\'re developing the code just make the pull request.
For merging, you should:
- Include passing tests.
- Update documentation when there\'s new API, functionality etc.
- Add a note to
CHANGELOG.rstabout the changes. - Add yourself to
AUTHORS.rst.
Owner
- Name: CSIRO-Precision-Agriculture
- Login: CSIRO-Precision-Agriculture
- Kind: organization
- Repositories: 3
- Profile: https://github.com/CSIRO-Precision-Agriculture
Citation (CITATION.rst)
If you use pyprecag for any published work, please cite using the reference below: *Ratcliff, Christina; Gobbett, David; & Bramley, Rob (2025): pyprecag - a Python package for the analysis of precision agriculture data. CSIRO. v5. Software. http://hdl.handle.net/102.100.100/78353 *
GitHub Events
Total
- Release event: 1
- Watch event: 2
- Delete event: 1
- Push event: 91
- Pull request event: 2
- Create event: 4
Last Year
- Release event: 1
- Watch event: 2
- Delete event: 1
- Push event: 91
- Pull request event: 2
- Create event: 4
Committers
Last synced: about 3 years ago
All Time
- Total Commits: 173
- Total Committers: 6
- Avg Commits per committer: 28.833
- Development Distribution Score (DDS): 0.561
Top Committers
| Name | Commits | |
|---|---|---|
| Christina Ratcliff | 2****f@u****m | 76 |
| Andrew Spiers | a****w@a****t | 61 |
| D'Alessandro, Adrian (IM&T, Clayton) | A****o@c****u | 19 |
| Ratcliff, Christina (A&F, Waite Campus) | C****f@c****u | 14 |
| Adrian D'Alessandro | a****o@g****m | 2 |
| Andrew | a****w@p****t | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 23
- Total pull requests: 31
- Average time to close issues: 3 months
- Average time to close pull requests: about 21 hours
- Total issue authors: 5
- Total pull request authors: 4
- Average comments per issue: 0.61
- Average comments per pull request: 0.39
- Merged pull requests: 29
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: 8 minutes
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- cratcliff (19)
- DC23 (1)
- AdrianDAlessandro (1)
- steverichmondnas (1)
- PitchPoler (1)
Pull Request Authors
- cratcliff (27)
- andrewspiers (3)
- AdrianDAlessandro (1)
- DC23 (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 389 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 10
- Total maintainers: 2
pypi.org: pyprecag
A suite of tools for Precision Agriculture
- Homepage: https://github.com/CSIRO-Precision-Agriculture/pyprecag
- Documentation: https://pyprecag.readthedocs.io/
- License: BSD-3-Clause
-
Latest release: 0.4.3
published about 1 year ago
Rankings
Maintainers (2)
Dependencies
- sphinx *
- These *
- chardet *
- fiona *
- future *
- gdal *
- geopandas *
- matplotlib *
- pyproj *
- rasterio *
- scipy *
- six >1.12.0
- unidecode *
- ubuntu 18.04 build