Coder Social home page Coder Social logo

fantaso / farm-simulator Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 25 KB

The project was to develop a crop growth simulator that takes into consideration many factors that would affect the growth and development of any crop.

Python 100.00%
python3 object-oriented-programming inheretence composition design-patterns farm-simulation

farm-simulator's Introduction

farm-simulator

This project intended to siumulate the growth of crops. The idea was to monitor and track changes during the cultivation time to assess and predict yields and risk of crop failures.

Introduction

The project was to develop a crop growth simulator that takes into consideration many factors that would affect the growth and development of any crop.

Those factors considered are:

  • Solar radiation or light intensity
  • Weather variables (air temperature, humidity, atmospheric pressure and wind speed)
  • Soil variables (pH, EC, moisture, temperature, water flow or retention)

Explanation

  • The idea was to be able to check through an application how the real crop that is grown outsite your house or in your farm, meaning that with a pool of sensors contanstly monitoring the crop's weather and soil data and taking pictures of the crops daily would allow to monitor growth of fuits and plant etc and develop a model that can predict crop failures and estimate real-time yields at any moment during the cultivation cycle.

NOTE

  • The farm simulator is currently unfinished and probably no more work will be done at this project for now.
  • The farm simulator currently makes up variables such as nutrients found in the soil, or solar radiation or weather information and applies factors to determine growth and development of the crop just to make the simulator run, however, formulas etc used from the agricultural side are fictional.

EXAMPLE CODE

STEP 1

CREATING USER NAMED "carlos"

carlos = {
	'name'		 : 'Carlos',
	'location'	 : 'Venezuela',
	'email'		 : '[email protected]',
	'birthday'	 : '27-02-1986',
	'mobile'	 : '+491765555555',
	'emailRecovery'	 : '[email protected]',
	}
      
carlos = User(**carlos)

STEP 2

CREATING FARM NAMED "AQUAPONIC"

carlos.farm_new('AQUAPONIC', 'Indonesia')
print(carlos.farms['AQUAPONIC'].info())

STEP 3

USE THE FARMER TO PREPARE A CROP

carlos.farms['AQUAPONIC'].farmer.prepare_crop(10, 'Plum', 5) # (growth area, 'crop', batches for multi harvest)

STEP 4

USE THE FARMER TO START FARM SIMULATION

sim_data = {
		'qtyDays' 	: 180, # this refers to the qty of days that would a tomato to grow from seed until harvest
		'mineralTag'   	: 'Mg',
		'mineralValue' 	: 3,
		'water'		: 250,
		'hours' 	: 10,
			}
carlos.farms['AQUAPONIC'].farmer.sim_time('Plum', **sim_data)

STEP 5

USE THE FARMER TO GET YOU A REPORT OF THE FARM SIMULATION

carlos.farms['AQUAPONIC'].farmer.report('Plum')

farm-simulator's People

Contributors

fantaso avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

suen049

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.