Skip to main content

Package to classify crops based on sentinel images.

Project description

Crop classification

This is a collection of scripts that can help to classify crops using Sentinel data.

Installation manual

  1. Install conda

As the scripts are written in Python, you need to use a package manager to be able to install the packages the scripts depend on. The rest of the installation manual assumes you use anaconda and python 3.6+. The installer for anaconda can be found here: https://www.anaconda.com/download/.

If you need some more installation instructions, have a look here: https://conda.io/docs/user-guide/install/index.html

  1. Create new environment and install dependencies

Once you have anaconda installed, you can open an anaconda terminal window and follow the following steps:

  1. Create and activate a new conda environment
  ```
  conda create --name cropclassification python=3.6
  conda activate cropclassification
  ```
  2. Install the dependencies for the crop classification scripts:
  ```
  conda install --channel conda-forge scikit-learn keras tensorflow rasterio rasterstats geopandas pyarrow psutil
  ```
  3. Possibly you need to restart your computer now, especially if it was the first time you installed anaconda/geopandas
  4. Start the anaconda terminal window again and activate the environment
  ```
  conda activate cropclassification
  ```
  1. Update the configuration to your situation

You can now open the scripts in eg. visual studio code, and check out especially the .ini files in the config dir. You need to update those to match your environment, eg. set the paths as you want them,...

  1. Calculate the time series

To calculate time series, you need to run the calc_dias.py script on a server that has access to the sentinel CARD images.

  1. Start a crop classification

Run run_job.py.

Sample data

Sample data can be downloaded from the following location. If you don't change the default paths in the scripts in needs to be put in the directory C:\temp\CropClassification\InputData https://drive.google.com/open?id=1eN9cBcWyvM0msNMCD6nivcGuZfYyqV5q

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

cropclassification-0.0.4.tar.gz (82.2 kB view details)

Uploaded Source

Built Distribution

cropclassification-0.0.4-py3-none-any.whl (95.8 kB view details)

Uploaded Python 3

File details

Details for the file cropclassification-0.0.4.tar.gz.

File metadata

  • Download URL: cropclassification-0.0.4.tar.gz
  • Upload date:
  • Size: 82.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200622 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for cropclassification-0.0.4.tar.gz
Algorithm Hash digest
SHA256 79b302210a07335ba6248b630b59aaf48f7fe120cf963597f5ddcc9aaca9764f
MD5 5c91b00114e1546366ee1ece6d8a4022
BLAKE2b-256 1c3cb0a72887a43c83f764bd748d616f16c0e17ced6472b1bfe4dd0778d8c5bf

See more details on using hashes here.

File details

Details for the file cropclassification-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cropclassification-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 95.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200622 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for cropclassification-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 81508b8b54931658efddb6ac1fbc58448f8211e1cf95df6901628cf53cb71879
MD5 d8e9011337132ee0b48957a3c6ca1a5e
BLAKE2b-256 6df91ae23237788f9617812430866b5ec001bc4a0200323049306d9f07cca633

See more details on using hashes here.

Supported by

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