CalCOFI / workflows

helper scripts in R for common workflows
https://calcofi.io/workflows
MIT License
0 stars 0 forks source link

viz oceano bottle data (temp, o2, oa, dic) #2

Open bbest opened 2 years ago

bbest commented 2 years ago

Background

Appendix 1: CalCOFI Data Inventory 2021 - Google Sheets:

bbest commented 2 years ago

Profiling

bbest commented 2 years ago

I. Detailed Views for Scientific Audience

A. Survey Tracks

B. Interpolated Surface

II. Synoptic Views for General Audience

A. Survey Tracks

B. Interpolated Surface

bbest commented 2 years ago

See knitted Rmarkdown html with first read of data here:

https://calcofi.github.io/scripts/oceano-bottle.html

Let's consider the following example of CalCOFI survey tracks and wanting to extract information for an Area of Interest (AOI) for some management purpose:

https://shiny.ecoquants.com/calcofi/ Screen Shot 2022-02-09 at 1 32 05 PM

Summarize by AOI

1. Summary stats on station data as points

Function to generate basic statistics (avg, min, max, stdev, hi90, lo10) given some parameters:

Channel Islands Sanctuary as example AOI

image

You can quickly read this noaa-onms/onmsR:sanctuaries.geojson to pull Channel Islands as an example AOI with the following R code:

sanctuaries_geo <- "https://github.com/noaa-onms/onmsR/raw/12a87dfd4b90f2e3009ccb4913315fb2df7afddc/data-raw/sanctuaries.geojson"

cinms_ply <- sf:st_read(sanctuaries_geo) %>%
  dplyr::filter(nms == "CINMS")

cinms_txt <- sf::st_text(cinms_ply$geometry)

2. Extract from interpolated surface

Lots of geostatistical methods here:

References:

bbest commented 2 years ago

@cdobbelaere,

You can use oceano-bottle.Rmd and set path to Google Drive folder calcofi - Google Drive where it's sync'd to your local machine (using Download - Google Drive)

bbest commented 2 years ago

See #3 for more AOIs