comparison gdal_merge.xml @ 0:ce7826d49a5c draft

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tools/gdal commit b964e8f7d7bb076d63a1c7bdfbbdba0f9074d517
author ecology
date Tue, 26 Feb 2019 11:49:25 -0500
parents
children 8bb34fcc119a
comparison
equal deleted inserted replaced
-1:000000000000 0:ce7826d49a5c
1 <tool id="gdal_gdal_merge" name="GDAL Merge" version="@VERSION@">
2 <description>mosaics a set of images</description>
3 <macros>
4 <import>gdal_macros.xml</import>
5 </macros>
6 <expand macro="gdal_requirements" />
7 <command detect_errors="exit_code"><![CDATA[
8 gdal_merge.py
9 -q
10 #for $i in $input
11 '$i'
12 #end for
13
14 -of '$of'
15
16 #if $settings.advanced=='advanced'
17
18 #if str($settings.co).strip()!=''
19 -co '$settings.co'
20 #end if
21
22 #if str($settings.ot).strip()!=''
23 -ot '$settings.ot'
24 #end if
25
26 #if $settings.condi_ps.pixelsize=='use_ps'
27 -ps $settings.condi_ps.pixelsize_x $settings.condi_ps.pixelsize_y
28 #end if
29
30 $settings.tap
31
32 #if $settings.condi_ul_lr.ul_lr=='ul_lr'
33 -ul_lr $settings.condi_ul_lr.ulx $settings.condi_ul_lr.uly $settings.condi_ul_lr.lrx $settings.condi_ul_lr.lry
34 #end if
35
36 $settings.v
37
38 $settings.separate
39
40 $settings.pct
41
42 #if $settings.n!='nodata_value'
43 -n '$settings.n'
44 #end if
45
46 #if $settings.a_nodata!='output_nodata_value'
47 -a_nodata '$settings.a_nodata'
48 #end if
49
50 #if str($settings.init).strip()!=''
51 -init '$settings.init'
52 #end if
53
54 #end if
55
56 -o '$output'
57 ]]></command>
58
59 <inputs>
60 <expand macro="gdal_input_raster_multiple"/>
61 <expand macro="gdal_param_of"/>
62 <conditional name="settings">
63 <expand macro="gdal_advanced_params_select"/>
64 <when value="advanced">
65 <expand macro="gdal_param_co"/>
66 <expand macro="gdal_param_ot"/>
67 <conditional name="condi_ps">
68 <param label="Fix pixel size to be used" help="-ps pixelsize_x pixelsize_y. If not specified the resolution of the first input file will be used" name="pixelsize" type="select">
69 <option value="use_ps">Fix pixel size with the -ps option</option>
70 <option value="no_ps" selected="true">Don't specify a resolution</option>
71 </param>
72 <when value="use_ps">
73 <param name="pixelsize_x" type="integer" value="0" min="0"/>
74 <param name="pixelsize_y" type="integer" value="0" min="0"/>
75 </when>
76 <when value="no_ps">
77 </when>
78 </conditional>
79 <expand macro="gdal_param_tap"/>
80 <conditional name="condi_ul_lr">
81 <param name="ul_lr" type="select" argument="-ul_lr ulx uly lrx lry" label="The extents of the output file" help="If not specified the aggregate extents of all input files will be used" >
82 <option value="no_ul_lr" selected="true">Don't use the -ul_lr option</option>
83 <option value="ul_lr">Use the -ul_lr option</option>
84 </param>
85 <when value="no_ul_lr">
86 </when>
87 <when value="ul_lr">
88 <param name="ulx" type="integer" label="The ulx extents of the output file" value="0" min="0"/>
89 <param name="uly" type="integer" label="The uly extents of the output file" value="0" min="0"/>
90 <param name="lrx" type="integer" label="The lrx extents of the output file" value="0" min="0"/>
91 <param name="lry" type="integer" label="The lry extents of the output file" value="0" min="0"/>
92 </when>
93 </conditional>
94 <param name="v" type="boolean" truevalue="-v" falsevalue="" checked="false" help="-v" label="Generate verbose output of mosaicing operations as they are done" />
95 <expand macro="gdal_param_separate"/>
96 <param name="pct" type="boolean" truevalue="-pct" falsevalue="" checked="false" help="-pct. Merging pseudo-colored images this way assumes that all input files use the same color table" label="Grab a pseudo-color table from the first input image" />
97 <param name="n" type="text" argument="-n nodata_value" label="Ignore pixels from files being merged in with this pixel value" value="nodata_value" />
98 <param name="a_nodata" type="text" argument="-a_nodata" label="Assign a specified nodata value to output bands" value="output_nodata_value" />
99 <param name="init" type="text" help="-init values(s). It is not marked as the nodata value in the output file. If only one value is given, the same value is used in all the bands" label="Pre-initialize the output image bands with values" value="" />
100 </when>
101 </conditional>
102 </inputs>
103
104 <outputs>
105 <expand macro="gdal_output_change_format"/>
106 </outputs>
107
108 <tests>
109 <test>
110 <param name="input" value="small_west.dem,small_east.dem"/>
111 <param name="advanced" value="simple"/>
112 <output name="output" file="small_merged.tif"/>
113 </test>
114 </tests>
115
116 <help><![CDATA[
117 ==========================
118 Gdal_merge
119 ==========================
120 **What it does**
121
122 This utility will automatically mosaic a set of images. All the images must be in the same coordinate system and have a matching number of bands, but they may be overlapping, and at different resolutions. In areas of overlap, the last image will be copied over earlier ones.
123
124 |
125
126 **How to use it**
127
128 Select as much raster files as you want from history to make the mosaic.
129
130 Specifiy output format using short name (http://www.gdal.org/formats_list.html).
131
132 |
133
134 **Advanced options and sources**
135
136 To see complete details and help section please check the official gdal sources.
137
138 http://www.gdal.org
139
140 http://www.gdal.org/gdal_merge.html
141
142 Raster Processing Tutorial : https://trac.osgeo.org/gdal/wiki/UserDocs/RasterProcTutorial
143 ]]></help>
144 <expand macro="gdal_citation"/>
145 </tool>