A minimal Shiny application to demonstrate EDS services, using the Amundsen Sea Low Index as a case study.
This application reads in data from the JASMIN Object Store, generated from the ASLI BOOST-EDS pipeline, which is deployed on JASMIN.
This application is deployed on Datalabs, but has been written to allow deployment elsewhere.
You can install the development version of asliapp
:
remotes::install("antarctica/asliapp")
If you want to run the app locally:
devtools::load_all()
run_app()
This packages uses renv
, which should automatically bootstrap itself on installation. This app also uses Python packages. Once renv
is activated, run:
renv::use_python()
renv::restore()
For more see collaborating with renv for more.
To read in data on the JASMIN object store (or any other object store), you must have valid user credentials. These are associated with your JASMIN account, and will be in the form of 2 string: an Access Key and a Secret Key. These should be kept securely.
It is recommended to keep these in an .Renviron
file, which you can generate one using usethis::edit_r_environ(scope = "project")
. A template .Renviron
file (example.app.env
) is provided in this repository.
To host this application on Datalabs, you can clone this repository to a notebook:
- In your Datalabs Project, create a new RStudio notebook. This notebook will be your "backend", so note down
<your-notebook-name>
which you provide under 'URL Name'. Set access to Private! - Once your notebook is set up, open it and create a New R Project > Version Control. Check out this repository using HTTPS, and enter your credentials. Note down
<your-project-name
>. - Run
renv::restore()
as per the instructions under Installation. - Create an
.Renviron
file and populate it using the same structure as theexample.app.env
template, as per the instructions under Configuration. Note thatscope = "project"
ensures it appears in the right directory. - (Optional) if you want to test run the app in the notebook, run
readRenviron(".Renviron")
before you 'Run App' or in the consolerunApp('~/<your-project-name>')
. - Exit your notebook, return to your Datalabs Projects page and under Sites, Create Site.
- Create an RShiny site, ensuring your 'Source Path' is defined as
notebooks/rstudio-<your-notebook-name>/<your-project-name>
. It should now be hosted onhttps://ditbas-<yourprojectname>.datalabs.ceh.ac.uk/
.
This work used JASMIN, the UK’s collaborative data analysis environment (https://www.jasmin.ac.uk).
This application displays ASL data calculated using Hosking & Wilby, based on methods in Hosking et al. 2016. The ASL calculations are use data from Hersbach, H. et al., (2018) downloaded from the Copernicus Climate Change Service (2023). This applications is continually updated, hence these are cited without an access date.
Copernicus Climate Change Service (2023): ERA5 hourly data on single levels from 1940 to present. Copernicus Climate Change Service (C3S) Climate Data Store (CDS), DOI: 10.24381/cds.adbb2d47.
Hersbach, H., Bell, B., Berrisford, P., Biavati, G., Horányi, A., Muñoz Sabater, J., Nicolas, J., Peubey, C., Radu, R., Rozum, I., Schepers, D., Simmons, A., Soci, C., Dee, D., Thépaut, J-N. (2018): ERA5 hourly data on single levels from 1940 to present. Copernicus Climate Change Service (C3S) Climate Data Store (CDS), DOI: 10.24381/cds.adbb2d47.
Hosking, J. S., A. Orr, T. J. Bracegirdle, and J. Turner (2016), Future circulation changes off West Antarctica: Sensitivity of the Amundsen Sea Low to projected anthropogenic forcing, Geophys. Res. Lett., 43, 367–376, doi:10.1002/2015GL067143.
Hosking, J. S., & Wilby, D. asli [Computer software]. https://github.com/scotthosking/amundsen-sea-low-index
Lawrence, B. N. , Bennett, V. L., Churchill, J., Juckes, M., Kershaw, P., Pascoe, S., Pepler, S., Pritchard, M. and Stephens, A. (2013) Storing and manipulating environmental big data with JASMIN. In: IEEE Big Data, October 6-9, 2013, San Francisco.