44 int windEvent(
double windspeed,
double winddirection,
int max_iteration,
bool simulate=
false,
int iteration=-1);
46 bool gridToFile(QString grid_type, QString file_name);
48 QJSValue
grid(QString type);
The WindModule is the main object of the iLand wind module.
Definition: windmodule.h:95
Definition: windscript.h:29
void initialize()
initialize/ reset the wind module
Definition: windscript.cpp:79
WindScript(QObject *parent=0)
Definition: windscript.cpp:26
void setModule(WindModule *module)
Definition: windscript.h:33
bool gridToFile(QString grid_type, QString file_name)
create a "ESRI-grid" text file 'grid_type' is one of a fixed list of names, 'file_name' the ouptut fi...
Definition: windscript.cpp:47
int damagedArea(int threshold, QString fileName)
number of damaged pixels with a patchsize>'threshold'; save to grid to "fileName" (if not empty)
Definition: windscript.cpp:97
int windEvent(double windspeed, double winddirection, int max_iteration, bool simulate=false, int iteration=-1)
trigger a wind event from javascript.
Definition: windscript.cpp:32
QJSValue grid(QString type)
returns a ScriptGrid with the requested type
Definition: windscript.cpp:66
void initializeEdgeAge(int years)
initialize/reset the age of edges
Definition: windscript.cpp:85