Mercurial > repos > astroteam > astropy_fits2bitmap
comparison fits2bitmap.xml @ 3:44dbbc093fd6 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:16 +0000 |
parents | 6b6dc2b5e52d |
children |
comparison
equal
deleted
inserted
replaced
2:6b6dc2b5e52d | 3:44dbbc093fd6 |
---|---|
1 <tool id="astropy_fits2bitmap" name="astropy fits2bitmap" version="0.2.0+galaxy1" profile="21.05"> | 1 <tool id="astropy_fits2bitmap" name="astropy fits2bitmap" version="0.3.0+galaxy0" profile="24.0"> |
2 <requirements> | 2 <requirements> |
3 <requirement type="package" version="6.1.7">astropy</requirement> | 3 <requirement type="package" version="6.1.7">astropy</requirement> |
4 <requirement type="package" version="3.10.1">matplotlib</requirement> | 4 <requirement type="package" version="3.10.1">matplotlib</requirement> |
5 </requirements> | 5 </requirements> |
6 <command detect_errors="exit_code"><![CDATA[ | 6 <command detect_errors="exit_code"><![CDATA[ |
7 #if $reverse_cmap: | 7 #if $reverse_cmap: |
8 #set $cmap = $cmap + "_r" | 8 #set $cmap = $cmap + "_r" |
9 #else: | 9 #else: |
10 #set $cmap = $cmap | 10 #set $cmap = $cmap |
11 #end if | 11 #end if |
12 fits2bitmap '$input_fits' --stretch '$stretch' --ext $hdu --cmap $cmap -o out.png | 12 fits2bitmap '$input_fits' --stretch '$stretch' --ext $hdu --cmap $cmap -o out.$out_format && mv out.$out_format out |
13 ]]></command> | 13 ]]></command> |
14 <inputs> | 14 <inputs> |
15 <param type="data" name="input_fits" format="fits" label="FITS file containing a sky image"/> | 15 <param type="data" name="input_fits" format="fits" label="FITS file containing a sky image"/> |
16 <param type="integer" name="hdu" value="0" min="0" label="Select input HDU number"/> | 16 <param type="integer" name="hdu" value="0" min="0" label="Select input HDU number"/> |
17 <param type="select" name="stretch" label="Stretch image scale" help="Type of image scale stretching"> | 17 <param type="select" name="stretch" label="Stretch image scale" help="Type of image scale stretching"> |
97 <option value="tab20c">tab20c</option> | 97 <option value="tab20c">tab20c</option> |
98 <option value="terrain">terrain</option> | 98 <option value="terrain">terrain</option> |
99 <option value="winter">winter</option> | 99 <option value="winter">winter</option> |
100 </param> | 100 </param> |
101 <param type="boolean" name="reverse_cmap" checked="false" label="Reverse color map"/> | 101 <param type="boolean" name="reverse_cmap" checked="false" label="Reverse color map"/> |
102 <param type="select" name="out_format" label="Output format"> | |
103 <option value="png">PNG</option> | |
104 <option value="tiff">TIFF</option> | |
105 <option value="jpg">JPEG</option> | |
106 </param> | |
102 </inputs> | 107 </inputs> |
103 <outputs> | 108 <outputs> |
104 <data name="output_png" format="png" from_work_dir="out.png" /> | 109 <data name="output_img" format="png" from_work_dir="out"> |
110 <change_format> | |
111 <when input="out_format" value="tiff" format="tiff"/> | |
112 <when input="out_format" value="jpg" format="jpg"/> | |
113 </change_format> | |
114 </data> | |
105 </outputs> | 115 </outputs> |
106 <tests> | 116 <tests> |
107 <test> | 117 <test> |
108 <param name="input_fits" value="legacysurvey_image.fits"/> | 118 <param name="input_fits" value="legacysurvey_image.fits"/> |
109 <param name="stretch" value="log"/> | 119 <param name="stretch" value="log"/> |
110 <param name="cmap" value="jet"/> | 120 <param name="cmap" value="jet"/> |
111 <output name="output_png" file="legacysurvey_image.png"/> | 121 <param name="out_format" value="png"/> |
122 <output name="output_img" file="legacysurvey_image.png"/> | |
123 </test> | |
124 <test> | |
125 <param name="input_fits" value="legacysurvey_image.fits"/> | |
126 <param name="stretch" value="log"/> | |
127 <param name="cmap" value="jet"/> | |
128 <param name="out_format" value="tiff"/> | |
129 <output name="output_img" file="legacysurvey_image.tiff"/> | |
130 </test> | |
131 <test> | |
132 <param name="input_fits" value="legacysurvey_image.fits"/> | |
133 <param name="stretch" value="log"/> | |
134 <param name="cmap" value="jet"/> | |
135 <param name="out_format" value="jpg"/> | |
136 <output name="output_img" file="legacysurvey_image.jpg"/> | |
112 </test> | 137 </test> |
113 </tests> | 138 </tests> |
114 <help><![CDATA[ | 139 <help><![CDATA[ |
115 Creates a bitmap file from a FITS sky image. | 140 Creates a bitmap file from a FITS sky image. |
116 The dynamic range of the FITS image is represented in the output bitmap image by applying "stretch" transformation. | 141 The dynamic range of the FITS image is represented in the output bitmap image by applying "stretch" transformation. |