Smithsonian / CCN-Data-Library

The Coastal Carbon Network Data Library: An open-source database featuring carbon data from tidal wetlands around the world
https://serc.si.edu/coastalcarbon
4 stars 2 forks source link

SWAMP Database Ingestion Issues #101

Closed HolmquistJ closed 4 months ago

HolmquistJ commented 7 months ago

There are a few issues with the new SWAMP/CIFOR data ingestion catalogued below.

Coordinates seem off

These are reading in as separate cores when they are separate depth increments of the same cores

Typo in max depth in the original source, max depth is way deeper than makes sense

BD data looks suspicious in original sourse, may be C density

HolmquistJ commented 7 months ago

Separate depth increments reading in as separate cores is an issue that can probably be solved with a few lines of code.

  1. group_by(study id, site id, core id)
  2. mutate(n_depths = n())
  3. mutate again to create a new core id. If n_depths is less than one, use str_remove to clip off the last underscore and number _1
  4. Use the above table to recode the new core_id from old core id for the other tables.