nickmckay / LiPD-utilities

Input/output and manipulation utilities for LiPD files in Matlab, R and Python
http://nickmckay.github.io/LiPD-utilities/
GNU General Public License v2.0
29 stars 9 forks source link

R: extractTs/collapseTs bug. Losing data. #47

Closed chrismheiser closed 5 years ago

chrismheiser commented 5 years ago

Nick -

bug report for lipdR: extractTs(L,whichtables = “meas”,mode = “chron”)

in chron mode loses a whole bunch of data, the geo, and maybe the paleoData too, and so the original cant be reconstructed Dataset : hjort.Schmidt.2011.lpd

chrismheiser commented 5 years ago

When running this data in extractTs for "paleo" mode and "meas" tables, it collapses normally with some minor changes. It removes the "number" field from the columns and restructures the geo data into the way it should be. Currently, this file has the geo data structured in a flat set, which isn't correct.

When running this data in "chron" and "meas" mode, it completely loses the model data after collapsing. The remaining data seems to be retained, with the same geo restructuring as mentioned before. I'll look into why this model data is lost.