Mercurial > repos > jcb-mpl > detrend
changeset 10:4e0ca141f623 draft
Deleted selected files
| author | jcb-mpl |
|---|---|
| date | Mon, 01 Jul 2019 12:45:27 -0400 |
| parents | 6bd6019b6a24 |
| children | 9b2e122472a4 |
| files | conda_scilab6.0.2/meta.yaml detrend_sci602.xml |
| diffstat | 2 files changed, 0 insertions(+), 138 deletions(-) [+] |
line wrap: on
line diff
--- a/conda_scilab6.0.2/meta.yaml Wed May 08 14:58:10 2019 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -package: - name: scilab - version: "6.0.2" - -source: - fn: scilab-6.0.2.bin.linux-x86_64.tar.gz - url: https://www.scilab.org/download/6.0.2/scilab-6.0.2.bin.linux-x86_64.tar.gz - md5: 667cb0789c365beab5c2b0a675ffe98d - folder: scilab-6.0.2 - - -
--- a/detrend_sci602.xml Wed May 08 14:58:10 2019 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,126 +0,0 @@ -<tool id="V18.10_detrend_sci602" name="DT" version="0.1"> - <description> Detrend </description> - -<requirements> - <requirement type="package" >conda</requirement> - <requirement type="package" >conda-build</requirement> -</requirements> - -<stdio> -<exit_code range="1:" level="fatal" /> -</stdio> - -<command><![CDATA[ -if [ ! -d $__root_dir__/database/dependencies/scilab-6.0.2 ]; then echo 'cp -r . $__root_dir__/database/dependencies' >> $__tool_directory__/conda_scilab6.0.2/build.sh; conda-build $__tool_directory__/conda_scilab6.0.2; else $__root_dir__/database/dependencies/scilab-6.0.2/bin/scilab-cli -nb -f '$script_file'; fi -]]> - </command> - - - <configfiles> - <configfile name="script_file"> - if ~isdef('pls') then ... - atomsInstall('FACT'); ... - atomsLoad('FACT'); ... - end; ... - x=glx_tab2div("${Xdata.file_name}"); ... - x2=detrending(x,${degre}); ... - kill=div2tab(x2,"${DT}"); ... - if ~isempty(lasterror(%f)) ... - write(0,lasterror()) ... - end - </configfile> - </configfiles> - - - <inputs> - <param name="Xdata" format="tabular" type="data" label="Select X data" help="Dataset (n x p) containing the n spectra of p variables."/> - <param name="degre" type="integer" value="2" min="0" max="5" label="Degree of the polynom"/> - </inputs> - - <outputs> - <data name="DT" format="tabular" label="DT(${Xdata.name})" /> - </outputs> - - <tests> - <test> - <param name="Xdata" value="test_detrend_input.tabular"/> - <param name="degre" value="2" /> - <output name="DT" > - <assert_contents> - <has_text text="0.000838"/> - <has_text text="0.001114"/> - <has_text text="0.000977"/> - <has_text text="0.001175"/> - <has_text text="0.000690"/> - </assert_contents> - </output> - </test> - </tests> - -<help> - -.. class:: warningmark - -**TIP:** If your data is not TAB delimited, use *Convert format data Tools->Convert* - -.. class:: infomark - -**Authors** Fabien Gogé (IRSTEA), Virginie Rossard (INRA), Eric Latrille (INRA), Jean-Michel Roger (IRSTEA), Jean-Claude Boulet (INRA) - - ---------------------------------------------------- - -======= -DETREND -======= - ------------ -Description ------------ - - -Performs **Detrend**, a baseline correction by orthogonal projection onto a n-order polynomial. -Missing values are not allowed. This scripts uses the FACT-version module. - - ------------ -Input files ------------ - -A matrix of numeric data with headers (tabular format) and decimal separator ".". - - -+--------+-------+--------+ -| Name | 400 | 402 | -+========+=======+========+ -|M102T645| 0.63 |0.64 | -+--------+-------+--------+ -|M105T604| 0.5 |0.49 | -+--------+-------+--------+ - ----------- -Parameters ----------- - -**Degree of the polynom** - -The degree of the polynom used in the Detrend correction - ------------- -Output files ------------- - -**DT(input.file_name)** - -A dataset containing the input file after the Detrend correction; format = tabular. - -</help> - -<citations> - - <citation type="doi">10.1366/0003702894202201</citation> - - </citations> - - -</tool>
