From 9ddab10c7a506f30e6e91423f9feefe8d98910e6 Mon Sep 17 00:00:00 2001 From: Varun Ratnakar Date: Thu, 9 May 2024 21:55:38 +0530 Subject: [PATCH] Removing synonym of uncertainty as age --- pylipd/globals/synonyms.json | 4 ++-- pylipd/usage.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pylipd/globals/synonyms.json b/pylipd/globals/synonyms.json index 5de82d4..5da0109 100644 --- a/pylipd/globals/synonyms.json +++ b/pylipd/globals/synonyms.json @@ -6766,8 +6766,8 @@ "label": "accumulation" }, "age": { - "id": "http://linked.earth/ontology/variables#uncertainty", - "label": "uncertainty" + "id": "http://linked.earth/ontology/variables#age", + "label": "age" }, "age_original": { "id": "http://linked.earth/ontology/variables#age", diff --git a/pylipd/usage.py b/pylipd/usage.py index a10feb0..c978485 100644 --- a/pylipd/usage.py +++ b/pylipd/usage.py @@ -76,10 +76,11 @@ lipd = LiPD() #lipd.load("/Users/varun/git/pylipd/pylipd/data/ODP846.Lawrence.2006.lpd") -lipd.load("/Users/varun/Downloads/IC06THPR.lpd") +lipd.load("/Users/varun/Downloads/CO17WUBO1B.lpd") print(lipd.get_all_dataset_names()) ts, ts_df = lipd.get_timeseries(lipd.get_all_dataset_names(), to_dataframe=True) -print(ts_df[["dataSetName", "year", "archiveType", "paleoData_variableName", "paleoData_units"]]) +print(ts_df.columns) +print(ts_df[["dataSetName", "age", "archiveType", "paleoData_variableName", "paleoData_units"]]) exit() series = lipd.to_lipd_series() print(series.get_all_variable_names())