Skip to content

Commit

Permalink
revised paths for geco ws2
Browse files Browse the repository at this point in the history
  • Loading branch information
stineb committed Jul 25, 2024
1 parent 20017ac commit e827ede
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data-raw/02_compile_final_site_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ df <- df |>

## root zone water storage capacity---------------------------------------------
# using the map from Stocker et al., 2023, obtainable from Zenodo at https://doi.org/10.5281/zenodo.5515246
whc <- raster("~/mct/data/cwdx80_forcing.nc")
whc <- raster("/data/archive/whc_stocker_2023/data/zroot_cwdx80_forcing.nc")
whc_v <- raster::extract(whc, loc)

# append to original data frame
Expand All @@ -271,7 +271,7 @@ df <- df |>

## Get still missing elevation data from ETOPO1---------------------------------
# file is too large to add it to this repo.
etopo <- raster("~/data/archive/etopo_NA_NA/data/ETOPO1_Bed_g_geotiff.tif")
etopo <- raster("/data/archive/etopo_NA_NA/data/ETOPO1_Bed_g_geotiff.tif")
etopo_v <- raster::extract(etopo, loc)

# add etopo1 column
Expand Down Expand Up @@ -361,12 +361,12 @@ print(igbp_by_source |>
dplyr::filter(IGBP_fdk != IGBP_eu | IGBP_fdk != IGBP_flx2015))

# Get C3/C4 classification and C4-% from data shared by Yanghui Kang (Trevor's group)
site_summary_YK = read.csv("data-raw/meta_data/site_summary_yanghui_kang.csv")
site_summary_YK = readr::read_csv("data-raw/meta_data/site_summary_yanghui_kang.csv")

df <- df |>
left_join(
site_summary_YK |>
dplyr::select(SITE_ID, c3c4 = C3.C4) |>
dplyr::select(SITE_ID, c3c4 = `C3/C4`) |>
rename(sitename = SITE_ID),
by = join_by(sitename)
) |>
Expand Down
Binary file modified data/fdk_site_info.rda
Binary file not shown.

0 comments on commit e827ede

Please sign in to comment.