NEANIAS Gitlab

Commit 9f33e7cc authored by Carlos H. Brandt's avatar Carlos H. Brandt
Browse files

Update script usage docs

parent ca88aa10
......@@ -8,7 +8,7 @@ ORBIT=${ORBIT:-0100}
function usage() {
echo ""
echo "Usage:"
echo "-----"
echo ""
echo " $ ${BASH_SOURCE} docs|meta|data"
echo ""
echo " docs : documents (txt) and light metadata"
......@@ -17,23 +17,23 @@ function usage() {
echo ""
echo "Variables can be used to change defaults/states:"
echo " ORBIT : sample data orbit #ID, default is '$ORBIT'"
echo " DRY_RUN : if defined (e.g., 'yes') don't download data,"
echo " just echo 'would be' command"
echo " DRY_RUN : do not download data if defined (e.g., 'y'),"
echo " echoes what 'would be' run"
echo ""
echo "Examples:"
echo "--------"
echo " Download data for default Orbit, $ORBIT:"
echo ""
echo " $ ./download_sample.sh data"
echo " Download data for default Orbit, $ORBIT:"
echo ""
echo " $ ./download_sample.sh data"
echo ""
echo " And what will be the download actions for docs/meta"
echo " (when DRY_RUN is not set):"
echo " With DRY_RUN set, just print what would be run for docs/meta:"
echo ""
echo " $ DRY_RUN=yes ./download_sample.sh docs"
echo " $ DRY_RUN=y ./download_sample.sh docs"
echo " $ DRY_RUN=y ./download_sample.sh meta"
echo ""
echo " Print (wget) commands for downloading Data for Orbit I957:"
echo ""
echo " $ DRY_RUN=y ORBIT=I975 ./download_sample.sh data"
echo " $ DRY_RUN=y ORBIT=I975 ./download_sample.sh data"
echo ""
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment