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.1.tar.gz (75.4 kB view details)

Uploaded Source

Built Distribution

cropclassification-0.0.1-py3-none-any.whl (88.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cropclassification-0.0.1.tar.gz
  • Upload date:
  • Size: 75.4 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.1.tar.gz
Algorithm Hash digest
SHA256 037d3fffafdfee6445bcb755a394fb8bbbc71a7ac290b36b0a6820e9b1a57e8c
MD5 d4720ab7ec16aaca08ae83c94528f218
BLAKE2b-256 19b0db7082308dd17507bf6e4b3f4cddded5bb820b564d03626e6a2ffedae1f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cropclassification-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 88.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 478e268e1bd819f0fe213a1415a43555dbabf418589cc6754645da6ef6d8c0fa
MD5 8252ee598dffe8d9ab6334d9c2f75b79
BLAKE2b-256 c46794e687b13475118afb812079d9ba087121da9070e4483684f2bb9d3734ab

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