Repository for Petra's work at ampli Jan-Feb 2019
Petra Lamborn 07ff8e137b Need to actually save tcorr 5 anos atrás
R Assign a new sample to clusters; look at how well it is modeled 5 anos atrás
img Add images 5 anos atrás
py Need to actually save tcorr 5 anos atrás
sql Start writing readme 5 anos atrás
.gitignore A harmonic model for annual patterns in rolling 24-hour minimum temperature 5 anos atrás
README.md Further readme 5 anos atrás
notes.md Add and reorganise notes 5 anos atrás
requirements.txt Create virtualenv requirements file 5 anos atrás

README.md

ampli

Repository for Petra’s work at ampli Jan-Feb 2019

What isn’t in this repository

This repository does not contain with it downloaded data (for confidentiality and size reasons), the fitted models (similar issues), or the configuration file for downloading from the database (which contains a password). Recreate an empty data/ directory and model/. The configuration file is at py/database.ini and looks like:

[postgresql]
host=<Hname>
database=<dbname>
user=<Username>
password=<Password>

This file is based on an example from the postgresSQL website. Replace <Username> and <Password> with valid credentials.

SQL

I’ve included a bunch of annotated SQL queries in sql/queries.pgsql and sql/weather.pgsql. The latter file is specifically about the weather dataset; the former is more general. Some of the queries are copied into the py/util.py file, but changing these two files will do nothing on their own.

Python

requirements.txt contains the python packages required to set up a virtual environment with virtualenv -p /usr/bin/python3 venv and pip install -r requirements.txt. Notably these are:

  • numpy
  • pandas
  • pkg-resources
  • psycopg2-binary
  • pyparsing
  • python-dateutil
  • pytz
  • scipy
  • seaborn
  • statsmodels