create_model
Created: 2013-12-10 17:33:08
Last updated: 2014-12-04 15:23:03
Creates a model based on the specified parameters.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Alan R Williams & Renato De Giovanni |
Titles (1)
Descriptions (1)
This workflow uses openModeller to create a model based upon the specified configuration. |
Dependencies (0)
Inputs (9)
Name |
Description |
presence_points_xml |
A string containing newline separated list of presence points in XML.
|
algorithm_xml |
The XML of the algorithm specification.
|
layers |
A string containing a newline separated list of the ids of the layers to be used to create the model.
|
mask_id |
Mask id. Optional. Default value: first layer.
|
spatially_unique |
Filter spatially unique points ("yes" or "no"). Optional. Default value: "no".
|
environmentally_unique |
Filter environmentally unique points ("yes" or "no"). Optional. Default value: "no".
|
absence_points_xml |
A string containing newline separated list of absence points in XML.
|
srs |
Spatial reference system for all points in WKT format. Optional. Default value corresponds to Lat Long WGS84.
|
species_label |
Species name. Optional. Default value: "undefined".
|
Processors (3)
Name |
Type |
Description |
make_xml |
beanshell |
Scriptif ((layers == void) || (layers == null)) {
throw new RuntimeException("The layers parameter must be specified for model creation");
}
if ((algorithm_xml == void) || (algorithm_xml == null)) {
throw new RuntimeException("The algorithm_xml parameter must be specified for model creation");
}
if ((presence_points_xml == void) || (presence_points_xml == null)) {
throw new RuntimeException("The presence_points_xml parameter must be specified for model creation");
}
if ((species_label == void) || (species_label == null)) {
species_label = "undefined";
}
if ((srs == void) || (srs == null)) {
srs = "GEOGCS[\"WGS84\", DATUM[\"WGS84\", SPHEROID[\"WGS84\", 6378137.0, 298.257223563]], PRIMEM[\"Greenwich\", 0.0], UNIT[\"degree\", 0.017453292519943295], AXIS[\"Longitude\",EAST], AXIS[\"Latitude\",NORTH]]";
}
xml = "\n"
+"\n"
+"\n"
+"\n"
+"\n";
int i = 0;
String[] s_layers = layers.split("\n");
String first_layer = "";
for ( i = 0; i < s_layers.length; ++i ) {
if ( s_layers[i].length() > 0 ) {
if (first_layer.length() == 0) {
first_layer = s_layers[i];
}
xml += "\n";
if ( presence_points_xml.length() > 0 ) {
xml += "\n"
+""+srs+"\n"
+presence_points_xml
+"\n";
}
if ( absence_points_xml != void && absence_points_xml != null && absence_points_xml.length() > 0 ) {
xml += "\n"
+""+srs+"\n"
+absence_points_xml
+"\n";
}
xml += "\n"
+algorithm_xml
+"\n";
if (spatially_unique.equals("yes") || environmentally_unique.equals("yes")) {
xml += "\n";
if (environmentally_unique.equals("yes")) {
xml += "\n";
}
if (spatially_unique.equals("yes")) {
xml += "\n";
}
xml += "\n";
}
xml += "\n"
+"\n"
+"\n"; |
call_service |
workflow |
This part is responsible for calling the service to create the model. |
extract_model |
workflow |
This part extracts the resulting model in XML. |
Beanshells (2)
Name |
Description |
Inputs |
Outputs |
make_xml |
|
environmentally_unique
spatially_unique
mask_id
layers
algorithm_xml
presence_points_xml
absence_points_xml
srs
species_label
|
xml
|
checkProgress |
|
input_progress
|
output_progress
|
Outputs (4)
Name |
Description |
log |
Model creation log.
|
model_xml |
Serialized model in XML that can be used as input in other operations.
|
progress |
Model creation progress. Possible values are: 100 (completed), -2 (aborted) or -3 (cancelled).
|
full_serialized_final_model |
Complete XML response after creating a model.
|
Datalinks (15)
Source |
Sink |
environmentally_unique |
make_xml:environmentally_unique |
spatially_unique |
make_xml:spatially_unique |
mask_id |
make_xml:mask_id |
algorithm_xml |
make_xml:algorithm_xml |
layers |
make_xml:layers |
srs |
make_xml:srs |
species_label |
make_xml:species_label |
absence_points_xml |
make_xml:absence_points_xml |
presence_points_xml |
make_xml:presence_points_xml |
make_xml:xml |
call_service:createModel_configuration |
call_service:model_envelope |
extract_model:model_envelope |
call_service:output_log |
log |
extract_model:model_xml |
model_xml |
call_service:output_progress |
progress |
call_service:model_envelope |
full_serialized_final_model |
Coordinations (1)
Controller |
Target |
call_service |
extract_model |
Uploader
Component Validity
Loading
License
All versions of this Workflow are
licensed under:
Version 8
(of 10)
Credits (0)
(People/Groups)
None
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (1)
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(7)
Only the first 2 workflows that use similar services are shown. View all workflows that use these services.
Uploader
Project
get_available_algorithms
(3)
Retrieves all available algorithms from the openModeller web service, returning an XML.
Created: 2013-12-06
| Last updated: 2014-11-04
Uploader
Project
evaluate_model
(9)
Evaluates a model, returning model values for a given set of points and layers.
Created: 2013-12-10
| Last updated: 2014-12-04
Comments (0)
No comments yet
Log in to make a comment