The CCIEA Uploader is an on-line resource for uploading, standardizing, and organizing CCIEA indicator data for each Ecosystem Status Report year each CCIEA Data Provider.
The uploader provides:
- Daily status of uploaded data
- View of current metadata
- Downloads of previous data and metadata
- A location to upload new data
- Real-time checks that data to be uploaded follows basic CCIEA file conventions
The code in this repository consists of GitHub actions to assemble information and updates from Google Spreadsheets and Drive, and a Quarto Website written in R and OJS.
- Github Action - runs daily at 6 am
- main.yaml: get_status.R
- libraries: tidyverse (uses: jsonlite, tibble, dplyr, googledrive, googlesheets4)
- loads: _init.R, _gdrive.R, _pi_folders_to_json.R
- runs:
- check_upload()
- check for new files in data provider upload folder
- check file types:
- PI metadata: incorporate back into full spreadsheet
- data file: clean it and move to esr_year folder, plot it (work in progress)
- other file types: just move them to esr_folder
- Backup original files (PI_original folder)
- get_file_conventions()
- input: file name conventions (Google Drive spreadsheet)
- output: cciea_naming_conventions.json
- get_indices()
- input: CCIEA Metadata (Google Drive spreadsheet)
- output:
- items_meta.json (for menu generation)
- metadata.csv (complete copy of metadata)
- generate_file_status()
- input: Google Drive esr_year folder for each data provider
- output: uploader_status.json
- check_upload()
- main.yaml: get_status.R
- Web Page (Quarto)
- _quarto.yml
- uploader.qmd
- code: Markdown, OJS/html
- input:items_meta.json, cciea_naming_conventions.json
- status.qmd
- code: R, OJS, flextable
- format: html:grid
- includes:
- _pi_folders_to_df.qmd, libraries: flextable, jsonlite, tibble, officer
- _init.qmd
- input: uploader_status_[esr_year].json
- uploader.qmd
- _quarto.yml
- CCIEA Web pages: https://www.integratedecosystemassessment.noaa.gov/regions/california-current
- Ecosystem Status Reports: https://www.integratedecosystemassessment.noaa.gov/regions/california-current/california-current-reports
- Technical Documentation: https://cciea-esr.github.io/ESR-Technical-Documentation-FY2025/
