Code Monkey home page Code Monkey logo

rcm_plot's Introduction

RCM_Plot

This python tool can be used to run a streamlit web app that displays time series plots of Radar backscatter and NDVI values from a database. It was developed to work with a specific database containing data from the Radar Crop Monitor project.

Installation

With Anaconda

If you are using Anaconda you can use the provided environment.yml file to set up a virtual environment in which the main script can be run. By default, the created environment will be named "RCM_Plot". You can change the name in the environment.yml file before setting up the environment.

Open the Anaconda prompt, make sure the environment.yml is in the specified directory, and enter the following:

conda env create -f environment.yml

Activate the created environment by entering:

conda activate <name_of_environment>

Then run the main.py script by entering:

streamlit run <path_to_main.py>

The web app should now open automatically in your default browser.

Without Anaconda

If you are not using Anaconda, you have to manually install the packages that are imported in main.py (except sqlite3) and then run the script as described above.

Web-App Features

By default, the app starts with an interface in which the path to the database has to be entered. You can bypass this interface by setting a permanent path in main.py. The app will then start directly with the main page.

On the main app page, you can use the filters on the left-hand side to select the data that you want to display. Graphs will appear after a full selection has been made (if data is available for this filter combination).
The filter combination chosen here as an example, which certainly contains data and thus generates graphs, is as follows:
AOI (FRIEN), Year (2017), Crop Type (Winter Wheat), Statistic (Median), Acquisition Mode (A, D), Product (GRD, S2MSI2A), Parameter (VH, VV, NDVI), FID (4).

webapp_final Resulting Web-App after filter selection


It is also possible to filter the data set by date using the time slider and to insert statistical trendlines in the graphs.
The data points can also be coloured according to their FID or acquisition mode, as desired.

Documentation

The documentation of the functions can be found here

rcm_plot's People

Contributors

lawacco avatar markusradam avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.