Skip to content

FACE-IT-project/WP1

Repository files navigation

FACE-IT

The code repository for Work Package 1 (WP1) of the FACE-IT project. Please visit the GitHub pages for the human friendly version of this repository. There one may find publicly accessible versions of the WP1 deliverables as they are created. This is a workflowr project, meaning it has built-in version tracking information.

Files

The collection, amalgamation, and analyses performed on the data for the FACE-IT project are spread out over several scripts detailed below for convenience. Scripts are listed generally by their order of dependency on each other. The collected and amalgamated data are stored on a pCloud account where they are open to all FACE-IT consortium members. Please contact Robert Schlegel for access (robert.schlegel@imev-mer.fr). v1.0 of the data product has been published on PANGAEA, with a v2.0 planned by the end of WP1 in July 2024.

  • metadata/: Metadata used throughout the project.
  • code/: Scripts used to collect, amalgamate, and analyse data for FACE-IT.
    • workflowr.R: Small script that runs the workflowr code used to compile the WP1 website.
    • functions.R: The location of most of the functions used throughout the other scripts. This contains most of the intellectual effort of the work package. Lot's of fancy footwork.
    • study_sites.R: Metadata for the FACE-IT sites. This is where the figures for the sites used throughout the WP1 website are created.
    • key_drivers.R: All of the code required to accurately scrape the PANGAEA database for FACE-IT relevant data. This is saved in it's own script because it takes a while to load and is only used by data_collection.R.
    • data_query.R: Code used to query the PANGAEA database for available and relevant data.
    • data_collection.R: Primarily used to scrape PANGAEA for FACE-IT relevant data. Also used to subset and compile gridded ice cover data and MUR 1km SST data for the FACE-IT sites.
    • data_processing.R: Workspace for managing the large SOCAT and GLODAP data products. When FACE-IT members have datasets that need to be processed for uploading to PANGAEA, this is done here.
    • data_product.R: This script does a lot of work. First it combines all data collected for FACE-IT from all sources into a single data.frame per site with a project-wide standard format. Then a second layer of cleaning on the collected PANGAEA data is applied before combining them with the manually collected data. These per site files are then re-ordered into products based on driver groupings, as requested by PANGAEA, before publishing them.
    • data_extraction.R: When a specific subset of data is requested from the amalgamated FACE-IT dataset, the record of that request and the code written for it is stored here.
    • data_analysis.R: Where most summary analyses are run and summary figures are saved.
    • site_analysis.R: One-off analyses for specific sites. Also houses the comparisons of SST products against local in situ data as well as the creation of ice cover figures from gridded data.
    • gridded_analysis.R: Used to familiarise oneself with Morten's model output structure. Very short script.
    • ice_cover_and_AIS.R: A brief analysis of ice cover and ship presence (AIS) data. Currently limited to Isfjorden.
    • fjord_light.R: Code for exploring PAR data in the FjordLight package.
    • visualising.R: Test bed for visualising unusual data formats. Not used much.
    • review_paper.R: Code for the analyses and figures of the WP1 review paper (D1.3) on the drivers of change in EU Arctic fjords.
    • data_paper.R: Code for the analyses and figures of the manuscript documenting v1.0 of the WP1 data product.
  • data/: The outputs of the scripts in the code/ folder are saved here. These are not pushed to GitHub. Contact Robert Schlegel (robert.schlegel@imev-mer.fr) for access.
  • figures/: The output of most of the scripts in the code/ folder.
  • analysis/: Markdown and supporting files used to create the pages for the project site
  • docs/: The output of the analysis/ folder.
  • poster/: Files used to create posters for FACE-IT WP1 related presentations. Also contains the .pdf files for the posters.
  • shiny/: Shiny apps developed as part of WP1.
    • dataAcess/: User interface for exploring, filtering, and downloading data collected for FACE-IT.
    • kongCTD/: User interface for uploading CTD data collected in Kongsfjorden.
    • demoMHW/: An interactive demonstration of how the Hobday et al. (2016. 2018) marine heatwave definition works.
  • users/: Folder where anyone in the FACE-IT consortium may create their own folder and manage their code.
  • output/: Empty folder created by workflowr project structure. I prefer to save output to the data/ folder.