GithubHelp home page GithubHelp logo

mangrove-validation's Introduction

Mangrove validation tool

A tool to allow users to validate and improve the accuracy of our mangrove and coral datasets.

Setup

You’ll need to create a cartodb_config.yml file and place it into config directory:

host: '<your cartodb host>'
oauth_key: 'oauthkey'
oauth_secret: 'oauthsecret'
username: 'username'
password: 'password'

Also, you’ll need to create an http_auth_config.yml:

development:
  admins:
    -
      login: 'login'
      password: 'password'

Redis & Resque

You need redis-server installed and running. Default redis config is in config/resque.yml.

To get the workers running:

QUEUE=download_serve rake resque:work

With debug and verbose:

VVERBOSE=1 QUEUE=download_serve bundle exec rake resque:work

You can view the status of resque jobs in the browser using the resque-web tool.

Capistrano

Workers can be manipulated with a few custom capistrano commands, to get the full list, run:

cap -vT | grep resque

CartoDB SQL

SQL to create the initial database on CartoDB:

INSERT INTO mangrove_and_coral_validation (the_geom, name, status) (SELECT the_geom, 0 AS name, 0 AS status FROM mangroves_to_validate ORDER BY cartodb_id ASC OFFSET 0 LIMIT 50000)
INSERT INTO mangrove_and_coral_validation (the_geom, name, status) (SELECT the_geom, 1 AS name, 0 AS status FROM corals_to_validate)

mangrove-validation's People

Contributors

adammulligan avatar agnessa avatar decioferreira avatar jatorre avatar simaob avatar th3james avatar

Watchers

 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.