comparison macros_netcdf2netcdf.xml @ 2:3e73f657a998 draft

"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
author ecology
date Thu, 20 Jan 2022 17:07:54 +0000
parents
children
comparison
equal deleted inserted replaced
1:6015f30a7258 2:3e73f657a998
1 <macros>
2 <xml name="coord_range">
3 <repeat name="user_choice" title="Filter by coordinate values" min="0" max="20" help="Use this option to filter on the values of the selected coordinate">
4 <param name="dim" type="select" label="Dimensions">
5 <options from_dataset="var_tab">
6 <column name="value" index="0"/>
7 </options>
8 </param>
9 <conditional name="condi_between">
10 <param name="comparator" type="select" label="Comparator">
11 <option value="is">is</option>
12 <option value="from">from</option>
13 <option value="to">to</option>
14 <option value="sl">slice(threshold1,threshold2)</option>
15 </param>
16 <when value="sl">
17 <param name="t1" type="text" value="" label="Choose the start value for slice"/>
18 <param name="t2" type="text" value="" label="Choose the end value for slice"/>
19 </when>
20 <when value="to">
21 <param name="value" type="text" value="" label="Choose the end value"/>
22 </when>
23 <when value="from">
24 <param name="value" type="text" value="" label="Choose the start value"/>
25 </when>
26 <when value="is">
27 <param name="value" type="text" value="" label="Choose the value to select"/>
28 <yield />
29 </when>
30 </conditional>
31 </repeat>
32 </xml>
33 <xml name="section_variables">
34 <section name="variable" title="Select variables">
35 <param name="var" type="select" multiple="true" label="Choose variables to extract">
36 <options from_dataset="var_tab">
37 <column name="name" index="0"/>
38 <column name="value" index="0"/>
39 </options>
40 </param>
41 <param type="float" name="scale" optional="true" help="scale factor (float) to apply to the selected variable (optional and only if a variable is selected)"/>
42 <param name="write_all" type="boolean" checked="false" label="Write all variables to new netCDF file (only if a variable is selected)"/>
43 <param name="keep_attributes" type="boolean" checked="true" label="Keep all attributes (only if a variable is selected)"/>
44 </section>
45 </xml>
46 <xml name="section_coords">
47 <section name="subset_coords" title="Subset by coordinates">
48 <conditional name="tsel">
49 <param name="by_click" type="select" optional="true" label="Coordinate values">
50 <option value="sel">Coordinate values (sel)</option>
51 <option value="isel">Coordinate indices (isel)</option>
52 <option value="isel_list" selected="true">Coordinate values from list</option>
53 </param>
54 <when value="sel">
55 <expand macro="coord_range">
56 <param name="method" type="select" multiple="false" label="Choose selection method">
57 <option value="None">only exact matches</option>
58 <option value="nearest">use nearest valid index value</option>
59 <option value="pad">propagate last valid index value forward</option>
60 <option value="backfill">propagate next valid index value backward</option>
61 </param>
62 </expand>
63 </when>
64 <when value="isel">
65 <expand macro="coord_range"/>
66 </when>
67 <when value="isel_list">
68 <repeat name="user_choice" title="Filter by coordinate values" min="0" max="20" help="Use this option to filter on the values of the selected coordinate">
69 <param name="dim" type="select" label="Dimensions">
70 <options from_dataset="var_tab">
71 <column name="value" index="0"/>
72 </options>
73 </param>
74 <param type="data" label="Tabular containing values of this dimension" name="dim_tab" format="tabular" help="File containing values for this dimension."/>
75 <conditional name="condi_between">
76 <param name="comparator" type="select" label="Comparator">
77 <option value="is">is</option>
78 <option value="from">from</option>
79 <option value="to">to</option>
80 <option value="sl">slice(threshold1,threshold2)</option>
81 </param>
82 <when value="sl">
83 <param name="t1" type="select" multiple="false" label="Choose the start value for slice">
84 <options from_dataset="dim_tab">
85 <column name="name" index="1"/>
86 <column name="value" index="0"/>
87 </options>
88 </param>
89 <param name="t2" type="select" multiple="false" label="Choose the end value for slice">
90 <options from_dataset="dim_tab">
91 <column name="name" index="1"/>
92 <column name="value" index="0"/>
93 </options>
94 </param>
95 </when>
96 <when value="is">
97 <param name="value" type="select" multiple="false" label="Choose the value to select">
98 <options from_dataset="dim_tab">
99 <column name="name" index="1"/>
100 <column name="value" index="0"/>
101 </options>
102 </param>
103 </when>
104 <when value="to">
105 <param name="value" type="select" multiple="false" label="Choose the end value">
106 <options from_dataset="dim_tab">
107 <column name="name" index="1"/>
108 <column name="value" index="0"/>
109 </options>
110 </param>
111 </when>
112 <when value="from">
113 <param name="value" type="select" multiple="false" label="Choose the start value">
114 <options from_dataset="dim_tab">
115 <column name="name" index="1"/>
116 <column name="value" index="0"/>
117 </options>
118 </param>
119 </when>
120 </conditional>
121 </repeat>
122 </when>
123 </conditional>
124 </section>
125 </xml>
126 <xml name="section_where">
127 <section name="mask_values" title="Advanced options to mask by values">
128 <conditional name="mask_condi">
129 <param name="mask_option" type="select" multiple="false" label="Option for masked values">
130 <option value="keep" selected="true">Fill with NA</option>
131 <option value="drop">Drop values</option>
132 <option value="other">Set constant</option>
133 </param>
134 <when value="keep"/>
135 <when value="drop"/>
136 <when value="other">
137 <param name="set_other" type="float" value="0" label="Value to use for locations in this object where cond is False." />
138 </when>
139 </conditional>
140 <param name="where_condition" type="data" optional="true" format="txt" label="file containing a where expression" />
141 </section>
142 </xml>
143 </macros>