annotate shift-longitudes.xml @ 0:5708a3a46f2e draft default tip

planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
author climate
date Thu, 25 Apr 2019 18:12:13 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
1 <tool id="shyft_longitudes" name="shift longitudes" version="0.1.0">
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
2 <description>from netCDF data</description>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
3 <requirements>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
4 <requirement type="package" version="3.6.7">python</requirement>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
5 <requirement type="package" version="1.4.1">netcdf4</requirement>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
6 <requirement type="package" version="0.10.9">xarray</requirement>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
7 </requirements>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
9 python3 '$__tool_directory__/shift_lon.py'
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
10 '$ifilename'
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
11 '$longitude'
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
12 '$ofilename'
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
13 ]]></command>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
14 <inputs>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
15 <param name="ifilename" type="data" format="netcdf" label="input with geographical coordinates (netCDF format)"></param>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
16 <param name="longitude" type="text" value="lon" label="variable name for longitude as given in the netCDF file" />
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
17 </inputs>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
18 <outputs>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
19 <data name="ofilename" format="netcdf"></data>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
20 </outputs>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
21 <tests>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
22 <test>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
23 <param name="ifilename" value="TS.f2000.T31T31.control.cam.h0.0014-12.nc" />
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
24 <output name="ofilename" ftype="netcdf" file="TS.f2000.T31T31.control.cam.h0.0014-12.180.nc" compare="sim_size" delta="500"/>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
25 </test>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
26 <test>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
27 <param name="ifilename" value="TS.f2000.T31T31.control.cam.h0.0014-12.180.nc" />
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
28 <output name="ofilename" ftype="netcdf" file="TS.f2000.T31T31.control.cam.h0.0014-12.180.nc" compare="sim_size" delta="500"/>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
29 </test>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
30 </tests>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
31 <help><![CDATA[
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
32
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
33 **Shift longitudes**
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
34 ================================================
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
35
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
36 This tool wraps the functionality of ``shift-lon.py``.
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
37
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
38
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
39 .. class:: infomark
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
40
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
41 The wrapper aims at providing a simple utility to shift longitudes ranging from
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
42 0. and 360 degrees to -180. and 180. degrees.
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
43 The input file must be in netCDF format with geographical coordinates
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
44 (latitudes, longitudes) given in degrees.
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
45
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
46 **What it does**
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
47 ----------------
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
48
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
49 This tools creates a netCDF file with the same variables as the original file but
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
50 where longitudes range from -180. to 180.
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
51
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
52 **Usage**
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
53
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
54 ::
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
55
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
56 usage: shift-lon.py [-h] [-v] input output
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
57
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
58
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
59 Positional arguments:
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
60 ~~~~~~~~~~~~~~~~~~~~~
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
61
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
62 - **input**: input filename with geographical coordinates (netCDF format)
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
63 - **longitude**: variable name for longitudes as stored in netCDF file
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
64 - **output**: output filename for data with shifted longitudes
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
65
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
66 Optional arguments:
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
67 ~~~~~~~~~~~~~~~~~~~~~
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
68
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
69 -h, --help show this help message and exit
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
70 -v, --verbose switch on verbose mode
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
71
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
72 It uses ``xarray`` python package to generate plots. More information about
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
73 ``xarray`` can be found at http://xarray.pydata.org/en/stable/
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
74
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
75 ]]></help>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
76 <citations>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
77 </citations>
5708a3a46f2e planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/shift-longitudes commit c1362af034361b6fb869411f1ea928388f230d72
climate
parents:
diff changeset
78 </tool>