![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
#include "ls.h"
#include <iostream>
#include <algorithm>
#include <vector>
#include <numeric>
#include <cstdio>
#include <math.h>
#include <fstream>
#include "Pesticide.h"
Macros | |
#define | _CRT_SECURE_NO_DEPRECATE |
#define | CFG_CHANNEL_BITS 8 |
#define | CFG_CHANNEL_MAXVAL (2^CFG_CHANNEL_BITS-1) |
#define | SV_UINT32 unsigned int |
#define | SV_INT32 int |
#define | SV_UINT8 unsigned char |
#define | SV_INT8 char |
Functions | |
Pesticide * | CreatePesticide (Landscape *l) |
Variables | |
CfgBool | l_pest_enable_pesticide_engine ("PEST_ENABLE_PESTICIDE_ENGINE", CFG_CUSTOM, false) |
Used to turn on or off the PPP functionality of ALMaSS. More... | |
CfgBool | l_pest_use_single_nozzle_drift ("PEST_USE_SINGLE_NOZZLE_DRIFT", CFG_CUSTOM, false) |
Uses single nozzle drift result (in for-loop) if true, but uses matrix calculation (Eigen) with Rautmann result if false. More... | |
CfgBool | l_pest_enable_dust_drift ("PEST_ENABLE_DUST_DRIFT", CFG_CUSTOM, false) |
Enable dust drift for granular and seed coating applications. More... | |
CfgInt | l_pest_NoPPPs ("PEST_NO_OF_PPPS", CFG_CUSTOM, 1, 1, 10) |
The number of active Plant Protection Products to be tracked - a performance penalty if enabled with more than necessary (memory heavy) More... | |
static CfgArray_Double | l_pest_ai_half_life ("PEST_AI_HALF_LIFE", CFG_CUSTOM, 10, vector< double >{10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0}) |
Half-life of pesticides for one compartment use. More... | |
static CfgBool | l_pest_driving_slow ("PEST_DRIVING_SLOW", CFG_CUSTOM, false) |
Used to decide the driving speed when spraying pesticides. Driving slow is 7.2 km/h, otherwise 14.4 km/h. More... | |
static CfgInt | l_pest_nozzle_type ("PEST_NOZZLE_TYPE", CFG_CUSTOM, 0, 0, 17) |
The type of nozzle to use for spraying pesticide. Determines the amount of drift. More... | |
CfgFloat | l_pest_zero_threshold ("PEST_ZERO_THRESHOLD", CFG_CUSTOM, 0.000001) |
The threshold for when we consider the pesticide amount negligible (default is 1 microgram per square meter). More... | |
static CfgInt | l_pest_record_grid_size ("PEST_RECORD_GRID_SIZE", CFG_CUSTOM, 100) |
Size of the grid used for recording the pesticide amount in the landscape. More... | |
static CfgBool | l_pest_record_used ("PEST_RECORD_USED", CFG_CUSTOM, false) |
Used to turn on or off saving the pesticide load. More... | |
static CfgBool | l_pest_save_map_daily ("PEST_SAVE_MAP_DAILY", CFG_CUSTOM, false) |
Used to turn on or off saving the pesticide map(s) daily. More... | |
static CfgBool | l_pest_save_all_compartments ("PEST_SAVE_ALL_COMPARTMENTS", CFG_CUSTOM, false) |
Used to turn on or off saving all pesticide compartments in one file for x=l_map_dump_veg_x and y=l_map_dump_veg_y. More... | |
CfgArray_Double | cfg_pest_product_amounts ("PEST_PRODUCT_AMOUNTS", CFG_CUSTOM, 10, vector< double >{10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0}) |
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides. More... | |
CfgArray_Double | cfg_seedcoating_product_amounts ("SEEDCOATING_PRODUCT_AMOUNTS", CFG_CUSTOM, 10, vector< double >{10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0}) |
Amount of seed coating pesticide applied in grams of active substance per hectare for each of the 10 pesticides. More... | |
CfgBool | cfg_seedcoating_beans_on ("SEEDCOATING_BEANS_ON", CFG_CUSTOM, false) |
Turn on seed coating for beans. More... | |
CfgBool | cfg_seedcoating_beet_on ("SEEDCOATING_BEET_ON", CFG_CUSTOM, false) |
Turn on seed coating for beet. More... | |
CfgBool | cfg_seedcoating_carrots_on ("SEEDCOATING_CARROTS_ON", CFG_CUSTOM, false) |
Turn on seed coating for carrots. More... | |
CfgBool | cfg_seedcoating_lucerne_on ("SEEDCOATING_LUCERNE_ON", CFG_CUSTOM, false) |
Turn on seed coating for lucerne. More... | |
CfgBool | cfg_seedcoating_maize_on ("SEEDCOATING_MAIZE_ON", CFG_CUSTOM, false) |
Turn on seed coating for maize. More... | |
CfgBool | cfg_seedcoating_potatoes_on ("SEEDCOATING_POTATOES_ON", CFG_CUSTOM, false) |
Turn on seed coating for potatoes. More... | |
CfgBool | cfg_seedcoating_springbarley_on ("SEEDCOATING_SPRINGBARLEY_ON", CFG_CUSTOM, false) |
Turn on seed coating for spring barley. More... | |
CfgBool | cfg_seedcoating_springwheat_on ("SEEDCOATING_SPRINGWHEAT_ON", CFG_CUSTOM, false) |
Turn on seed coating for spring wheat. More... | |
CfgBool | cfg_seedcoating_winterbarley_on ("SEEDCOATING_WINTERBARLEY_ON", CFG_CUSTOM, false) |
Turn on seed coating for winter barley. More... | |
CfgBool | cfg_seedcoating_winterrape_on ("SEEDCOATING_WINTERRAPE_ON", CFG_CUSTOM, false) |
Turn on seed coating for winter rape. More... | |
CfgBool | cfg_seedcoating_winterrye_on ("SEEDCOATING_WINTERRYE_ON", CFG_CUSTOM, false) |
Turn on seed coating for winter rye. More... | |
CfgBool | cfg_seedcoating_wintertriticale_on ("SEEDCOATING_WINTERTRITICALE_ON", CFG_CUSTOM, false) |
Turn on seed coating for winter triticale. More... | |
CfgBool | cfg_seedcoating_winterwheat_on ("SEEDCOATING_WINTERWHEAT_ON", CFG_CUSTOM, false) |
Turn on seed coating for winter wheat. More... | |
CfgFloat | l_pest_daily_mort ("PEST_DAILY_MORTALITY", CFG_CUSTOM, 0.25) |
Daily mortality of pesticide with type 1. More... | |
CfgFloat | l_pest_daily_mort_2 ("PEST_DAILY_MORTALITY_TWO", CFG_CUSTOM, 0.25) |
Daily mortality of pesticide with type 2. More... | |
CfgFloat | l_pest_trigger_threshold1 ("PEST_TRIGGER_THRESHOLD_ONE", CFG_CUSTOM, 1.0) |
This is a trigger value that can be used to trigger pesticides effects. Currently not used? More... | |
CfgFloat | l_pest_trigger_threshold2 ("PEST_TRIGGER_THRESHOLD_TWO", CFG_CUSTOM, 1.0) |
This is a trigger value that can be used to trigger pesticides effects. Currently not used? More... | |
CfgInt | cfg_pest_productapplic_startdate ("PEST_PRODUCTAPPLIC_STARTDATE", CFG_CUSTOM, -1) |
Start date for applying pesticide the first time. More... | |
CfgInt | cfg_pest_productapplic_startdate2 ("PEST_PRODUCTAPPLIC_STARTDATE_TWO", CFG_CUSTOM,-1) |
Start date for applying pesticide the second. More... | |
CfgInt | cfg_pest_productapplic_startdate3 ("PEST_PRODUCTAPPLIC_STARTDATE_THREE", CFG_CUSTOM,-1) |
Start date for applying pesticide the third time. More... | |
CfgInt | cfg_pest_productapplic_period ("PEST_PRODUCTAPPLIC_PERIOD", CFG_CUSTOM, 1) |
Period for applying pesticide. More... | |
CfgBool | cfg_pest_residue_or_rate ("PEST_RESIDUE_OR_RATE", CFG_CUSTOM, true) |
Use residue or rate. Used in Vole code. More... | |
CfgBool | cfg_pest_asparagus_on ("PEST_ASPARAGUS_ON", CFG_CUSTOM, false) |
Turn on pesticides for asparagus. More... | |
CfgBool | cfg_pest_beans_on ("PEST_BEANS_ON", CFG_CUSTOM, false) |
Turn on pesticides for beans. More... | |
CfgBool | cfg_pest_beet_on ("PEST_BEET_ON", CFG_CUSTOM, false) |
Turn on pesticides for beet. More... | |
CfgBool | cfg_pest_bushfruit_on ("PEST_BUSHFRUIT_ON", CFG_CUSTOM, false) |
Turn on pesticides for bush fruit. More... | |
CfgBool | cfg_pest_cabbage_on ("PEST_CABBAGE_ON", CFG_CUSTOM, false) |
Turn on pesticides for cabbage. More... | |
CfgBool | cfg_pest_caraway_on ("PEST_CARAWAY_ON", CFG_CUSTOM, false) |
Turn on pesticides for caraway. More... | |
CfgBool | cfg_pest_carrots_on ("PEST_CARROTS_ON", CFG_CUSTOM, false) |
Turn on pesticides for carrots. More... | |
CfgBool | cfg_pest_grass_on ("PEST_GRASS_ON", CFG_CUSTOM, false) |
Turn on pesticides for grass. More... | |
CfgBool | cfg_pest_maize_on ("PEST_MAIZE_ON", CFG_CUSTOM, false) |
Turn on pesticides for maize. More... | |
CfgBool | cfg_pest_orchard_on ("PEST_ORCHARD_ON", CFG_CUSTOM, false) |
Turn on pesticides for orchard. More... | |
CfgBool | cfg_pest_peas_on ("PEST_PEAS_ON", CFG_CUSTOM, false) |
Turn on pesticides for peas. More... | |
CfgBool | cfg_pest_potatoes_on ("PEST_POTATOES_ON", CFG_CUSTOM, false) |
Turn on pesticides for potatoes. More... | |
CfgBool | cfg_pest_SBS_ERA ("PEST_SBS_ERA", CFG_CUSTOM, false) |
Turn on pesticides for spring barley silage. More... | |
CfgBool | cfg_pest_springbarley_on ("PEST_SPRINGBARLEY_ON", CFG_CUSTOM, false) |
Turn on pesticides for spring barley. More... | |
CfgBool | cfg_pest_oats_on ("PEST_SPRINGOATS_ON", CFG_CUSTOM, false) |
Turn on pesticides for spring oats. More... | |
CfgBool | cfg_pest_springrape_on ("PEST_SPRINGRAPE_ON", CFG_CUSTOM, false) |
Turn on pesticides for spring rape. More... | |
CfgBool | cfg_pest_springrye_on ("PEST_SPRINGRYE_ON", CFG_CUSTOM, false) |
Turn on pesticides for spring rye. More... | |
CfgBool | cfg_pest_springwheat_on ("PEST_SPRINGWHEAT_ON", CFG_CUSTOM, false) |
Turn on pesticides for spring wheat. More... | |
CfgBool | cfg_pest_sunflower_on ("PEST_SUNFLOWER_ON", CFG_CUSTOM, false) |
Turn on pesticides for sunflower. More... | |
CfgBool | cfg_pest_tulips_on ("PEST_TULIPS_ON", CFG_CUSTOM, false) |
Turn on pesticides for tulips. More... | |
CfgBool | cfg_pest_turniprape_on ("PEST_TURNIPRAPE_ON", CFG_CUSTOM, false) |
Turn on pesticides for turnip rape. More... | |
CfgBool | cfg_pest_vineyard_on ("PEST_VINEYARD_ON", CFG_CUSTOM, false) |
Turn on pesticides for wineyard. More... | |
CfgBool | cfg_pest_veg_on ("PEST_VEG_ON", CFG_CUSTOM, false) |
Turn on pesticides for mixed vegetables. More... | |
CfgBool | cfg_pest_winterbarley_on ("PEST_WINTERBARLEY_ON", CFG_CUSTOM, false) |
Turn on pesticides for winter barley. More... | |
CfgBool | cfg_pest_winterrape_on ("PEST_WINTERRAPE_ON", CFG_CUSTOM, false) |
Turn on pesticides for winter rape. More... | |
CfgBool | cfg_pest_winterrye_on ("PEST_WINTERRYE_ON", CFG_CUSTOM, false) |
Turn on pesticides for winter rye. More... | |
CfgBool | cfg_pest_wintertriticale_on ("PEST_WINTERTRITICALE_ON", CFG_CUSTOM, false) |
Turn on pesticides for winter triticale. More... | |
CfgBool | cfg_pest_winterwheat_on ("PEST_WINTERWHEAT_ON", CFG_CUSTOM, false) |
Turn on pesticides for winter wheat. More... | |
class Pesticide * | g_pest |
Landscape * | g_land |
Landscape * | g_landscape_ptr |
CfgFloat | cfg_beer_law_extinction_coef |
The extiction coefficient that is used in Beer's law. More... | |
CfgInt | l_map_dump_veg_x |
CfgInt | l_map_dump_veg_y |
#define _CRT_SECURE_NO_DEPRECATE |
#define CFG_CHANNEL_BITS 8 |
#define CFG_CHANNEL_MAXVAL (2^CFG_CHANNEL_BITS-1) |
#define SV_INT32 int |
#define SV_INT8 char |
#define SV_UINT32 unsigned int |
#define SV_UINT8 unsigned char |
CfgFloat cfg_beer_law_extinction_coef |
The extiction coefficient that is used in Beer's law.
Referenced by VegElement::RecalculateBugsNStuff().
CfgBool cfg_pest_asparagus_on("PEST_ASPARAGUS_ON", CFG_CUSTOM, false) |
Turn on pesticides for asparagus.
Referenced by DE_AsparagusEstablishedPlantation::Do().
CfgBool cfg_pest_beans_on("PEST_BEANS_ON", CFG_CUSTOM, false) |
Turn on pesticides for beans.
Referenced by DK_Legume_Beans::Do(), and PLBeans::Do().
CfgBool cfg_pest_beet_on("PEST_BEET_ON", CFG_CUSTOM, false) |
Turn on pesticides for beet.
Referenced by DK_FodderBeet::Do(), DK_SugarBeet::Do(), PLBeetSpr::Do(), PLBeet::Do(), and DE_SugarBeet::Do().
CfgBool cfg_pest_bushfruit_on("PEST_BUSHFRUIT_ON", CFG_CUSTOM, false) |
Turn on pesticides for bush fruit.
Referenced by DE_BushFruitPerm::Do(), DK_BushFruit_Perm1::Do(), and DK_BushFruit_Perm2::Do().
CfgBool cfg_pest_cabbage_on("PEST_CABBAGE_ON", CFG_CUSTOM, false) |
Turn on pesticides for cabbage.
Referenced by NLCabbageSpring::Do(), NLCabbage::Do(), DK_Cabbages::Do(), and DE_Cabbage::Do().
CfgBool cfg_pest_caraway_on("PEST_CARAWAY_ON", CFG_CUSTOM, false) |
Turn on pesticides for caraway.
Referenced by FI_Caraway2::Do().
CfgBool cfg_pest_carrots_on("PEST_CARROTS_ON", CFG_CUSTOM, false) |
Turn on pesticides for carrots.
Referenced by DK_Carrots_Spring::Do(), and DK_Carrots::Do().
CfgBool cfg_pest_grass_on("PEST_GRASS_ON", CFG_CUSTOM, false) |
Turn on pesticides for grass.
Referenced by DK_WinterFodderGrass::Do(), DK_WinterCloverGrassGrazedSown::Do(), DK_SpringFodderGrass::Do(), DK_CloverGrassGrazed3::Do(), and DK_CloverGrassGrazed2::Do().
CfgBool cfg_pest_maize_on("PEST_MAIZE_ON", CFG_CUSTOM, false) |
Turn on pesticides for maize.
Referenced by DE_Maize::Do(), DE_MaizeSilage::Do(), FR_Maize_Silage::Do(), FR_Maize::Do(), PLMaizeSilage::Do(), and PLMaize::Do().
CfgBool cfg_pest_oats_on("PEST_SPRINGOATS_ON", CFG_CUSTOM, false) |
Turn on pesticides for spring oats.
Referenced by DK_SpringOats::Do(), DK_SpringOats_CC::Do(), FR_SpringOats::Do(), FI_SpringOats::Do(), and DE_Oats::Do().
CfgBool cfg_pest_orchard_on("PEST_ORCHARD_ON", CFG_CUSTOM, false) |
Turn on pesticides for orchard.
Referenced by BEOrchardCrop::Do(), NLOrchardCrop::Do(), DE_Orchard::Do(), DK_OrchCherry::Do(), DK_OrchPear::Do(), DK_OrchardCrop_Perm::Do(), DK_OrchApple::Do(), and DK_OrchOther::Do().
CfgBool cfg_pest_peas_on("PEST_PEAS_ON", CFG_CUSTOM, false) |
Turn on pesticides for peas.
Referenced by DK_Legume_Peas::Do(), DK_Legume_Whole::Do(), DE_Legumes::Do(), and DE_Peas::Do().
CfgBool cfg_pest_potatoes_on("PEST_POTATOES_ON", CFG_CUSTOM, false) |
Turn on pesticides for potatoes.
Referenced by FI_Potato_North::Do(), FI_StarchPotato_North::Do(), FI_PotatoIndustry_North::Do(), FI_Potato_South::Do(), FI_PotatoIndustry_South::Do(), FI_StarchPotato_South::Do(), DK_Potato::Do(), UKPotatoes::Do(), BEPotatoesSpring::Do(), DK_PotatoSeed::Do(), DK_PotatoIndustry::Do(), NLPotatoesSpring::Do(), BEPotatoes::Do(), NLPotatoes::Do(), PLPotatoes::Do(), FR_Potatoes::Do(), DE_Potatoes::Do(), and DE_PotatoesIndustry::Do().
CfgArray_Double cfg_pest_product_amounts("PEST_PRODUCT_AMOUNTS", CFG_CUSTOM, 10, vector< double >{10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0}) |
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.
Referenced by OrchardCrop::Do(), DK_CerealLegume::Do(), DK_CerealLegume_Whole::Do(), CloverGrassGrazed2::Do(), DK_Legume_Peas::Do(), FodderGrass::Do(), DK_SpringBarley_Green::Do(), CloverGrassGrazed1::Do(), BEOrchardCrop::Do(), DK_SpringBarleySilage::Do(), DK_FodderBeet::Do(), NLOrchardCrop::Do(), DK_Legume_Beans::Do(), DK_SpringOats::Do(), DK_SpringOats_CC::Do(), DK_SugarBeet::Do(), UKBeans::Do(), DK_SpringWheat::Do(), DK_Legume_Whole::Do(), FI_Potato_North::Do(), FI_StarchPotato_North::Do(), FI_PotatoIndustry_North::Do(), SpringBarleyCloverGrass::Do(), FI_Potato_South::Do(), FI_PotatoIndustry_South::Do(), FI_StarchPotato_South::Do(), DK_SpringBarleyCloverGrass::Do(), DK_WinterFodderGrass::Do(), UKSpringBarley::Do(), UKWinterBarley::Do(), DK_SpringBarley::Do(), DK_SpringBarley_CC::Do(), DK_SpringFodderGrass::Do(), DK_WinterCloverGrassGrazedSown::Do(), BEWinterBarley::Do(), BEWinterBarleyCC::Do(), NLCabbageSpring::Do(), NLSpringBarleySpring::Do(), BEWinterWheat::Do(), BEWinterWheatCC::Do(), DK_VegSeeds::Do(), DK_WinterRye::Do(), DK_WinterRye_CC::Do(), DK_Carrots_Spring::Do(), NLCabbage::Do(), DK_Carrots::Do(), UKWinterWheat::Do(), SpringBarleySpr::Do(), SpringBarleySilage::Do(), SpringBarleyPTreatment::Do(), DK_Cabbages::Do(), TestCrop::Do(), NLSpringBarley::Do(), NLWinterWheat::Do(), PLSpringBarleySpr::Do(), DK_WinterWheat::Do(), DK_WinterWheat_CC::Do(), SpringBarley::Do(), UKPotatoes::Do(), DK_Potato::Do(), FI_Caraway2::Do(), SpringRape::Do(), DK_MixedVeg::Do(), PLBeetSpr::Do(), PLBeans::Do(), DK_WinterRape::Do(), DK_PotatoSeed::Do(), BEPotatoesSpring::Do(), WinterRape::Do(), DE_BushFruitPerm::Do(), DE_Maize::Do(), DK_PotatoIndustry::Do(), FR_SpringBarley::Do(), DE_MaizeSilage::Do(), FR_SpringOats::Do(), NLPotatoesSpring::Do(), DE_SpringBarley::Do(), BEPotatoes::Do(), FI_TurnipRape::Do(), FR_Maize_Silage::Do(), DE_AsparagusEstablishedPlantation::Do(), FR_Maize::Do(), NLPotatoes::Do(), PLMaizeSilage::Do(), PLMaize::Do(), PLSpringBarley::Do(), FI_SpringRape::Do(), NLTulips::Do(), DE_Peas::Do(), FI_SpringBarley_Malt::Do(), FR_Sunflower::Do(), PLWinterTriticale::Do(), DE_Legumes::Do(), DE_WinterRye::Do(), PLBeet::Do(), PLWinterWheat::Do(), FI_SpringWheat::Do(), PLWinterBarley::Do(), FI_SprSpringBarley_Fodder::Do(), DK_CloverGrassGrazed3::Do(), PLSpringWheat::Do(), FI_SpringOats::Do(), DK_CloverGrassGrazed2::Do(), PLWinterWheatLate::Do(), FI_SpringBarley_Fodder::Do(), PLPotatoes::Do(), DK_BushFruit_Perm1::Do(), DE_Oats::Do(), FR_SpringWheat::Do(), DE_Cabbage::Do(), DE_WinterBarley::Do(), DE_SpringRye::Do(), PLWinterRape::Do(), PTVineyards::Do(), FR_WinterBarley::Do(), FI_WinterWheat::Do(), DK_BushFruit_Perm2::Do(), FI_WinterRye::Do(), FR_WinterWheat::Do(), DE_Triticale::Do(), DE_WinterWheatLate::Do(), DE_WinterWheat::Do(), FR_WinterRape::Do(), FR_Potatoes::Do(), DE_WinterRape::Do(), DE_Orchard::Do(), WinterWheat::Do(), DE_SugarBeet::Do(), DK_OrchCherry::Do(), DE_Potatoes::Do(), DK_OrchPear::Do(), DK_OrchOther::Do(), DK_OrchardCrop_Perm::Do(), DK_OrchApple::Do(), DE_PotatoesIndustry::Do(), and Osmia_Population_Manager::Osmia_Population_Manager().
CfgInt cfg_pest_productapplic_period("PEST_PRODUCTAPPLIC_PERIOD", CFG_CUSTOM, 1) |
Period for applying pesticide.
Referenced by CloverGrassGrazed2::Do(), FodderGrass::Do(), CloverGrassGrazed1::Do(), SpringRape::Do(), and WinterRape::Do().
CfgInt cfg_pest_productapplic_startdate("PEST_PRODUCTAPPLIC_STARTDATE", CFG_CUSTOM, -1) |
Start date for applying pesticide the first time.
Referenced by OrchardCrop::Do(), CloverGrassGrazed2::Do(), FodderGrass::Do(), CloverGrassGrazed1::Do(), SpringRape::Do(), WinterRape::Do(), Orchard::DoDevelopment(), and OrchardBand::DoDevelopment().
CfgInt cfg_pest_productapplic_startdate2("PEST_PRODUCTAPPLIC_STARTDATE_TWO", CFG_CUSTOM,-1) |
Start date for applying pesticide the second.
Referenced by OrchardCrop::Do(), Orchard::DoDevelopment(), and OrchardBand::DoDevelopment().
CfgInt cfg_pest_productapplic_startdate3("PEST_PRODUCTAPPLIC_STARTDATE_THREE", CFG_CUSTOM,-1) |
Start date for applying pesticide the third time.
Referenced by Orchard::DoDevelopment(), and OrchardBand::DoDevelopment().
CfgBool cfg_pest_residue_or_rate("PEST_RESIDUE_OR_RATE", CFG_CUSTOM, true) |
Use residue or rate. Used in Vole code.
CfgBool cfg_pest_SBS_ERA("PEST_SBS_ERA", CFG_CUSTOM, false) |
Turn on pesticides for spring barley silage.
Referenced by SpringBarleySilage::Do().
CfgBool cfg_pest_springbarley_on("PEST_SPRINGBARLEY_ON", CFG_CUSTOM, false) |
Turn on pesticides for spring barley.
Referenced by DK_CerealLegume::Do(), DK_CerealLegume_Whole::Do(), DK_SpringBarley_Green::Do(), DK_SpringBarleySilage::Do(), UKBeans::Do(), SpringBarleyCloverGrass::Do(), DK_SpringBarleyCloverGrass::Do(), UKSpringBarley::Do(), DK_SpringBarley::Do(), DK_SpringBarley_CC::Do(), NLSpringBarleySpring::Do(), SpringBarleySilage::Do(), SpringBarleySpr::Do(), NLSpringBarley::Do(), PLSpringBarleySpr::Do(), SpringBarley::Do(), FR_SpringBarley::Do(), DE_SpringBarley::Do(), PLSpringBarley::Do(), FI_SpringBarley_Malt::Do(), FI_SprSpringBarley_Fodder::Do(), and FI_SpringBarley_Fodder::Do().
CfgBool cfg_pest_springrape_on("PEST_SPRINGRAPE_ON", CFG_CUSTOM, false) |
Turn on pesticides for spring rape.
Referenced by FI_SpringRape::Do().
CfgBool cfg_pest_springrye_on("PEST_SPRINGRYE_ON", CFG_CUSTOM, false) |
Turn on pesticides for spring rye.
Referenced by DE_SpringRye::Do().
CfgBool cfg_pest_springwheat_on("PEST_SPRINGWHEAT_ON", CFG_CUSTOM, false) |
Turn on pesticides for spring wheat.
Referenced by DK_SpringWheat::Do(), FI_SpringWheat::Do(), PLSpringWheat::Do(), and FR_SpringWheat::Do().
CfgBool cfg_pest_sunflower_on("PEST_SUNFLOWER_ON", CFG_CUSTOM, false) |
Turn on pesticides for sunflower.
Referenced by FR_Sunflower::Do().
CfgBool cfg_pest_tulips_on("PEST_TULIPS_ON", CFG_CUSTOM, false) |
Turn on pesticides for tulips.
Referenced by NLTulips::Do().
CfgBool cfg_pest_turniprape_on("PEST_TURNIPRAPE_ON", CFG_CUSTOM, false) |
Turn on pesticides for turnip rape.
Referenced by FI_TurnipRape::Do().
CfgBool cfg_pest_veg_on("PEST_VEG_ON", CFG_CUSTOM, false) |
Turn on pesticides for mixed vegetables.
Referenced by DK_VegSeeds::Do(), and DK_MixedVeg::Do().
CfgBool cfg_pest_vineyard_on("PEST_VINEYARD_ON", CFG_CUSTOM, false) |
Turn on pesticides for wineyard.
Referenced by PTVineyards::Do().
CfgBool cfg_pest_winterbarley_on("PEST_WINTERBARLEY_ON", CFG_CUSTOM, false) |
Turn on pesticides for winter barley.
Referenced by UKWinterBarley::Do(), BEWinterBarleyCC::Do(), BEWinterBarley::Do(), PLWinterBarley::Do(), DE_WinterBarley::Do(), and FR_WinterBarley::Do().
CfgBool cfg_pest_winterrape_on("PEST_WINTERRAPE_ON", CFG_CUSTOM, false) |
Turn on pesticides for winter rape.
Referenced by DK_WinterRape::Do(), WinterRape::Do(), PLWinterRape::Do(), FR_WinterRape::Do(), and DE_WinterRape::Do().
CfgBool cfg_pest_winterrye_on("PEST_WINTERRYE_ON", CFG_CUSTOM, false) |
Turn on pesticides for winter rye.
Referenced by DK_WinterRye::Do(), DK_WinterRye_CC::Do(), DE_WinterRye::Do(), and FI_WinterRye::Do().
CfgBool cfg_pest_wintertriticale_on("PEST_WINTERTRITICALE_ON", CFG_CUSTOM, false) |
Turn on pesticides for winter triticale.
Referenced by PLWinterTriticale::Do(), and DE_Triticale::Do().
CfgBool cfg_pest_winterwheat_on("PEST_WINTERWHEAT_ON", CFG_CUSTOM, false) |
Turn on pesticides for winter wheat.
Referenced by BEWinterWheat::Do(), BEWinterWheatCC::Do(), UKWinterWheat::Do(), TestCrop::Do(), NLWinterWheat::Do(), DK_WinterWheat::Do(), DK_WinterWheat_CC::Do(), PLWinterWheat::Do(), PLWinterWheatLate::Do(), FI_WinterWheat::Do(), DE_WinterWheatLate::Do(), FR_WinterWheat::Do(), DE_WinterWheat::Do(), and WinterWheat::Do().
CfgBool cfg_seedcoating_beans_on("SEEDCOATING_BEANS_ON", CFG_CUSTOM, false) |
Turn on seed coating for beans.
Referenced by PLBeans::Do().
CfgBool cfg_seedcoating_beet_on("SEEDCOATING_BEET_ON", CFG_CUSTOM, false) |
Turn on seed coating for beet.
Referenced by PLBeetSpr::Do(), and PLBeet::Do().
CfgBool cfg_seedcoating_carrots_on("SEEDCOATING_CARROTS_ON", CFG_CUSTOM, false) |
Turn on seed coating for carrots.
Referenced by PLCarrots::Do().
CfgBool cfg_seedcoating_lucerne_on("SEEDCOATING_LUCERNE_ON", CFG_CUSTOM, false) |
Turn on seed coating for lucerne.
Referenced by PLFodderLucerne1::Do().
CfgBool cfg_seedcoating_maize_on("SEEDCOATING_MAIZE_ON", CFG_CUSTOM, false) |
Turn on seed coating for maize.
Referenced by PLMaize::Do(), and PLMaizeSilage::Do().
CfgBool cfg_seedcoating_potatoes_on("SEEDCOATING_POTATOES_ON", CFG_CUSTOM, false) |
Turn on seed coating for potatoes.
Referenced by PLPotatoes::Do().
CfgArray_Double cfg_seedcoating_product_amounts("SEEDCOATING_PRODUCT_AMOUNTS", CFG_CUSTOM, 10, vector< double >{10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0}) |
Amount of seed coating pesticide applied in grams of active substance per hectare for each of the 10 pesticides.
Referenced by PLCarrots::Do(), PLSpringBarleySpr::Do(), PLFodderLucerne1::Do(), PLBeetSpr::Do(), PLBeans::Do(), WinterRape::Do(), PLWinterRye::Do(), PLSpringBarley::Do(), PLMaize::Do(), PLMaizeSilage::Do(), PLWinterTriticale::Do(), PLWinterWheat::Do(), PLBeet::Do(), PLWinterBarley::Do(), PLWinterWheatLate::Do(), PLSpringWheat::Do(), PLPotatoes::Do(), PLWinterRape::Do(), and WinterWheat::Do().
CfgBool cfg_seedcoating_springbarley_on("SEEDCOATING_SPRINGBARLEY_ON", CFG_CUSTOM, false) |
Turn on seed coating for spring barley.
Referenced by PLSpringBarleySpr::Do(), and PLSpringBarley::Do().
CfgBool cfg_seedcoating_springwheat_on("SEEDCOATING_SPRINGWHEAT_ON", CFG_CUSTOM, false) |
Turn on seed coating for spring wheat.
Referenced by PLSpringWheat::Do().
CfgBool cfg_seedcoating_winterbarley_on("SEEDCOATING_WINTERBARLEY_ON", CFG_CUSTOM, false) |
Turn on seed coating for winter barley.
Referenced by PLWinterBarley::Do().
CfgBool cfg_seedcoating_winterrape_on("SEEDCOATING_WINTERRAPE_ON", CFG_CUSTOM, false) |
Turn on seed coating for winter rape.
Referenced by WinterRape::Do(), and PLWinterRape::Do().
CfgBool cfg_seedcoating_winterrye_on("SEEDCOATING_WINTERRYE_ON", CFG_CUSTOM, false) |
Turn on seed coating for winter rye.
Referenced by PLWinterRye::Do().
CfgBool cfg_seedcoating_wintertriticale_on("SEEDCOATING_WINTERTRITICALE_ON", CFG_CUSTOM, false) |
Turn on seed coating for winter triticale.
Referenced by PLWinterTriticale::Do().
CfgBool cfg_seedcoating_winterwheat_on("SEEDCOATING_WINTERWHEAT_ON", CFG_CUSTOM, false) |
Turn on seed coating for winter wheat.
Referenced by PLWinterWheat::Do(), PLWinterWheatLate::Do(), and WinterWheat::Do().
Landscape* g_land |
Referenced by Pesticide::Tick().
Landscape* g_landscape_ptr |
class Pesticide* g_pest |
Referenced by Farm::AutumnSow(), Farm::AutumnSowWithFerti(), Farm::BulbHarvest(), CloseDownSim(), CreatePesticide(), FlowerStrip::Cutting(), FieldBoundary::Cutting(), RoadsideVerge::Cutting(), Orchard::Cutting(), MownGrassStrip::Cutting(), Orchard::DoDevelopment(), OrchardBand::DoDevelopment(), VegElement::GrazeVegetation(), VegElement::GrazeVegetationHeight(), Farm::Harvest(), Farm::HarvestLong(), main(), Farm::PreseedingCultivatorSow(), Farm::ProductApplication(), Farm::ProductApplication_DateLimited(), VegElement::ReduceVeg(), VegElement::ReduceVeg_Extended(), Farm::SpringSow(), Farm::SpringSowWithFerti(), Farm::StriglingSow(), Landscape::SupplyPesticide(), Landscape::SupplyPesticideDecay(), Landscape::SupplyPesticideInPlant(), Landscape::SupplyPesticideNectar(), Landscape::SupplyPesticideP(), Landscape::SupplyPesticidePlantSurface(), Landscape::SupplyPesticidePollen(), Landscape::SupplyPesticideS(), Landscape::SupplySeedCoating(), Landscape::Tick(), and VegElement::ZeroVeg().
CfgInt l_map_dump_veg_x |
Referenced by Pesticide::Tick(), and Landscape::Tick().
CfgInt l_map_dump_veg_y |
Referenced by Pesticide::Tick(), and Landscape::Tick().
|
static |
Half-life of pesticides for one compartment use.
Referenced by Pesticide::Tick().
CfgFloat l_pest_daily_mort("PEST_DAILY_MORTALITY", CFG_CUSTOM, 0.25) |
Daily mortality of pesticide with type 1.
Referenced by Hare_Male::GeneralOrganoPhosphate(), and Hare_Female::GeneralOrganoPhosphate().
CfgFloat l_pest_daily_mort_2("PEST_DAILY_MORTALITY_TWO", CFG_CUSTOM, 0.25) |
Daily mortality of pesticide with type 2.
|
static |
Used to decide the driving speed when spraying pesticides. Driving slow is 7.2 km/h, otherwise 14.4 km/h.
Referenced by Pesticide::DiffusionVectorInit().
CfgBool l_pest_enable_dust_drift("PEST_ENABLE_DUST_DRIFT", CFG_CUSTOM, false) |
Enable dust drift for granular and seed coating applications.
Referenced by Pesticide::AddGranularPesticide().
CfgBool l_pest_enable_pesticide_engine("PEST_ENABLE_PESTICIDE_ENGINE", CFG_CUSTOM, false) |
Used to turn on or off the PPP functionality of ALMaSS.
Referenced by Pesticide::DecreaseVegetationPesticide(), TAnimal::KillThis(), Pesticide::Pesticide(), PesticideStore::PesticideStore(), PesticideToxicity::PesticideToxicity(), Pesticide::ReducePlantPesticide(), Pesticide::RemovePlantPesticide(), Osmia_Female::st_ReproductiveBehaviour(), Landscape::SupplyOverspray(), Landscape::SupplyPesticide(), Landscape::SupplyPesticideInPlant(), Landscape::SupplyPesticideNectar(), Landscape::SupplyPesticideP(), Landscape::SupplyPesticidePlantSurface(), Landscape::SupplyPesticidePollen(), Landscape::SupplyPesticideS(), Landscape::SupplySeedCoating(), TAnimal::TAnimal(), PesticideStore::tick(), PesticideToxicity::tick(), Pesticide::Tick(), and Landscape::Tick().
CfgInt l_pest_NoPPPs("PEST_NO_OF_PPPS", CFG_CUSTOM, 1, 1, 10) |
The number of active Plant Protection Products to be tracked - a performance penalty if enabled with more than necessary (memory heavy)
Referenced by PesticideStore::addPesticide(), PesticideToxicity::doContact(), PesticideStore::doDecay(), PesticideToxicity::doToxicity(), PesticideToxicity::eatingFromStorePest(), Osmia_Female::LayEgg(), Pesticide::Pesticide(), PesticideStore::PesticideStore(), PesticideStore::reset(), PesticideToxicity::reset(), and Osmia_Female::st_ReproductiveBehaviour().
|
static |
The type of nozzle to use for spraying pesticide. Determines the amount of drift.
Referenced by Pesticide::DiffusionVectorInit().
|
static |
Size of the grid used for recording the pesticide amount in the landscape.
Referenced by Pesticide::Pesticide(), Pesticide::RecordPesticideLoad(), and Pesticide::RecordPesticideMap().
|
static |
Used to turn on or off saving the pesticide load.
Referenced by Pesticide::DiffusionSprayPixel(), Pesticide::Pesticide(), and Pesticide::Tick().
|
static |
Used to turn on or off saving all pesticide compartments in one file for x=l_map_dump_veg_x and y=l_map_dump_veg_y.
Referenced by Pesticide::Pesticide(), and Pesticide::Tick().
|
static |
Used to turn on or off saving the pesticide map(s) daily.
Referenced by Pesticide::Pesticide(), and Pesticide::Tick().
CfgFloat l_pest_trigger_threshold1("PEST_TRIGGER_THRESHOLD_ONE", CFG_CUSTOM, 1.0) |
This is a trigger value that can be used to trigger pesticides effects. Currently not used?
CfgFloat l_pest_trigger_threshold2("PEST_TRIGGER_THRESHOLD_TWO", CFG_CUSTOM, 1.0) |
This is a trigger value that can be used to trigger pesticides effects. Currently not used?
CfgBool l_pest_use_single_nozzle_drift("PEST_USE_SINGLE_NOZZLE_DRIFT", CFG_CUSTOM, false) |
Uses single nozzle drift result (in for-loop) if true, but uses matrix calculation (Eigen) with Rautmann result if false.
Referenced by Pesticide::DailyQueueProcess(), and Pesticide::Pesticide().
CfgFloat l_pest_zero_threshold("PEST_ZERO_THRESHOLD", CFG_CUSTOM, 0.000001) |
The threshold for when we consider the pesticide amount negligible (default is 1 microgram per square meter).
The number of pesticide types used, the maximum value is 10.
Referenced by PesticideStore::doDecay(), and Pesticide::MainMapDecay().