Mercurial > repos > climate > cds_essential_variability
comparison essential_climate_variables.xml @ 2:b9d9fe0c2ce7 draft
planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/essential_climate_variables commit 6045302c39c9c11fb6a73966a364cc395f2f9b28
author | climate |
---|---|
date | Sun, 23 Jun 2019 11:16:11 -0400 |
parents | 8b30be2cef81 |
children | b261160f10ee |
comparison
equal
deleted
inserted
replaced
1:8b30be2cef81 | 2:b9d9fe0c2ce7 |
---|---|
5 <requirement type="package" version="0.1.4">cdsapi</requirement> | 5 <requirement type="package" version="0.1.4">cdsapi</requirement> |
6 <requirement type="package" version="1.9.6">cdo</requirement> | 6 <requirement type="package" version="1.9.6">cdo</requirement> |
7 </requirements> | 7 </requirements> |
8 <command detect_errors="exit_code"><![CDATA[ | 8 <command detect_errors="exit_code"><![CDATA[ |
9 HOME=`pwd` && | 9 HOME=`pwd` && |
10 source \$COPERNICUS_CDSAPIRC_KEY_FILE 2> /dev/null | true && | |
10 python3 '$__tool_directory__/ecv_retrieve.py' | 11 python3 '$__tool_directory__/ecv_retrieve.py' |
11 'ecv-for-climate-change' '$variable' | 12 'ecv-for-climate-change' '$variable' |
12 --year '$year' | 13 --month '$month' |
13 #if str($time_aggregation.selector) == '1_month' | 14 #if str($product_type.product) == 'monthly_mean' |
14 --month '$time_aggregation.month' | 15 --year '$product_type.year' |
16 --time_aggregation '1_month' | |
17 #else if str($product_type.product) == 'anomaly' | |
18 --time_aggregation '$product_type.selector' | |
19 --year '$product_type.year' | |
15 #else | 20 #else |
16 --month '01' | 21 --year '2018' |
22 --time_aggregation '1_month' | |
17 #end if | 23 #end if |
18 --time_aggregation '$time_aggregation.selector' | 24 --product_type '$product_type.product' |
19 --product_type '$product_type' | |
20 --format 'tgz' --output 'tmp.tgz' | 25 --format 'tgz' --output 'tmp.tgz' |
21 --verbose && | 26 --verbose && |
22 tar zxvf tmp.tgz && | 27 tar zxvf tmp.tgz && |
23 cat *.grib > tmp.grib && | 28 cat *.grib > tmpg.grib && |
24 cdo -f nc -t ecmwf copy tmp.grib tmp.nc | 29 cdo remapcon,$adv.resol -setgridtype,regular tmpg.grib tmp.grib && |
30 cdo -f nc -t ecmwf copy tmp.grib tmp.nc | |
25 ]]></command> | 31 ]]></command> |
26 <inputs> | 32 <inputs> |
27 <param name="variable" type="select" multiple="true" label="Variable(s)"> | 33 <param name="variable" type="select" multiple="true" label="Variable(s)"> |
28 <option value="surface_air_temperature" selected="true">Surface air temperature</option> | 34 <option value="surface_air_temperature" selected="true">Surface air temperature</option> |
29 <option value="surface_air_relative_humidity" selected="true">Surface air relative humidity</option> | 35 <option value="surface_air_relative_humidity" selected="true">Surface air relative humidity</option> |
30 <option value="0_7cm_volumetric_soil_moisture" selected="true">0-7cm volumetric soil moisture</option> | 36 <option value="0_7cm_volumetric_soil_moisture" selected="true">0-7cm volumetric soil moisture</option> |
31 <option value="precipitation" selected="true">Precipitation</option> | 37 <option value="precipitation" selected="true">Precipitation</option> |
32 <option value="sea_ice" selected="true">Sea-ice</option> | 38 <option value="sea_ice_cover" selected="true">Sea-ice cover</option> |
33 </param> | 39 </param> |
34 <param name="product_type" type="select" label="Select type of data"> | 40 <conditional name="product_type"> |
35 <option value="climatology" selected="true">Climatology</option> | 41 <param name="product" type="select" label="Select type of data"> |
36 <option value="anomaly">Anomaly</option> | 42 <option value="monthly_mean" selected="true">Monthly mean</option> |
37 </param> | 43 <option value="climatology">Climatology</option> |
38 <conditional name="time_aggregation"> | 44 <option value="anomaly">Anomaly</option> |
39 <param name="selector" type="select" label="Time aggregation"> | |
40 <option value="12_month" selected="true">yearly</option> | |
41 <option value="1_month">monthly</option> | |
42 </param> | 45 </param> |
43 <when value="1_month"> | 46 <when value="monthly_mean"> |
44 <param name="month" type="select" multiple="true" label="Select month(s)"> | 47 <param name="year" type="select" multiple="true" label="Select year(s)"> |
45 <option value="01" selected="true">January</option> | 48 <option value="1979">1979</option> |
46 <option value="02" selected="true">February</option> | 49 <option value="1980">1980</option> |
47 <option value="03" selected="true">March</option> | 50 <option value="1981">1981</option> |
48 <option value="04" selected="true">April</option> | 51 <option value="1982">1982</option> |
49 <option value="05" selected="true">May</option> | 52 <option value="1983">1983</option> |
50 <option value="06" selected="true">June</option> | 53 <option value="1984">1984</option> |
51 <option value="07" selected="true">July</option> | 54 <option value="1985">1985</option> |
52 <option value="08" selected="true">August</option> | 55 <option value="1986">1986</option> |
53 <option value="09" selected="true">September</option> | 56 <option value="1987">1987</option> |
54 <option value="10" selected="true">October</option> | 57 <option value="1988">1988</option> |
55 <option value="11" selected="true">November</option> | 58 <option value="1989">1989</option> |
56 <option value="12" selected="true">December</option> | 59 <option value="1990">1990</option> |
60 <option value="1991">1991</option> | |
61 <option value="1992">1992</option> | |
62 <option value="1993">1993</option> | |
63 <option value="1994">1994</option> | |
64 <option value="1995">1995</option> | |
65 <option value="1996">1996</option> | |
66 <option value="1997">1997</option> | |
67 <option value="1998">1998</option> | |
68 <option value="1999">1999</option> | |
69 <option value="2000">2000</option> | |
70 <option value="2001">2001</option> | |
71 <option value="2002">2002</option> | |
72 <option value="2003">2003</option> | |
73 <option value="2004">2004</option> | |
74 <option value="2005">2005</option> | |
75 <option value="2006">2006</option> | |
76 <option value="2007">2007</option> | |
77 <option value="2008">2008</option> | |
78 <option value="2009">2009</option> | |
79 <option value="2010">2010</option> | |
80 <option value="2011">2011</option> | |
81 <option value="2012">2012</option> | |
82 <option value="2013">2013</option> | |
83 <option value="2014">2014</option> | |
84 <option value="2015">2015</option> | |
85 <option value="2016">2016</option> | |
86 <option value="2017">2017</option> | |
87 <option value="2018">2018</option> | |
88 <option value="2019" selected="true">2019</option> | |
89 </param> | |
90 </when> | |
91 <when value="anomaly"> | |
92 <param name="year" type="select" multiple="true" label="Select year(s)"> | |
93 <option value="1979">1979</option> | |
94 <option value="1980">1980</option> | |
95 <option value="1981">1981</option> | |
96 <option value="1982">1982</option> | |
97 <option value="1983">1983</option> | |
98 <option value="1984">1984</option> | |
99 <option value="1985">1985</option> | |
100 <option value="1986">1986</option> | |
101 <option value="1987">1987</option> | |
102 <option value="1988">1988</option> | |
103 <option value="1989">1989</option> | |
104 <option value="1990">1990</option> | |
105 <option value="1991">1991</option> | |
106 <option value="1992">1992</option> | |
107 <option value="1993">1993</option> | |
108 <option value="1994">1994</option> | |
109 <option value="1995">1995</option> | |
110 <option value="1996">1996</option> | |
111 <option value="1997">1997</option> | |
112 <option value="1998">1998</option> | |
113 <option value="1999">1999</option> | |
114 <option value="2000">2000</option> | |
115 <option value="2001">2001</option> | |
116 <option value="2002">2002</option> | |
117 <option value="2003">2003</option> | |
118 <option value="2004">2004</option> | |
119 <option value="2005">2005</option> | |
120 <option value="2006">2006</option> | |
121 <option value="2007">2007</option> | |
122 <option value="2008">2008</option> | |
123 <option value="2009">2009</option> | |
124 <option value="2010">2010</option> | |
125 <option value="2011">2011</option> | |
126 <option value="2012">2012</option> | |
127 <option value="2013">2013</option> | |
128 <option value="2014">2014</option> | |
129 <option value="2015">2015</option> | |
130 <option value="2016">2016</option> | |
131 <option value="2017">2017</option> | |
132 <option value="2018" selected="true">2018</option> | |
133 </param> | |
134 <param name="selector" type="select" label="Time aggregation"> | |
135 <option value="12_month" selected="true">yearly</option> | |
136 <option value="1_month">monthly</option> | |
57 </param> | 137 </param> |
58 </when> | 138 </when> |
59 </conditional> | 139 </conditional> |
60 | 140 <param name="month" type="select" multiple="true" label="Select month(s)"> |
61 <param name="year" type="select" multiple="true" label="Select year(s)"> | 141 <option value="01" selected="true">January</option> |
62 <option value="1979">1979</option> | 142 <option value="02" selected="true">February</option> |
63 <option value="1980">1980</option> | 143 <option value="03" selected="true">March</option> |
64 <option value="1981">1981</option> | 144 <option value="04" selected="true">April</option> |
65 <option value="1982">1982</option> | 145 <option value="05" selected="true">May</option> |
66 <option value="1983">1983</option> | 146 <option value="06" selected="true">June</option> |
67 <option value="1984">1984</option> | 147 <option value="07" selected="true">July</option> |
68 <option value="1985">1985</option> | 148 <option value="08" selected="true">August</option> |
69 <option value="1986">1986</option> | 149 <option value="09" selected="true">September</option> |
70 <option value="1987">1987</option> | 150 <option value="10" selected="true">October</option> |
71 <option value="1988">1988</option> | 151 <option value="11" selected="true">November</option> |
72 <option value="1989">1989</option> | 152 <option value="12" selected="true">December</option> |
73 <option value="1990">1990</option> | |
74 <option value="1991">1991</option> | |
75 <option value="1992">1992</option> | |
76 <option value="1993">1993</option> | |
77 <option value="1994">1994</option> | |
78 <option value="1995">1995</option> | |
79 <option value="1996">1996</option> | |
80 <option value="1997">1997</option> | |
81 <option value="1998">1998</option> | |
82 <option value="1999">1999</option> | |
83 <option value="2000">2000</option> | |
84 <option value="2001">2001</option> | |
85 <option value="2002">2002</option> | |
86 <option value="2003">2003</option> | |
87 <option value="2004">2004</option> | |
88 <option value="2005">2005</option> | |
89 <option value="2006">2006</option> | |
90 <option value="2007">2007</option> | |
91 <option value="2008">2008</option> | |
92 <option value="2009">2009</option> | |
93 <option value="2010">2010</option> | |
94 <option value="2011">2011</option> | |
95 <option value="2012">2012</option> | |
96 <option value="2013">2013</option> | |
97 <option value="2014">2014</option> | |
98 <option value="2015">2015</option> | |
99 <option value="2016">2016</option> | |
100 <option value="2017">2017</option> | |
101 <option value="2018">2018</option> | |
102 <option value="2019" selected="true">2019</option> | |
103 </param> | 153 </param> |
154 | |
155 <section name="adv" title="Advanced Options" expanded="false"> | |
156 <param name="resol" type="select" label="Resolution"> | |
157 <option value="r1440x720" selected="true">high</option> | |
158 <option value="r144x72">low</option> | |
159 </param> | |
160 </section> | |
104 </inputs> | 161 </inputs> |
105 <outputs> | 162 <outputs> |
106 <data name="ofilename" format="netcdf" from_work_dir="tmp.nc"/> | 163 <data name="ofilename" format="netcdf" from_work_dir="tmp.nc"/> |
107 </outputs> | 164 </outputs> |
108 <tests> | 165 <tests> |
109 <test> | 166 <test> |
110 <param name="variable" value="0_7cm_volumetric_soil_moisture"/> | 167 <param name="variable" value="0_7cm_volumetric_soil_moisture"/> |
111 <param name="product_type" value="climatology"/> | 168 <conditional name="product_type"> |
112 <param name="time_aggregation" value="1_month"/> | 169 <param name="product" value="monthly_mean"/> |
170 <param name="year" value="2018"/> | |
171 </conditional> | |
113 <param name="month" value="12"/> | 172 <param name="month" value="12"/> |
114 <param name="year" value="2018"/> | 173 <param name="resol" value="r144x72"/> |
115 <output name="ofilename" ftype="netcdf" file="soil_moisture.nc" compare="sim_size" delta="100"/> | 174 <output name="ofilename" ftype="netcdf" file="soil_moisture.nc" compare="sim_size" delta="100"/> |
116 </test> | 175 </test> |
117 <test> | 176 <test> |
118 <param name="variable" value="precipitation,sea_ice"/> | 177 <param name="variable" value="precipitation"/> |
119 <param name="product_type" value="anomaly"/> | 178 <conditional name="product_type"> |
120 <param name="time_aggregation" value="12_month"/> | 179 <param name="product" value="anomaly"/> |
121 <param name="year" value="2017"/> | 180 <param name="year" value="2017"/> |
181 <param name="time_aggregation" value="12_month"/> | |
182 </conditional> | |
183 <param name="month" value="12"/> | |
184 <param name="resol" value="r144x72"/> | |
122 <output name="ofilename" ftype="netcdf" file="prep_seaice.nc" compare="sim_size" delta="100"/> | 185 <output name="ofilename" ftype="netcdf" file="prep_seaice.nc" compare="sim_size" delta="100"/> |
123 </test> | 186 </test> |
124 </tests> | 187 </tests> |
125 <help><![CDATA[ | 188 <help><![CDATA[ |
126 | 189 |