Mercurial > repos > ecology > xarray_coords_info
annotate xarray_coords_info.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 | 6015f30a7258 |
children | 663e6f115a76 |
rev | line source |
---|---|
2
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
1 <tool id="xarray_coords_info" name="NetCDF xarray Coordinate Info" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
2 <description>Get values for each coordinate of a Netcdf file</description> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
3 <macros> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
4 <import>macros.xml</import> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
5 </macros> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
6 <expand macro="edam_ontology"/> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
7 <requirements> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
8 <requirement type="package" version="@TOOL_VERSION@">xarray</requirement> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
9 <requirement type="package" version="3">python</requirement> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
10 <requirement type="package" version="1.5.6">netcdf4</requirement> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
11 <requirement type="package" version="0.9.0">geopandas</requirement> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
12 <requirement type="package" version="1.7.1">shapely</requirement> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
13 </requirements> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
14 <command detect_errors="exit_code"><![CDATA[ |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
15 mkdir output_dir && |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
16 echo "Galaxy xarray version @TOOL_VERSION@"> output_dir/version.tabular && |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
17 python3 '$__tool_directory__/xarray_tool.py' '$input' --coords_info output_dir |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
18 ]]> </command> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
19 <inputs> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
20 <param type="data" name="input" label="Netcdf file" format="netcdf,h5" help="Netcdf file you need to extract coordinate values."/> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
21 </inputs> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
22 <outputs> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
23 <collection type="list" name="output_dir" label="Coordinates"> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
24 <discover_datasets pattern="__name_and_ext__" visible="true" directory="output_dir"/> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
25 </collection> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
26 </outputs> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
27 <tests> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
28 <test> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
29 <param name="input" value="dataset-ibi-reanalysis-bio-005-003-monthly-regulargrid_1510914389133.nc"/> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
30 <output_collection name="output_dir" type="list" count="5"> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
31 <element name="time" file="time.tabular" ftype="tabular"/> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
32 <element name="latitude" file="latitude.tabular" ftype="tabular"/> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
33 <element name="longitude" file="longitude.tabular" ftype="tabular"/> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
34 <element name="depth" file="depth.tabular" ftype="tabular"/> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
35 <element name="version" file="version.tabular" ftype="tabular"/> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
36 </output_collection> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
37 </test> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
38 </tests> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
39 |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
40 <help><![CDATA[ |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
41 **What it does** |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
42 |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
43 The tool will generate a collection containing one file per coordinate. Each file contains the values of the |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
44 corresponding coordinate. The output of this tool is usually used as input to other tools. |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
45 |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
46 **Input** |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
47 |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
48 A netcdf file (xxx.nc). |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
49 |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
50 **Outputs** |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
51 |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
52 An output file is generated for each coordinate and each file contains the value of the corresponding coordinate. |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
53 |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
54 |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
55 -------------------------------- |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
56 |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
57 Run this tool before considering using Netcdf Xarray operation. |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
58 ]]> </help> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
59 <expand macro="citations"/> |
3e73f657a998
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 2166974df82f97557b082a9e55135098e61640c4"
ecology
parents:
1
diff
changeset
|
60 </tool> |