1
|
1 <tool id="raster_getdata" name="Get climatic data from Worldclim" version="0.1.0">
|
|
2 <requirements>
|
|
3
|
|
4 <!--
|
|
5 <requirement type="package" >libgcc-ng</requirement>
|
|
6 <requirement type="package" >libiconv</requirement>
|
|
7 <requirement type="package" >jpeg</requirement>
|
|
8 <requirement type="package" >libstdcxx-ng</requirement>
|
|
9 <requirement type="package" >libkml</requirement>
|
|
10 <requirement type="package" version="1.2_18">r-rgdal</requirement>
|
|
11 -->
|
|
12
|
|
13 <requirement type="package" version="1.20.2">r-getopt</requirement>
|
|
14 <requirement type="package" version="1.1.6">r-ncdf4</requirement>
|
|
15 <requirement type="package" version="2.6_7">r-raster</requirement>
|
|
16 <requirement type="package" version="1.3.1">r-stringr</requirement>
|
|
17
|
|
18 </requirements>
|
|
19 <command detect_errors="exit_code"><![CDATA[
|
|
20 Rscript
|
|
21 '$__tool_directory__/clim_data.R'
|
|
22 'worldclim'
|
|
23 '$usr_var'
|
|
24 $usr_res
|
|
25 '$usr_of'
|
|
26
|
|
27 #if $condi_plot.plot=='yes_plot'
|
|
28 '$usr_var$condi_plot.var_to_plot'
|
|
29 '$condi_plot.usr_country'
|
|
30 #end if
|
|
31
|
|
32 ]]></command>
|
|
33 <inputs>
|
|
34 <param name="usr_var" type="select" label="Variable" help="Temperature minimum, maximum, precipitations and bioclimatic variables.">
|
|
35 <option value="tmin">tmin</option>
|
|
36 <option value="tmax">tmax</option>
|
|
37 <option value="prec">prec</option>
|
|
38 <option value="bio">bio</option>
|
|
39 </param>
|
|
40 <param name="usr_res" type="select" label="Resolution" help="In minutes of a degree.">
|
|
41 <option value="2.5">2.5</option>
|
|
42 <option value="5">5</option>
|
|
43 <option value="10">10</option>
|
|
44 </param>
|
|
45 <param name="usr_of" type="select" label="Output raster format" >
|
|
46 <option value="raster">Native raster package format .grd</option>
|
|
47 <option value="CDF">netCDF .nc</option>
|
|
48 <!--
|
|
49 <option value="GTiff">GeoTiff .tif</option>
|
|
50 <option value="ascii">ESRI Ascii .asc</option>
|
|
51 <option value="SAGA">SAGA GIS .sdat</option>
|
|
52 <option value="IDRISI">IDRISI .rst</option>
|
|
53 <option value="ENVI">ENVI .hdr Labelled .envi</option>
|
|
54 <option value="EHdr">ESRI .hdr Labelled .bil</option>
|
|
55 <option value="HFA">Erdas Imagine Images .img</option>
|
|
56 -->
|
|
57
|
|
58 </param>
|
|
59 <conditional name="condi_plot">
|
|
60 <param name="plot" type="select" label="Return a layers visualisation">
|
|
61 <option value="yes_plot">Yes</option>
|
|
62 <option value="no_plot">No</option>
|
|
63 </param>
|
|
64 <when value="yes_plot">
|
|
65 <param name="var_to_plot" type="select" label="Select what you want to visualize" help="Be careful to select a layer that is present in the dowloaded raster. eg : bioclimatic variable (bio) and layer bio:Isothermality.">
|
|
66 <option value="1">[tmin|tmax|prec]:January</option>
|
|
67 <option value="2">[tmin|tmax|prec]:February</option>
|
|
68 <option value="3">[tmin|tmax|prec]:March</option>
|
|
69 <option value="4">[tmin|tmax|prec]:April</option>
|
|
70 <option value="5">[tmin|tmax|prec]:May</option>
|
|
71 <option value="6">[tmin|tmax|prec]:June</option>
|
|
72 <option value="7">[tmin|tmax|prec]:July</option>
|
|
73 <option value="8">[tmin|tmax|prec]:August</option>
|
|
74 <option value="9">[tmin|tmax|prec]:September</option>
|
|
75 <option value="10">[tmin|tmax|prec]:October</option>
|
|
76 <option value="11">[tmin|tmax|prec]:November</option>
|
|
77 <option value="12">[tmin|tmax|prec]:December</option>
|
|
78 <option value="1">bio:Annual Mean Temperature</option>
|
|
79 <option value="2">bio:Mean Diurnal Range (Mean of monthly (max temp - min temp))</option>
|
|
80 <option value="3">bio:Isothermality (BIO2/BIO7) (* 100)</option>
|
|
81 <option value="4">bio:Temperature Seasonality (standard deviation *100)</option>
|
|
82 <option value="5">bio:Max Temperature of Warmest Month</option>
|
|
83 <option value="6">bio:Min Temperature of Coldest Month</option>
|
|
84 <option value="7">bio:Temperature Annual Range (BIO5-BIO6)</option>
|
|
85 <option value="8">bio:Mean Temperature of Wettest Quarter</option>
|
|
86 <option value="9">bio:Mean Temperature of Driest Quarter</option>
|
|
87 <option value="10">bio:Mean Temperature of Warmest Quarter</option>
|
|
88 <option value="11">bio:Mean Temperature of Coldest Quarter</option>
|
|
89 <option value="12">bio:Annual Precipitation</option>
|
|
90 <option value="13">bio:Precipitation of Wettest Month</option>
|
|
91 <option value="14">bio:Precipitation of Driest Month</option>
|
|
92 <option value="15">bio:Precipitation Seasonality (Coefficient of Variation)</option>
|
|
93 <option value="16">bio:Precipitation of Wettest Quarter</option>
|
|
94 <option value="17">bio:Precipitation of Driest Quarter</option>
|
|
95 <option value="18">bio:Precipitation of Warmest Quarter</option>
|
|
96 <option value="19">bio:Precipitation of Coldest Quarter</option>
|
|
97 </param>
|
|
98
|
|
99 <param name="usr_country" type="select" label="Select a worldmap vision or a more precise region" >
|
|
100 <option value="WM">Worldmap</option>
|
|
101 <option value="NA">North America</option>
|
|
102 <option value="EU">Europe</option>
|
|
103 <option value="AUS">Australia</option>
|
|
104 <option value="FRA">France</option>
|
|
105 <option value="DEU">Germany</option>
|
|
106 <option value="GBR">United Kingdom</option>
|
|
107 <option value="ESP">Spain</option>
|
|
108 <option value="ITA">Italy</option>
|
|
109 </param>
|
|
110 </when>
|
|
111 <when value="no_plot">
|
|
112 </when>
|
|
113 </conditional>
|
|
114 </inputs>
|
|
115 <outputs>
|
|
116 <data name="output_df" from_work_dir="output_writeRaster.nc" label="WorldClim data - NetCDF format">
|
|
117 <filter> usr_of=='CDF'</filter>
|
|
118 </data>
|
|
119 <data name="output_grd" from_work_dir="output_writeRaster.grd" label="WorldClim data - Native raster pkg format .grd">
|
|
120 <filter> usr_of=='raster'</filter>
|
|
121 </data>
|
|
122 <data name="output_gri" from_work_dir="output_writeRaster.gri" label="WorldClim data - Native raster pkg format .gri">
|
|
123 <filter> usr_of=='raster'</filter>
|
|
124 </data>
|
|
125 <data name="plot_jpeg" from_work_dir="worldclim_plot_usr_region.jpeg" format="jpg" label="WorldClim data - Visualisation">
|
|
126 <filter> plot=='yes_plot'</filter>
|
|
127 </data>
|
|
128 </outputs>
|
|
129 <help><![CDATA[
|
|
130
|
|
131 .. class:: infomark
|
|
132
|
|
133 =======================================
|
|
134 Get global climate data from Worldclim
|
|
135 =======================================
|
|
136
|
|
137 |
|
|
138
|
|
139 **What it does**
|
|
140
|
|
141 This tool retrieve global climate data from Wordclim using the R raster package.
|
|
142
|
|
143 The climatic data available are :
|
|
144
|
|
145 * Minimum temperature (°C x10)
|
|
146
|
|
147 * Maximum temperature (°C x10)
|
|
148
|
|
149 * Precipitation (mm)
|
|
150
|
|
151 * Bioclimatic variables :
|
|
152
|
|
153 * BIO1 = Annual Mean Temperature
|
|
154
|
|
155 * BIO2 = Mean Diurnal Range (Mean of monthly (max temp - min temp))
|
|
156
|
|
157 * BIO3 = Isothermality (BIO2/BIO7) (x 100)
|
|
158
|
|
159 * BIO4 = Temperature Seasonality (standard deviation x100)
|
|
160
|
|
161 * BIO5 = Max Temperature of Warmest Month
|
|
162
|
|
163 * BIO6 = Min Temperature of Coldest Month
|
|
164
|
|
165 * BIO7 = Temperature Annual Range (BIO5-BIO6)
|
|
166
|
|
167 * BIO8 = Mean Temperature of Wettest Quarter
|
|
168
|
|
169 * BIO9 = Mean Temperature of Driest Quarter
|
|
170
|
|
171 * BIO10 = Mean Temperature of Warmest Quarter
|
|
172
|
|
173 * BIO11 = Mean Temperature of Coldest Quarter
|
|
174
|
|
175 * BIO12 = Annual Precipitation
|
|
176
|
|
177 * BIO13 = Precipitation of Wettest Month
|
|
178
|
|
179 * BIO14 = Precipitation of Driest Month
|
|
180
|
|
181 * BIO15 = Precipitation Seasonality (Coefficient of Variation)
|
|
182
|
|
183 * BIO16 = Precipitation of Wettest Quarter
|
|
184
|
|
185 * BIO17 = Precipitation of Driest Quarter
|
|
186
|
|
187 * BIO18 = Precipitation of Warmest Quarter
|
|
188
|
|
189 * BIO19 = Precipitation of Coldest Quarter
|
|
190
|
|
191 |
|
|
192
|
|
193 **How to use it**
|
|
194
|
|
195 Simply select the variable to return and the resolution : 2.5, 5 or 10 minutes of a degree.
|
|
196
|
|
197 Available output format are : netcdf and grd (Native raster package format).
|
|
198
|
|
199 |
|
|
200
|
|
201 **Sources**
|
|
202
|
|
203 Worldclim : http://www.worldclim.org/
|
|
204
|
|
205 Raster package : https://cran.r-project.org/web/packages/raster/index.html
|
|
206
|
|
207 ]]></help>
|
|
208 </tool>
|