In [ ]:
# Import and create the major objects. These include all the sub-objects and sub-functions that we'll need.
from LiPD_Library import *
from TimeSeries_Library import *
from Convert import *
from ts import *

lipd_library = LiPD_Library()
timeseries_library = TimeSeries_Library()
convert = Convert()

In [ ]:
%run __main__.py

In [ ]:
bd = input('whats your birthday?')

In [ ]:
bd

In [ ]:
# Set the library directory to wherever the LiPD files are stored (locally)
lipd_library.setDir("/Users/chrisheiser1/Desktop/lipds")

In [ ]:
# Load in all LiPD files from the set directory
lipd_library.loadLipds()

In [ ]:
# Show what LiPD files are loaded and available
lipd_library.showLipds()

In [ ]:
# Show the JSON metadata for one specific LiPD file
lipd_library.showLipd('SAm-LagunaChepicdeJong2013.lpd')

In [ ]:
# Show the CSV data for one specific LiPD file
lipd_library.showCsv('Asia-MHGSTG.lpd')

In [ ]:
# DEVELOPMENT: working, but not perfectly
# Show a google map with markers of one or more LiPD coordinate locations.
lipd_library.showMap("Asia-LakeXimencuo2013xmc6.lpd")

In [ ]:
# Create a TimeSeries using all the LiPD objects in the LiPD_Library.
extractTimeSeries(lipd_library, timeseries_library, convert)

In [ ]:
# Show all the TimeSeries objects that are in the TimeSeries_Library
timeseries_library.showTsos()
# Show the metadata for one TimeSeries object. timeseries_library.showTso("SAm-CAN15Neukom2011_s1_C.Andes_Cluster_15_Data_20a_spline")

In [ ]:
# Export the TimeSeries_Library back to a LiPD_Library.
exportTimeSeries(lipd_library, timeseries_library, convert)

In [ ]:
# "whos" function shows all variables, functions, objects, and modules currently in memory

In [ ]:
whos
HELP - Valid commands # GETTING STARTED lipd_libary.setDir(path) lipd_libary.loadLipd(filename) lipd_libary.loadLipds() # ANALYSIS - LIPD lipd_libary.showCsv(filename) lipd_libary.showLipd(filename) lipd_libary.showLipds() lipd_libary.showMap(filename) # ANALYSIS - TIME SERIES extractTimeSeries(lipd_library, timeseries_library, convert) exportTimeSeries(lipd_library, timeseries_library, convert) timeseries_library.showTso(name) timeseries_library.showTsos() # CLOSING lipd_libary.saveLipd(filename) lipd_libary.saveLipds() lipd_libary.removeLipd(filename) lipd_libary.removeLipds() # Delete a cell # Press "D" twice when cell is highlighted # Clear output from cell or all cells # Menu > Cell > All Output > Clear

In [ ]:
# How to get help documentation on a function
lipd_library.loadLipds?

In [ ]:
# How to get a list of available functions for an object
lipd_library.<Press TAB>