Mercurial > repos > siwaa > dairyfit_mergeclim
comparison mergeclim.xml @ 0:58f2fb2b8794 draft
"planemo upload for repository https://forge.inrae.fr/dairyfit/lot2/dairyfit-toolbox commit 95eac72b74db1401ea6c60705beb66f35ba03b22"
| author | siwaa |
|---|---|
| date | Mon, 23 Feb 2026 14:12:21 +0000 |
| parents | |
| children | 6622d8503a60 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:58f2fb2b8794 |
|---|---|
| 1 <tool id="mergeClim" name="mergeClim" version="1.0.0"> | |
| 2 <description> | |
| 3 to merge Stics climate files archives tgz to a single zip, and choose meshes to keep | |
| 4 </description> | |
| 5 <command detect_errors="exit_code"> | |
| 6 mkdir toArchive; | |
| 7 #for $i, $input in enumerate($inputData) | |
| 8 echo '${input}'; echo '${input.name}'; | |
| 9 cp '${input}' 'tmp_${i}.tgz'; | |
| 10 mkdir toArchive/climDir${i}; | |
| 11 tar -xvf 'tmp_${i}.tgz' -C 'toArchive/climDir${i}'; | |
| 12 #end for | |
| 13 tree; | |
| 14 mkdir Clim; | |
| 15 cat ${listOfMesh} | xargs -t -i find . -type f -name {}* | xargs -t -i cp {} Clim; | |
| 16 zip -r Clim Clim; | |
| 17 mv Clim.zip ${output}; | |
| 18 </command> | |
| 19 <inputs> | |
| 20 <param name="inputData" type="data" format="tgz" multiple="true" label="a tgz archive of Stics Climate files"/> | |
| 21 <param name="listOfMesh" type="data" format="txt" label="list of mesh"/> | |
| 22 </inputs> | |
| 23 <outputs> | |
| 24 <data format="zip" name="output" label="SticsClimateFiles"/> | |
| 25 </outputs> | |
| 26 <tests> | |
| 27 </tests> | |
| 28 <help> | |
| 29 the mergeClim Tool | |
| 30 ================== | |
| 31 | |
| 32 credits | |
| 33 ------- | |
| 34 - Wrapper Maintainer: Patrick Chabrier patrick.chabrier@inrae.fr | |
| 35 - Tool Site: https://forgemia.inra.fr/dairyfit/lot2/dairyfit-toolbox | |
| 36 - Copyright: INRAE | |
| 37 </help> | |
| 38 </tool> |
