Giter VIP home page Giter VIP logo

baysim's Introduction

BaySim

DataBay hackathon project (Aug 1-3, 2014)

Derived from a CS class on teaching programming in python, this simcity style game adds a realistic map of the Cheseapeake Bay and allows you to study the interplay of water levels, pollution and a crab population as a measure of the health of the ecosystem.

Watch a 60 second video [https://www.youtube.com/watch?v=ujaMIdameas]

Running BaySim

BaySim is written in python, and does currently not need any special libraries, though it uses tk for display and the cells are hardcoded in size (8 pixels currently)

The code should simply by either "import ui" from the python prompt, or by issuing the command

python ui.py

or simply execute the BaySim script from the shell:

BaySim

Input Data

The current input elevation map is a simple ascii table with 3 columns: X, Y, ELEV, although currently X and Y are ignored and the data must be entered row by row, starting at the bottom.

This ascii table has been created by a shell script convert_png2elev from screendump type PNG from ArcGIS. Because of the limited dynamic range (0-255) of PNG's, we took two PGNs to represent the land, the first 100m and the 100-300m. The depth of the bay came from bathascopy. The script scales and combines the three, and creates that ascii file for input to BaySim. There are no doubt better ways to get this table, but with the limited time/resources this is what we wind up producing.

baysim's People

Contributors

bederson avatar teuben avatar

Watchers

 avatar James Cloos avatar  avatar

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.