annotate csv2fits.xml @ 1:eba50a1f228e draft default tip

planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit 8e0f38a23e84e67d0e199a99ec318d334f928ade
author astroteam
date Fri, 04 Jul 2025 13:18:26 +0000
parents 7f5c597801f0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
1
1
eba50a1f228e planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit 8e0f38a23e84e67d0e199a99ec318d334f928ade
astroteam
parents: 0
diff changeset
2 <tool id="astropy_csv2fits" name="csv2fits" version="0.1.0+galaxy1" profile="24.0">
0
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
3 <requirements>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
4 <requirement type="package" version="6.1.7">astropy</requirement>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
5 </requirements>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
6 <command detect_errors="exit_code"><![CDATA[
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
7 python '$py_script_file'
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
8 ]]></command>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
9
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
10 <configfiles>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
11 <configfile name="py_script_file">
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
12 from astropy.io import ascii
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
13
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
14 t = ascii.read("$input_file", delimiter='$input_file.metadata.delimiter')
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
15 t.write("$output", format='fits', overwrite=True)
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
16 </configfile>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
17 </configfiles>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
18 <inputs>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
19 <param name="input_file" type="data" label="Input File" format="csv,tsv" optional="false" />
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
20 </inputs>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
21 <outputs>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
22 <data name="output" format="fits" />
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
23 </outputs>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
24 <tests>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
25 <test expect_num_outputs="1">
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
26 <param name="input_file" value="fitstable.csv" />
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
27 <output name="output" file="fitstable.fits" />
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
28 </test>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
29 <test expect_num_outputs="1">
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
30 <param name="input_file" value="fitstable.tsv" />
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
31 <output name="output" file="fitstable.fits" />
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
32 </test>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
33 </tests>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
34 <help><![CDATA[
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
35 Convert a text table (CSV or TSV) to the binary table in the first extension of the FITS file.
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
36
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
37 This tool is a simple script based on Astropy package. See `astropy help <https://docs.astropy.org/en/latest/io/fits/>`_
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
38 for further documentation.
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
39 ]]></help>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
40 <citations>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
41 <citation type="doi">
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
42 10.3847/1538-4357/ac7c74
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
43 </citation>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
44 </citations>
7f5c597801f0 planemo upload for repository https://github.com/esg-epfl-apc/tools-astro/tree/main/tools/astropytools commit b794237f7f48d27404592039d3d9ed50aed621e4
astroteam
parents:
diff changeset
45 </tool>