Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brazil - Food Acquisition Program related to readme file addition and testdata #1027

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11,137 changes: 11,137 additions & 0 deletions statvar_imports/brazil_visdata/FoodAcquisitionProgram/Brazil_Places_Resolved.csv

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions statvar_imports/brazil_visdata/FoodAcquisitionProgram/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Brazil - Food Acquisition Program

- source: https://aplicacoes.cidadania.gov.br/vis/data3/data-explorer.php,

- how to download data: Manual download from source based on filter - `Brazil Food Acquisition Program Action to Specific Population Groups`.

- type of place: Country and Municipality level.

- statvars: Demographics, Household

- years: 2011 to 2023

- place_resolution: Places resolved based on municipalty code.
- License:

### How to run:

`python3 stat_var_processor.py --existing_statvar_mcf=stat_vars.mcf --input_data=/usr/local/google/home/shamimansari/Brazil_VISDATA_Readme_Git/data/statvar_imports/brazil_visdata/FoodAcquisitionProgram/test_data/sample_input/<input_file>.csv --pv_map=/usr/local/google/home/shamimansari/Brazil_VISDATA_Readme_Git/data/statvar_imports/brazil_visdata/FoodAcquisitionProgram/test_data/sample_input/<filename>_pvmap.csv --config=/usr/local/google/home/shamimansari/Brazil_VISDATA_Readme_Git/data/statvar_imports/brazil_visdata/FoodAcquisitionProgram/test_data/sample_input/<metadata-file-name>.csv --output_path=/usr/local/google/home/shamimansari/Brazil_VISDATA_Readme_Git/data/statvar_imports/brazil_visdata/FoodAcquisitionProgram/test_data/sample_output/<Filename>


for example:

python3 stat_var_processor.py --existing_statvar_mcf=stat_vars.mcf --input_data='/usr/local/google/home/shamimansari/Brazil_VISDATA_Readme_Git/data/statvar_imports/brazil_visdata/FoodAcquisitionProgram/test_data/sample_input/Programa_de_Aquisicao_de_Alimentos_PAA_Execucao_Geral_(quantidade_de_agricultores_e_recursos_pagos_ano_a_ano) - data.csv' --pv_map='/usr/local/google/home/shamimansari/Brazil_VISDATA_Readme_Git/data/statvar_imports/brazil_visdata/FoodAcquisitionProgram/test_data/sample_input/Programa_de_Aquisicao_de_Alimentos_PAA_Execucao_Geral_(quantidade_de_agricultores_e_recursos_pagos_ano_a_ano) - pvmap.csv' --config='/usr/local/google/home/shamimansari/Brazil_VISDATA_Readme_Git/data/statvar_imports/brazil_visdata/FoodAcquisitionProgram/test_data/sample_input/Programa_de_Aquisicao_de_Alimentos_PAA_Execucao_Geral_(quantidade_de_agricultores_e_recursos_pagos_ano_a_ano) - metadata.csv' --output_path='/usr/local/google/home/shamimansari/Brazil_VISDATA_Readme_Git/data/statvar_imports/brazil_visdata/FoodAcquisitionProgram/test_data/sample_output/FoodAcquisitionProgram_Execution_of_the_Purchase_with_Simultaneous_Donation_modality_via_Adhesion_Term'
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Referência,Agricultores familiares - Compra com Doação Simultânea,Agricultores familiares - Incentivo à Produção e ao Consumo de Leite,Agricultores familiares - Compra Direta,Agricultores familiares - Apoio à Formação de Estoques,Agricultores familiares - Aquisição de Sementes
12/2011,120493,28616,894,10153,
12/2012,124950,28182,13100,19388,
12/2013,66691,20001,3269,4199,
12/2014,83222,22404,2800,4549,
12/2015,70350,22063,1559,2778,1060
12/2016,61376,14952,,1223,269
12/2017,52743,12637,2336,676,377
12/2018,45551,7572,,529,169
12/2019,34442,8883,,767,315
12/2020,59911,6266,,,17
12/2021,43584,7815,,,
12/2022,16876,2003,,,
09/2023,20955,2915,,,
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
parameter,value
url,
description,Family farmers supplying the Food Acquisition Program - PAA by modality (non-repeat farmers)
#place_type,
#places_within,
start_date,
end_date,
release_frequency,
process,
comments,Agricultores familiares fornecedores do Programa de Aquisição de Alimentos - PAA por modalidade (agricultores sem repetição)
#places_resolved_csv,
output_columns,"observationAbout, observationDate, value, variableMeasured,unit, scalingFactor"
header_rows,1
#input_rows,5
#dropping_statvar_without_svobs,0
schemaless,1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
key,prop,val,p1,v1,p2,v2,p3,v3,p4,v4,p5,v5
Referência,observationDate,{Data},observationAbout,country/BRA,householdType,FarmingFamily,populationType,Household,benefitProgram,Brazil_FoodAcquisitionProgram,,
Agricultores familiares - Compra com Doação Simultânea,purchaseModality,PurchaseWithSimultaneousDonation,value,{Number},description,"""Number of Family Farmers Supplying the PAA Program Under the Purchase with Simultaneous Donation Modality""",alternateName,"""Número de Agricultores Familiares Abastecedores do Programa PAA na modalidade Compra com Doação Simultânea@pt""",,,,
Agricultores familiares - Incentivo à Produção e ao Consumo de Leite,purchaseModality,IncentiveForMilkProductionAndConsumption,value,{Number},description,"""Number of Family Farmers Supplying the PAA Program Under the Purchase with Incentive For Milk Production And Consumption""",alternateName,"""Número de Agricultores Familiares Abastecedores do Programa PAA no âmbito da Compra com Incentivo à Produção e Consumo de Leite@pt""",,,,
Agricultores familiares - Compra Direta,purchaseModality,DirectPurchase,value,{Number},description,"""Number of Family Farmers Supplying the PAA Program Under the Purchase with Direct Purchase""",alternateName,"""Número de Agricultores Familiares Abastecedores do Programa PAA no âmbito da Compra com Compra Direta@pt""",,,,
Agricultores familiares - Apoio à Formação de Estoques,purchaseModality,SupportForStockBuilding,value,{Number},description,"""Number of Family Farmers Supplying the PAA Program Under the Purchase with Support For Stock Building""",alternateName,"""Número de Agricultores Familiares Abastecendo o Programa PAA no âmbito da Compra com Apoio à Formação de Estoque@pt""",,,,
Agricultores familiares - Aquisição de Sementes,purchaseModality,AcquisitionOfSeeds,value,{Number},description,"""Number of Family Farmers Supplying the PAA Program Under the Purchase with Acquisition Of Seeds""",alternateName,"""Número de Agricultores Familiares Abastecedores do Programa PAA no âmbito da Compra com Aquisição de Sementes@pt""",,,,
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Referência,Agricultores familiares ? sexo masculino,Agricultores familiares ? sexo feminino,Agricultores familiares ? sem informação de sexo
12/2011,91740,36890,28617
12/2012,112239,52014,15098
12/2013,57677,35270,563
12/2014,66687,45462,15
12/2015,57768,39222,17
12/2016,43702,33675,17
12/2017,36585,31708,20
12/2018,27999,25658,1
12/2019,24632,19559,
12/2020,29169,36873,
12/2021,29715,21585,
11/2022,9658,8146,
12/2022,17904,8557,
09/2023,12892,10785,
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
parameter,value
url,
description,Family farmers supplying the Food Acquisition Program - PAA by sex
#place_type,
#places_within,
start_date,
end_date,
release_frequency,
process,
comments,Agricultores familiares fornecedores do Programa de Aquisição de Alimentos - PAA por sexo
#places_resolved_csv,
output_columns,"observationAbout, observationDate, value, variableMeasured,unit, scalingFactor"
header_rows,1
#input_rows,5
#dropping_statvar_without_svobs,0
schemaless,1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
key,prop,val,p1,v1,p2,v2,p3,v3,p4,v4,p5,v5
Referência,observationDate,{Data},observationAbout,country/BRA,householdType,FarmingFamily,populationType,Household,benefitProgram,Brazil_FoodAcquisitionProgram,,
Agricultores familiares ? sexo masculino,gender,Male,value,{Number},description,"""Number of Male Family Farmers Supplying the Food Acquisition Program (PAA)""",alternateName,"""Número de Agricultores Familiares Masculinos Abastecedores do Programa de Aquisição de Alimentos (PAA)@pt""",,,,
Agricultores familiares ? sexo feminino,gender,Female,value,{Number},description,"""Number of Female Family Farmers Supplying the Food Acquisition Program (PAA)""",alternateName,"""Número de Mulheres Agricultoras Familiares Abastecedoras do Programa de Aquisição de Alimentos (PAA)@pt""",,,,
Agricultores familiares ? sem informação de sexo,gender,GenderUnknownOrNotStated,value,{Number},description,"""Number of Family Farmers(No Gender Information) Supplying the Food Acquisition Program (PAA)""",alternateName,"""Número de Agricultores Familiares (Sem Informação de Gênero) Abastecedores do Programa de Aquisição de Alimentos (PAA)@pt""",,,,
Loading
Loading