Giter Site home page Giter Site logo

leiap's Introduction

LEIA Project Tools

This repository houses code written for the Landscape, Encounters, and Identity Archaeology (LEIA) Project.

Installation

The package is not uploaded to PyPI yet, so to the easiest way to install is to do so directly from the distribution file. Typically, if you want to use a conda environment, you would use these steps:

  1. Download the files in the dist folder of the repository
  2. Activate the conda environment you want to use, e.g.,
$ source activate my_env
  1. Navigate to the location where you saved the dist files, e.g.,
$ cd /MyFiles/Downloads/
  1. pip install the package (see Installing from local archives for more info)
$ pip install ./dist/leiap-0.1.3.tar.gz

Querying the database

In order to query the database, you will need the proper database login credentials. The credentials.json file in this repo is a dummy stand-in file. You will need to update it with the correct values or get a copy of the master file. You can then either:

  • Place it in the same directory as the script that runs the query.

OR

  • Specify its location as a keyword argument in the database query functions.

Documentation

View the docs at deppen8.github.io/leiap

License

License

leiap's People

Contributors

deppen8 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

leiap's Issues

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Create/Update geo_fields

All survey points have a FieldNumber. Ideally, the Easting and Northing should lie geographically within that field. However, that is not always the case: sometimes field boundaries are too difficult to see, sometimes the GPS is not quite accurate enough near field edges, and sometimes there are simply errors in recording.

We should create/update a new column called geo_field that finds the actual geographic FieldNumber of the point. This will require loading the fields shapefile and using geopandas or something similar to find the intersection.

Not sure if this should be part of the checks.py module or something else.

Create working dashboard

There are some key decisions to be made still:
1. Use IPy widgets instead of bokeh widgets? IPy widgets CAN control bokeh plots (see bokeh docs), so that seems promising.

2. Given question 1, should we stick with bokeh or try things with altair instead? My inclination is to stick with bokeh because of altair's problems with really big datasets (though this might be a problem with bokeh too).

fillna(0) workaround for artifacts without coordinates

When importing artifacts from the database, 10 of them did not have corresponding survey points. This raises a couple of questions:

  1. How did these artifacts get entered if there are no corresponding points? Were the points deleted accidentally?
  2. What should we do about it?

For now, I have added a .fillna(0) to the Eastings and Northings in the leiap.spatial.find_geo_field() function. This allows the spatial join (gpd.sjoin()) to proceed without throwing an error, but it will cause headaches later if you try to map these artifacts, so it is not ideal behavior.

For the record, these are the artifacts:

  • 160060-44-202-001
  • 160060-44-202-002
  • 160060-44-202-003
  • 160060-44-203-001
  • 160060-44-203-002
  • 160060-44-204-001
  • 160060-44-204-002
  • 18038b-65-003-001
  • 18038b-65-003-002
  • 18038b-65-003-003

time_span_chart() outstanding elements

There are some things left to do on report.time_span_chart() to make it look like the one produced with matplotlib for previous annual reports.

  • move time values to top axis (or duplicate them there)
  • add count values to each production entry
  • move time period labels outside the chart area
  • add a count of artifacts without time period outside the chart area
  • decide whether to use size or color to represent proportion; probably bad practice to use both

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.