ericye16 / PyAHP

An alternative data-mining program for the Algonquin Heritage Project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Excuse the lack of folders/organization--this was meant to be a quick way to provide a versatile interface to the AHP data.

USAGE OF PyAHP:
Copy (not cut) the "AHPDATA" folder into this directory. While we work on a frielier interface, you can open a python shell and 'from extract import *', and use the extract function to get what you want.
NEW! As of May 25, you can do bulk CSV exports by entering this into a terminal/command prompt: python PyAHP_main.py A B C D E, where A..E are names of fields (see below).

Disclaimer: I said to copy the AHPDATA instead of cut because, while I don't see how things could go wrong, that has been the last words of many. So be safe. This is provided without a warranty.

In other news, this is provided under the Gnu Public License. So if you use any of this code, it better also be licensed under the same license. Excuse the lack of legalese.

Now that we have a collaborator: indents are to be four spaces. Do not use a hard tab, and docstrings are a _necessity_. Things we need to do include: adding support for an exceptions function, which handles things that can't be handled by the usual extract program such as time and other 0-th line fields in AP9 (everything then is messed up), as well as soil type, which spans multiple lines.

FTR, this program will probably not support page 2 of the FDS, since the amount of nulls would be too damn high. It just makes the more numerically-inclined things easier to extract.

Images of Opportunity people! Simply double-click on the ImgsOfOpp.py file and magic should spring forth from the code. Although to be safe, only try this on a *copy* of the data. Images of Opportunity, as the FDSs say they are, will be in a folder inside 'Raw' named 'Images of Opportunity.' If there are any issues, please tell me (Eric). Good luck!

Available fields (in no order whatsoever):
First Pan IMG
TDS1
STSH-S
TDS2
BB2 IMG
SAT-SUN
Stereo IMG
STSL-S
VC1 IMG
Alkalinity
PHOS/NH4 IMG
Shade Soil IMG
Nitrites
VC2 IMG
BB1 IMG
Chlorine
STSL-1
STSL-2
STSL-4
STSL-6
STSL-8
TUR2
TUR1
PanNum
GTS
Time
DO/Soil pH IMG
STSH-4
Weather IMG
STSH-6
STSH-1
Habitat
STSH-2
Chlorine IMG
SWT2
STSH-8
SWT1
DO
SAT-SHA
5 in 1 IMG
SAT-HOG
HYPRO8
HYPRO4
HYPRO6
HYPRO1
HYPRO2
Sun Soil IMG
GND CVR IMG
Soil pH
AP
pH
Page
Nitrates
Water Hardness
Cloud
Windspeed
Phosphates
Ammonia
Note: fields ending in 'IMG' indicate DSCN numbers and are probably not useful.

About

An alternative data-mining program for the Algonquin Heritage Project.


Languages

Language:Python 100.0%