Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
1 result

Rmock

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    pciturri authored
    Dockerfile now set up container group/user for permission issues. Docker build and run instructions are now detailed in README
    0559ac4c
    History

    Mockup R

    A repo demonstrating a mock-up forecast set-up using R. This will generate a mock forecast with the required formatting for pyCSEP testing, generated from sampled events in the catalogue. Takes in required forecast date from command line (example is "2020-01-01" below) and writes the output forecast to the forecasts folder

    Docker build

    docker build \
    --build-arg USERNAME=$USER \
    --build-arg USER_UID=$(id -u) \
    --build-arg USER_GID=$(id -g) \
    --no-cache \
    -t mockup_r .

    Run docker and create forecast

    docker run --rm --volume $PWD:/usr/src/mockup_R:rw mockup_r Rscript run_forecast.R "2020-01-01"