ALMaSS Partridge ODdox
1.1
The partridge model description following ODdox protocol
|
#include <pesticide.h>
Public Member Functions | |
PesticideMap (int a_startyear, int a_noyears, int a_cellsize, Landscape *a_landscape, RasterMap *a_land, bool a_typeofmap) | |
~PesticideMap () | |
bool | DumpPMap (vector< double > *a_map) |
bool | DumpPMapI () |
bool | DumpPMapH () |
bool | DumpPMapF () |
void | Spray (LE *a_element_sprayed, TTypesOfPesticideCategory a_type) |
Protected Attributes | |
vector< double > * | m_pmap_insecticides |
insecticide map data More... | |
vector< double > * | m_pmap_fungicides |
herbicide map data More... | |
vector< double > * | m_pmap_herbicides |
fungicide map data More... | |
int | m_startyear |
first simultion year to record More... | |
int | m_endyear |
last year of data to record More... | |
int | m_cellsize |
the size of the cell for pesticide data in m More... | |
int | m_pmap_width |
based on cellsize the width of the map More... | |
int | m_pmap_height |
based on cellsize the height of the map More... | |
bool | m_typeofmap |
true if using test pesticide, false for general pesticides More... | |
Landscape * | m_OurLandscape |
pointer to the landscape More... | |
RasterMap * | m_Rastermap |
pointer to the landscape map More... | |
Definition at line 369 of file pesticide.h.
PesticideMap::PesticideMap | ( | int | a_startyear, |
int | a_noyears, | ||
int | a_cellsize, | ||
Landscape * | a_landscape, | ||
RasterMap * | a_land, | ||
bool | a_typeofmap | ||
) |
Definition at line 769 of file pesticide.cpp.
PesticideMap::~PesticideMap | ( | ) |
Definition at line 812 of file pesticide.cpp.
bool PesticideMap::DumpPMap | ( | vector< double > * | a_map | ) |
Definition at line 824 of file pesticide.cpp.
References g_date, g_msg, Calendar::GetMonth(), Calendar::GetYear(), MapErrorMsg::Warn(), and WARN_FILE.
Referenced by DumpPMapF(), DumpPMapH(), and DumpPMapI().
|
inline |
|
inline |
|
inline |
void PesticideMap::Spray | ( | LE * | a_element_sprayed, |
TTypesOfPesticideCategory | a_type | ||
) |
This records a 1 in the map for every m2 where pesticide is applied. This does not record drift.
Going through the whole landscape is very slow and unnecessary for small polygons. Since our polygons do not extend beyond the edge of the map ie do not wrap round, then we only need a measure of minx, maxx, miny, maxy. This is set up at the start of the simulation.
This method first determines what type of pesticide and selects the correct map to record on.
Definition at line 854 of file pesticide.cpp.
References fungicide, LE::GetMapIndex(), LE::GetMaxX(), LE::GetMaxY(), LE::GetMinX(), LE::GetMinY(), and herbicide.
|
protected |
the size of the cell for pesticide data in m
Definition at line 387 of file pesticide.h.
|
protected |
last year of data to record
Definition at line 385 of file pesticide.h.
|
protected |
pointer to the landscape
Definition at line 395 of file pesticide.h.
|
protected |
|
protected |
based on cellsize the height of the map
Definition at line 391 of file pesticide.h.
|
protected |
|
protected |
insecticide map data
PesticideMap is a class for handling pesticide mapping output. This can be used to sum up pesticide concentrations over time. It works currently for general pesticides split into insecticides, herbicides, and fungicides, but also for the primary test pesticide if one is being used.
Definition at line 377 of file pesticide.h.
Referenced by DumpPMapI().
|
protected |
based on cellsize the width of the map
Definition at line 389 of file pesticide.h.
|
protected |
pointer to the landscape map
Definition at line 397 of file pesticide.h.
|
protected |
first simultion year to record
Definition at line 383 of file pesticide.h.
|
protected |
true if using test pesticide, false for general pesticides
Definition at line 393 of file pesticide.h.