Skip to content

Commit

Permalink
Change AgProducts level1 codes to add _total at the end, to match
Browse files Browse the repository at this point in the history
dataset.
  • Loading branch information
makmanalp committed Jun 19, 2017
1 parent 3eb6374 commit db9f0e3
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
56 changes: 28 additions & 28 deletions product/Datlas/Rural/in/AgProducts_Hierarchy.tsv
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
level2 level1 level0
cocoa agroind total
coffee agroind total
cotton agroind total
other agroind agroind total
palm agroind total
panela cane agroind total
rubber agroind total
sugar cane agroind total
tobacco agroind total
other cereals cereals total
rice cereals total
white corn cereals total
yellow corn cereals total
avocado fruits total
banana expo fruits total
banana other fruits total
citrics fruits total
other fruits fruits total
papaya fruits total
pinneaple fruits total
flowers & foliage greens total
forest plants greens total
herbs greens total
vegetables greens total
other tubers pltubers total
plantain pltubers total
potatoes pltubers total
yucca pltubers total
cocoa agroind_total total
coffee agroind_total total
cotton agroind_total total
other agroind agroind_total total
palm agroind_total total
panela cane agroind_total total
rubber agroind_total total
sugar cane agroind_total total
tobacco agroind_total total
other cereals cereals_total total
rice cereals_total total
white corn cereals_total total
yellow corn cereals_total total
avocado fruits_total total
banana expo fruits_total total
banana other fruits_total total
citrics fruits_total total
other fruits fruits_total total
papaya fruits_total total
pinneaple fruits_total total
flowers & foliage greens_total total
forest plants greens_total total
herbs greens_total total
vegetables greens_total total
other tubers pltubers_total total
plantain pltubers_total total
potatoes pltubers_total total
yucca pltubers_total total
10 changes: 5 additions & 5 deletions product/Datlas/Rural/in/AgProducts_Names.tsv
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
code level name_en name_short_en name_es name_short_es
total level0 Total Total Total Total
cereals level1 Cereals Cereals Cereals Cereals
pltubers level1 Tubers Tubers Tubers Tubers
agroind level1 Total Agroindustries Total Agroindustries Total Agroindustries Total Agroindustries
greens level1 Greens Greens Greens Greens
fruits level1 Fruits Fruits Fruits Fruits
cereals_total level1 Cereals Cereals Cereals Cereals
pltubers_total level1 Tubers Tubers Tubers Tubers
agroind_total level1 Total Agroindustries Total Agroindustries Total Agroindustries Total Agroindustries
greens_total level1 Greens Greens Greens Greens
fruits_total level1 Fruits Fruits Fruits Fruits
palm level2 Palm Palm Palm Palm
avocado level2 Avocado Avocado Avocado Avocado
papaya level2 Papaya Papaya Papaya Papaya
Expand Down
10 changes: 5 additions & 5 deletions product/Datlas/Rural/out/agricultural_products.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"","code","name","level","name_en","name_es","parent_id"
0,"total","Total","level0","Total","Total",""
1,"agroind","Total Agroindustries","level1","Total Agroindustries","Total Agroindustries",0.0
1,"agroind_total","Total Agroindustries","level1","Total Agroindustries","Total Agroindustries",0.0
2,"cocoa","Cocoa","level2","Cocoa","Cocoa",1.0
3,"coffee","Coffee","level2","Coffee","Coffee",1.0
4,"cotton","Cotton","level2","Cotton","Cotton",1.0
Expand All @@ -10,25 +10,25 @@
8,"rubber","Rubber","level2","Rubber","Rubber",1.0
9,"sugar cane","Sugar Cane","level2","Sugar Cane","Sugar Cane",1.0
10,"tobacco","Tobacco","level2","Tobacco","Tobacco",1.0
11,"cereals","Cereals","level1","Cereals","Cereals",0.0
11,"cereals_total","Cereals","level1","Cereals","Cereals",0.0
12,"other cereals","Other Cereals","level2","Other Cereals","Other Cereals",11.0
13,"rice","Rice","level2","Rice","Rice",11.0
14,"white corn","White Corn","level2","White Corn","White Corn",11.0
15,"yellow corn","Yellow Corn","level2","Yellow Corn","Yellow Corn",11.0
16,"fruits","Fruits","level1","Fruits","Fruits",0.0
16,"fruits_total","Fruits","level1","Fruits","Fruits",0.0
17,"avocado","Avocado","level2","Avocado","Avocado",16.0
18,"banana expo","Banana Expo","level2","Banana Expo","Banana Expo",16.0
19,"banana other","Other Banana","level2","Other Banana","Other Banana",16.0
20,"citrics","Citrics","level2","Citrics","Citrics",16.0
21,"other fruits","Other Fruits","level2","Other Fruits","Other Fruits",16.0
22,"papaya","Papaya","level2","Papaya","Papaya",16.0
23,"pinneaple","Pinneaple","level2","Pinneaple","Pinneaple",16.0
24,"greens","Greens","level1","Greens","Greens",0.0
24,"greens_total","Greens","level1","Greens","Greens",0.0
25,"flowers & foliage","Flowers & Foliage","level2","Flowers & Foliage","Flowers & Foliage",24.0
26,"forest plants","Forest Plants","level2","Forest Plants","Forest Plants",24.0
27,"herbs","Herbs","level2","Herbs","Herbs",24.0
28,"vegetables","Vegetables","level2","Vegetables","Vegetables",24.0
29,"pltubers","Tubers","level1","Tubers","Tubers",0.0
29,"pltubers_total","Tubers","level1","Tubers","Tubers",0.0
30,"other tubers","Other Tubers","level2","Other Tubers","Other Tubers",29.0
31,"plantain","Plantain","level2","Plantain","Plantain",29.0
32,"potatoes","Potatoes","level2","Potatoes","Potatoes",29.0
Expand Down
Binary file modified product/Datlas/Rural/out/agricultural_products.dta
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="linnaeus",
version="v0.0.72",
version="v0.0.73",
author="Mali Akmanalp <Harvard CID>",
description=("Harvard CID's classification tools."),
url="http://github.com/cid-harvard/classifications/",
Expand Down

0 comments on commit db9f0e3

Please sign in to comment.