Unverified Commit 71289bb6 authored by Akke Esa Tapio Viitanen's avatar Akke Esa Tapio Viitanen
Browse files

add download repo assets script

parent 68f4b0a9
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -134,10 +134,11 @@ calibration-level data should be downloaded. Instructions on downloading these
::

    # Create repo_assets directory
    mkdir $AGILE_DIR/opt/repo_assets
    mkdir $AGILE_DIR/data/repo_assets

    # Extract the files from https://portal.nersc.gov/cfs/descssim/imSim/repo_assets/
    # to the created directory
    . src/scripts/download_repo_assets.sh $AGILE_DIR/data/repo_assets

    # Point REPO_ASSET_DIR environment variable to the location
    export REPO_ASSET_DIR=$AGILE_DIR/opt/repo_assets
    export REPO_ASSET_DIR=$AGILE_DIR/data/repo_assets
+10 −0
Original line number Diff line number Diff line
if [ $# -eq 0 ] ; then
	echo "Download the repo_assets directory from NERSC."
	echo "Usage: $0 [dirname]"
	echo "Example: $0 data/repo_assets"
fi

dirname=$1
mkdir -vp $dirname

wget -r -np -nH --cut-dirs=4 -R "index.html*" -P "$dirname" https://portal.nersc.gov/cfs/descssim/imSim/repo_assets