Skip to content
Snippets Groups Projects
Commit 57d2ecdd authored by RIETTE Sébastien's avatar RIETTE Sébastien
Browse files

S. Riette Oct 23: small testprogs dataset hosted on github

parent 7e0c5468
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#set -x
set -e
set -o pipefail #abort if left command on a pipe fails
PHYEXTOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function usage {
echo "Usage: $0 [-h] [--install-dataset]"
echo "--install-dataset Install a reduced dataset for the test programs"
}
install_dataset=0
while [ -n "$1" ]; do
case "$1" in
'--install-dataset') install_dataset=1;;
esac
shift
done
if [ $install_dataset -eq 1 ]; then
cd $PHYEXTOOLSDIR/testprogs_data/
for file in https://github.com/UMR-CNRM/PHYEX/files/12783926/ice_adjust.tar.gz \
https://github.com/UMR-CNRM/PHYEX/files/12783935/rain_ice.tar.gz \
https://github.com/UMR-CNRM/PHYEX/files/12783942/rain_ice_old.tar.gz \
https://github.com/UMR-CNRM/PHYEX/files/12783945/shallow.tar.gz \
https://github.com/UMR-CNRM/PHYEX/files/12783952/turb.tar.gz; do
basefile=$(basename $file)
wget --no-check-certificate $file -O $basefile
tar xf $basefile
rm -f $basefile
done
fi
......@@ -7,11 +7,10 @@ These programs need data. This document describes how to generate the data, the
This document is written using the markdown language. With pandoc, it can be converted to HTML (pandoc -s \<filename\>.md -o \<filename\>.html) or PDF (pandoc -s \<filename\>.md -o \<filename\>.pdf).
## DATA
## DATA GENERATION
There are two options.
Please, refer to the [Offline](../docs/Offline.md) documentation.
On one hand, the data can be generated (please, refer to the [Offline](../docs/Offline.md) documentation) and, once produced, be put in the corresponding directories under tools/testprogs\_data.
## DATA INSTALLATION
Once produced, the data must be put in the corresponding directories under tools/testprogs\_data.
On the other hand, a reduced dataset can be automatically dowloaded and installed using the INSTALL.sh script.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment