This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# read in data | |
soil_colour <- | |
readxl::read_excel("KWL_chronology.xlsx", | |
sheet = "soil_color") | |
layer_depths <- | |
readxl::read_excel("KWL_chronology.xlsx", | |
sheet = "depth") # some of the Pit IDs don't match the Pit IDs in the soil_colour sheet... | |
library(tidyverse) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Packages --------------------------------------- | |
import os # Needed for orienting in OS | |
import bibtexparser # Needed for parsing bibtex files | |
from bibtexparser.bparser import BibTexParser # Parses the bibtex | |
from bibtexparser.customization import convert_to_unicode # Converts latex | |
accents to unicode | |
import requests # Needed for uploading to zotero server | |
import pickle # For saving data locally | |
import json # Needed for converting data to zotero-server friendly format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf8 -*- | |
# We'll use the pyzotero project for server access | |
# See packages.python.org/Pyzotero/ | |
from pyzotero import zotero | |
import sys | |
# Python's built-in CSV support is pretty nice |