This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHOWTO.txt
executable file
·68 lines (43 loc) · 2.66 KB
/
HOWTO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
ALL FILE NAMES AND LOCATIONS ARE SPECIFIC TO TITA'S WORK -- June 2013
TURN ON VIRTUAL ENVIRONMENT IN CYGWIN
$ source ~/env/drillpad/bin/activate
RETRIEVE LATEST CODE CHANGES
$ cd pybossa_tools
$ git pull
(this will pull new stuff)
IF there are local changes that conflict, it will yell at you. Do...
$ git stash
$ get pull
CREATING/UPDATING CROWD SOURCING APP
$ python createTasks.py -s http://crowd.dev.skytruth.org -k "[API KEY]" -a [name of app in local directory] -r [name of app on server] -c -n 10
OR
$ ./createTasks.py ...
-s server URL
-k API KEY found on server. Find in "Edit Your Profile"
-a
-r
-c to create a new app
-n to set redundancy (ie. 10)
-u to update existing app
-t to add tasks...ie. -t [taskdirectory]/[taskfilename.json]
RETRIEVE RESULTS
TADPOLE - OLD
$ cd
$ cd pybossa_tools
$ python export_task_runs.py drillpadtestapp
Three CSVs will be produced in the C:\cygwin\home\Yolandita\pybossa_tools : results.csv, full_results.csv, county_results.csv
POND-MAPPER
$ python finder/mangleresults.py [directory]/[taskfile.json] [directory]/[taskrunsfile.json] > [directory]/[mangledresultsfile.geojson]
------- OLD ---------
CREATING TASKS
Spuds from 2005-2010 were combined and broken into counties. they are located in C:\Users\Yolandita\Documents\Well Pad App\site info\sites-spuds_by_county
Take desired spuds and put into Cygwin folder with chopper. Copy the corresponding county sid into the same folder. Edit chopper.py to reflect pieces in folder then run in Cygwin.
$ cd newworkingfolder
$ python chopper.py
(one county at a time. for multiple counties, copy and past all the images_names.csv into a new csv before chopping next county and then paste them all back together.)
UPLOADING TASKS TO S3
In S3 open drillpadcat/data/TitasTest/testimages and click upload in ACTIONS dropdown. In upload window click ADD FILES, add all of the PNGs ONLY that were created by chopper. Then click SET DETAILS and continue editing details. Set permissions to public and set metadata as follows: key: content-type. value: image/png.
click START UPLOAD
In S3 open drillpadcat/data/TitasTest/ and click upload. In upload window click ADD FILES, add images_names.csv, then click SET DETAILS and continue editing details. Set permissions to public and set metadata as follows: key: content-type. value: text/plain.
click START UPLOAD
In crowdcrafting app, go to Import Tasks page. Now back in the S3 page, look at the images_names.csv properties. Copy the url displayed and paste it into the URL bar back in crowdcrafting app. Click IMPORT