Skip to content

Commit

Permalink
feat: Adding ASCOR data with different assessment date
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Nov 4, 2024
1 parent 0a631aa commit f27a497
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/tpi/ascor_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def index_assessment; end
def index_emissions_assessment; end

def show_assessment
@assessment = ASCOR::Assessment.find params[:assessment_id]
@assessment = @country.assessments.find params[:assessment_id]
@assessment_date = @assessment.assessment_date
@recent_emissions = Api::ASCOR::RecentEmissions.new(@assessment_date, @country).call
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/tpi/ascor/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
theme: 'ascor',
url: show_assessment_tpi_ascor_path(@country),
data: @country.assessments.map {|v| {label: v['assessment_date']&.strftime('%d %B %Y'), value: v['id']}},
selected: @assessment_date
selected: @assessment.id
}) %>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions db/seeds/tpi/ascor_assessments.csv
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
,2023-10-31,2023-12,,India,No,No,No,No,Partial,Yes,50%,No,No or unsuitable disclosure ,No,201%,No,163%,Yes,Yes,2070,Exempt,Exempt,No,No,No,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Partial,No,No,No,Yes,No,No,No,0.52,No,No,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,No,No,No,Partial,Yes,No,Not applicable,16.92,5.64,No data,23.3,,,,https://unfccc.int/sites/default/files/NDC/2022-08/India%20Updated%20First%20Nationally%20Determined%20Contrib.pdf, , , ,,,,,"https://pib.gov.in/PressReleasePage.aspx?PRID=1768712#:~:text=And%20fifth%2D%20by%20the%20year,have%20proved%20to%20be%20hollow.", ,,,,,,,,,,,,,,,,,,,,,,,,,,,,https://static.pib.gov.in/WriteReadData/specificdocs/documents/2021/dec/doc202112101.pdf,https://dst.gov.in/sites/default/files/Full%20Report%20%281%29.pdf,https://dst.gov.in/climate-change-programme,https://www.undrr.org/media/84088/download?startDownload=true, , ,https://data.worldbank.org/indicator/VA.PER.RNK , ,https://sscgj.in/wp-content/uploads/2022/07/Green-Jobs-Job-Roles-Hand-Book.pdf , ,,,,,https://unfccc.int/sites/default/files/resource/indnc2.pdf,https://climate-laws.org/documents/india-s-long-term-low-carbon-development-strategy_efbc?q=india+adaptation,https://www.indiabudget.gov.in/doc/Budget_Speech.pdf ,https://www.oecd-ilibrary.org/sites/acf5d047-en/1/3/2/index.html?itemId=/content/publication/acf5d047-en&_csp_=3bdc5c1c30cb759d429453c611be28ba&itemIGO=oecd&itemContentType=book#section-d1e313 ,https://globalenergymonitor.org/projects/global-solar-power-tracker/ ,https://globalenergymonitor.org/projects/global-wind-power-tracker/ ,https://globalenergymonitor.org/projects/global-geothermal-power-tracker/ ,https://globalenergymonitor.org/projects/global-hydropower-tracker/ ,,, ,,,,,,,,,,,,,,,,2021,,,2023,2023,2023,2023,
,2023-10-31,2023-12,,Barbados,Partial,No,No data,Yes,Partial,Yes,-76%,No,No or unsuitable disclosure ,No data,No data,Yes,-95%,Yes,Yes,2030,Yes,Yes,No,No,No,No,No,No,0%,No,$0.00,Partial,Yes,2017,Not applicable,0.000%,Not applicable,Not applicable,0.00%,No,0.31%,0.01%,Partial,No,No,4.43,No,Yes,6%,No,1%,Partial,No,No,No,Yes,Yes,No,No,0.88,No,No,Not applicable,Exempt,Exempt,Exempt,Exempt,Exempt,No,No,No,No,No,No,Not applicable,12.42,5.32,No data,No data,,,,https://unfccc.int/sites/default/files/NDC/2022-06/2021%20Barbados%20NDC%20update%20-%2021%20July%202021.pdf, ,https://unfccc.int/sites/default/files/NDC/2022-06/2021%20Barbados%20NDC%20update%20-%2021%20July%202021.pdf, ,,,,,https://unfccc.int/sites/default/files/NDC/2022-06/2021%20Barbados%20NDC%20update%20-%2021%20July%202021.pdf, ,,,,,https://unfccc.int/sites/default/files/NDC/2022-06/2021%20Barbados%20NDC%20update%20-%2021%20July%202021.pdf , ,,,,https://www.imf.org/en/Topics/climate-change/energy-subsidies ,https://www.imf.org/en/Topics/climate-change/energy-subsidies , ,https://www.imf.org/en/Topics/climate-change/energy-subsidies , ,https://globalenergymonitor.org/projects/global-coal-mine-tracker/tracker-map/, ,https://data.worldbank.org/indicator/NY.GDP.COAL.RT.ZS?locations=BB ,https://data.worldbank.org/indicator/NY.GDP.PETR.RT.ZS?locations=BB ,https://data.worldbank.org/indicator/NY.GDP.NGAS.RT.ZS?locations=BB ,https://unfccc.int/sites/default/files/NDC/2022-06/2021%20Barbados%20NDC%20update%20-%2021%20July%202021.pdf ,https://unfccc.int/sites/default/files/NDC/2022-06/2021%20Barbados%20NDC%20update%20-%2021%20July%202021.pdf ,https://data.worldbank.org/indicator/EG.EGY.PRIM.PP.KD,https://www.state.gov/reports/2023-investment-climate-statements/barbados/ ,https://unfccc.int/sites/default/files/NDC/2022-06/2021%20Barbados%20NDC%20update%20-%2021%20July%202021.pdf ,https://energy.gov.bb/download/national-energy-policy-2019-2030/?wpdmdl=3330&refresh=64e739db0079b1692875227,https://data.worldbank.org/indicator/ER.LND.PTLD.ZS?locations=BB,https://www.ibat-alliance.org/country_profiles/, , , ,https://gisbarbados.gov.bb/blog/tag/physical-development-plan/,https://www.ccrif.org/member-countries, ,https://data.worldbank.org/indicator/VA.PER.RNK ,https://www.barbadosparliament.com/uploads/sittings/attachments/17949122239daac3dd0e8c931a178060.pdf ,https://energy.gov.bb/download/barbados-national-energy-policy-2019-2030/?wpdmdl=2669&refresh=65130cf7b9cb21695747319 , ,,,,,https://unfccc.int/sites/default/files/NDC/2022-06/2021%20Barbados%20NDC%20update%20-%2021%20July%202021.pdf, ,https://www.barbadosparliament.com/uploads/document/ee10e8c8c20422828f5fc8cc0d73fc24.pdf ,https://www.imf.org/-/media/Files/Publications/CR/2023/English/1BRBEA2023001.ashx ,https://globalenergymonitor.org/projects/global-solar-power-tracker/ ,https://globalenergymonitor.org/projects/global-wind-power-tracker/ ,https://globalenergymonitor.org/projects/global-geothermal-power-tracker/ ,https://globalenergymonitor.org/projects/global-hydropower-tracker/ ,,, ,,,,,,,2021,2021,,,2021,2021,2021,2021,2022,2021,,,2023,2023,2023,2023,
,2023-10-31,2023-12,,Bangladesh,Partial,No,No,Yes,Partial,Yes,92%,No,No or unsuitable disclosure ,No,262%,Yes,-27%,No,No,No or unsuitable disclosure,Exempt,Exempt,No,No,No,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Partial,Yes,No,No,Yes,No,Partial,No,0.28,No,Yes,Exempt,Exempt,Exempt,Exempt,Exempt,Exempt,Partial,Yes,No,Yes,Yes,Yes,Not applicable,5.85,0.77,0.43,0,,,,https://unfccc.int/sites/default/files/NDC/2022-06/NDC_submission_20210826revised.pdf, ,https://unfccc.int/sites/default/files/NDC/2022-06/NDC_submission_20210826revised.pdf, ,,,,,, ,,,http://www.bcct.gov.bd/sites/default/files/files/bcct.portal.gov.bd/files/9f965916_24d8_4465_9fd2_b1e4bb7582f1/Climate%20Change%20Trust%20Act_2010%20Eanlish.pdf, ,,,,,,,,,,,,,,,,,,,,,,,,https://www4.unfccc.int/sites/SubmissionsStaging/Documents/202211020942---National%20Adaptation%20Plan%20of%20Bangladesh%20(2023-2050).pdf, , ,https://www.undrr.org/media/84088/download?startDownload=true, ,,https://data.worldbank.org/indicator/VA.PER.RNK ,https://moef.portal.gov.bd/sites/default/files/files/moef.portal.gov.bd/publications/f6c2ae73_30eb_4174_9adb_022323da1f39/Mujib%20Climate%20Prosperity%20Plan%202022-2041.pdf ,https://moef.portal.gov.bd/sites/default/files/files/moef.portal.gov.bd/publications/f6c2ae73_30eb_4174_9adb_022323da1f39/Mujib%20Climate%20Prosperity%20Plan%202022-2041.pdf , ,,,,,https://unfccc.int/sites/default/files/NDC/2022-06/NDC_submission_20210826revised.pdf,https://unfccc.int/sites/default/files/resource/TNC Report %28Low Resolation%29 03_01_2019.pdf,https://mof.portal.gov.bd/sites/default/files/files/mof.portal.gov.bd/page/6e496a5b_f5c1_447b_bbb4_257a2d8a97a1/Climate%20English.pdf ,https://mof.portal.gov.bd/sites/default/files/files/mof.portal.gov.bd/page/6e496a5b_f5c1_447b_bbb4_257a2d8a97a1/Climate%20English.pdf ,https://globalenergymonitor.org/projects/global-solar-power-tracker/ ,https://globalenergymonitor.org/projects/global-wind-power-tracker/ ,https://globalenergymonitor.org/projects/global-geothermal-power-tracker/ ,https://globalenergymonitor.org/projects/global-hydropower-tracker/ ,,, ,,,,,,,,,,,,,,,,2021,,,2023,2023,2023,2023,
,2024-10-31,2023-12,,Japan,Partial,Yes,No,No,Partial,Yes,-33%,Yes,15%,No,71%,No,408%,Partial,Yes,2050,Yes,No,Yes,Yes,Yes,Partial,Yes,Yes,73%,No,$2.00,No,No,No or unsuitable disclosure ,No,0.126%,293%,No,0.00%,No,0.00%,0.01%,Partial,Yes,Yes,3.29,No,No,32%,Yes,30%,Yes,Yes,Yes,Yes,Yes,Exempt,No,No,0.84,No,No,No,Partial,Yes,0.209%,No,No or unsuitable disclosure ,Exempt,Exempt,Exempt,Partial,Yes,No,Not applicable,0.63,12.41,0,0.14,,,,https://unfccc.int/sites/default/files/NDC/2022-06/JAPAN_FIRST%20NDC%20%28UPDATED%20SUBMISSION%29.pdf, ,https://unfccc.int/sites/default/files/NDC/2022-06/JAPAN_FIRST%20NDC%20%28UPDATED%20SUBMISSION%29.pdf, ,,,,,https://unfccc.int/sites/default/files/NDC/2022-06/JAPAN_FIRST%20NDC%20%28UPDATED%20SUBMISSION%29.pdf,https://unfccc.int/sites/default/files/NDC/2022-06/JAPAN_FIRST%20NDC%20%28UPDATED%20SUBMISSION%29.pdf, ,,https://www.japaneselawtranslation.go.jp/en/laws/view/4387,https://www.japaneselawtranslation.go.jp/en/laws/view/4387 ,https://climate-laws.org/geographies/japan/laws/act-partially-amending-the-law-on-special-tax-measures-tax-reform-act-2012-law-no-16-of-2012 , ,https://stats.oecd.org/Index.aspx?DataSetCode=ECR, ,https://carbonpricingdashboard.worldbank.org/map_data,https://www.meti.go.jp/information/g7hirosima/energy/pdf/G7MinistersCommunique2023.pdf , , ,https://www.imf.org/en/Topics/climate-change/energy-subsidies,https://www.imf.org/en/Topics/climate-change/energy-subsidies,https://globalenergymonitor.org/projects/global-coal-mine-tracker/tracker-map/,https://data.worldbank.org/indicator/NY.GDP.COAL.RT.ZS , ,https://data.worldbank.org/indicator/NY.GDP.PETR.RT.ZS,https://data.worldbank.org/indicator/NY.GDP.NGAS.RT.ZS ,https://unfccc.int/sites/default/files/NDC/2022-06/JAPAN_FIRST%20NDC%20%28UPDATED%20SUBMISSION%29.pdf,https://elaws.e-gov.go.jp/document?lawid=354AC0000000049 ,https://data.worldbank.org/indicator/EG.EGY.PRIM.PP.KD,https://www.fsa.go.jp/inter/etc/20211104/01.pdf ,https://www.meti.go.jp/information/g7hirosima/energy/pdf/G7MinistersCommunique2023.pdf ,https://www.iea.org/data-and-statistics/data-tools/energy-statistics-data-browser?country=WORLD&fuel=Energy%20supply&indicator=ElecGenByFuel,https://data.worldbank.org/indicator/ER.LND.PTLD.ZS?locations,https://www.ibat-alliance.org/country_profiles/,https://www.env.go.jp/content/900440195.pdf,https://www.env.go.jp/content/000047546.pdf,https://unfccc.int/sites/default/files/resource/2_Japan_July%202018_MOEJ%20Adaptation%20Overview%20REV.pdf,https://www.undrr.org/media/84088/download?startDownload=true, ,,https://data.worldbank.org/indicator/VA.PER.RNK ,https://www.enecho.meti.go.jp/category/others/basic_plan/pdf/20211022_01.pdf ,https://unfccc.int/sites/default/files/resource/Japan_LTS2021.pdf ,https://www.env.go.jp/content/900453366.pdf ,https://unfccc.int/BR5,https://unfccc.int/BR5,https://webarchive.nationalarchives.gov.uk/ukgwa/20230401054904/https:/ukcop26.org/wp-content/uploads/2021/11/Table-of-climate-finance-commitments-November-2021.pdf,https://webarchive.nationalarchives.gov.uk/ukgwa/20230401054904/https:/ukcop26.org/wp-content/uploads/2021/11/Table-of-climate-finance-commitments-November-2021.pdf,https://unfccc.int/sites/default/files/NDC/2022-06/JAPAN_FIRST%20NDC%20%28UPDATED%20SUBMISSION%29.pdf,https://www.env.go.jp/content/900440195.pdf,https://www.env.go.jp/content/000143145.pdf , ,https://globalenergymonitor.org/projects/global-solar-power-tracker/ ,https://globalenergymonitor.org/projects/global-wind-power-tracker/ ,https://globalenergymonitor.org/projects/global-geothermal-power-tracker/ ,https://globalenergymonitor.org/projects/global-hydropower-tracker/ ,,, ,,,,2021,2021,2023,,2021,2021,2021,2021,2021,2021,2021,2022,2021,2020,2021,2023,2023,2023,2023,
11 changes: 10 additions & 1 deletion db/seeds/tpi/ascor_pathways.csv
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,13 @@
,Bangladesh,Intensity per GDP-PPP,Production - only LULUCF ,tCO₂e/Million I US$,2023-10-31,2023-12,2021,21.84,https://zenodo.org/record/7727483,2021,-11.1%,-7.9%,-7.9%,https://zenodo.org/record/7727483,2021,62.45,77.71,70.23,65.15,61.71,57.56,51.93,45.82,42.46,39.00,36.35,33.01,30.77,28.02,25.62,24.56,21.84,,,,,,,,,
,Bangladesh,Absolute,Consumption - excluding LULUCF,MtCO₂e,2023-10-31,2023-12,,No data,,,No data,No data,No data,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,Bangladesh,Intensity per capita,Consumption - excluding LULUCF,tCO₂/capita,2023-10-31,2023-12,,No data,,,No data,No data,No data,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,Bangladesh,Intensity per GDP-PPP,Consumption - excluding LULUCF,tCO₂/Million I US$,2023-10-31,2023-12,,No data,,,No data,No data,No data,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,Bangladesh,Intensity per GDP-PPP,Consumption - excluding LULUCF,tCO₂/Million I US$,2023-10-31,2023-12,,No data,,,No data,No data,No data,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,Japan,Absolute,Production - excluding LULUCF,MtCO₂e,2024-10-31,2023-12,2021,1178.14,https://zenodo.org/record/7727475,2021,2.4%,-1.8%,-1.9%,https://zenodo.org/record/7727475,2021,1383.65,1365.04,1394.20,1318.93,1248.09,1301.48,1351.83,1394.32,1408.56,1359.71,1320.39,1302.24,1294.51,1245.67,1217.33,1150.28,1178.14,1137.66,1097.18,1056.70,1016.22,975.74,935.26,894.78,854.30,813.82
,Japan,Intensity per capita,Production - excluding LULUCF,tCO₂e/capita,2024-10-31,2023-12,2021,9.37,https://zenodo.org/record/7727476,2021,2.9%,-1.5%,-1.7%,https://zenodo.org/record/7727476,2021,10.83,10.68,10.89,10.30,9.75,10.16,10.57,10.92,11.05,10.68,10.39,10.25,10.20,9.82,9.61,9.11,9.37,,,,,,,,,
,Japan,Intensity per GDP-PPP,Production - excluding LULUCF,tCO₂e/Million I US$,2024-10-31,2023-12,2021,218.85,https://zenodo.org/record/7727477,2021,0.1%,-2.1%,-2.8%,https://zenodo.org/record/7727477,2021,336.62,317.43,311.06,291.98,290.55,287.59,292.01,290.51,280.50,270.08,253.93,252.43,246.00,233.09,227.42,218.56,218.85,,,,,,,,,
,Japan,Absolute,Production - only LULUCF ,MtCO₂e,2024-10-31,2023-12,2021,-53.82,https://zenodo.org/record/7727481,2021,-3.3%,1.0%,-0.7%,https://zenodo.org/record/7727481,2021,-88.79,-84.13,-79.69,-68.90,-65.76,-69.97,-68.09,-70.18,-63.03,-61.03,-56.52,-52.34,-56.43,-55.76,-51.03,-52.08,-53.82,,,,,,,,,
,Japan,Intensity per capita,Production - only LULUCF ,tCO₂e/Population,2024-10-31,2023-12,2021,-0.43,https://zenodo.org/record/7727482,2021,-3.8%,0.7%,-0.9%,https://zenodo.org/record/7727482,2021,-0.69,-0.66,-0.62,-0.54,-0.51,-0.55,-0.53,-0.55,-0.49,-0.48,-0.44,-0.41,-0.44,-0.44,-0.40,-0.41,-0.43,,,,,,,,,
,Japan,Intensity per GDP-PPP,Production - only LULUCF ,tCO₂e/Million I US$,2024-10-31,2023-12,2021,-10.00,https://zenodo.org/record/7727483,2021,-1.0%,1.3%,0.2%,https://zenodo.org/record/7727483,2021,-21.60,-19.56,-17.78,-15.25,-15.31,-15.46,-14.71,-14.62,-12.55,-12.12,-10.87,-10.15,-10.72,-10.43,-9.53,-9.90,-10.00,,,,,,,,,
,Japan,Absolute,Consumption - excluding LULUCF,MtCO₂e,2024-10-31,2023-12,2018,1312.01,https://stats.oecd.org/Index.aspx?DataSetCode=IO_GHG_2021,2018,-1.1%,-1.0%,-2.5%,https://stats.oecd.org/Index.aspx?DataSetCode=IO_GHG_2021,2018,1544.72,1529.21,1538.22,1503.32,1384.53,1480.73,1517.15,1569.50,1487.69,1431.63,1350.41,1345.94,1327.21,1312.01,,,,,,,,,,,,
,Japan,Intensity per capita,Consumption - excluding LULUCF,tCO₂/capita,2024-10-31,2023-12,2018,10.35,https://stats.oecd.org/Index.aspx?DataSetCode=IO_GHG_2022,2018,-1.0%,-0.9%,-2.4%,https://stats.oecd.org/Index.aspx?DataSetCode=IO_GHG_2022,2018,12.09,11.96,12.02,11.74,10.81,11.56,11.87,12.30,11.67,11.25,10.62,10.59,10.45,10.35,,,,,,,,,,,,
,Japan,Intensity per GDP-PPP,Consumption - excluding LULUCF,tCO₂/Million I US$,2024-10-31,2023-12,2018,245.51,https://stats.oecd.org/Index.aspx?DataSetCode=IO_GHG_2023,2018,-2.7%,-1.8%,-3.6%,https://stats.oecd.org/Index.aspx?DataSetCode=IO_GHG_2023,2018,375.80,355.60,343.19,332.79,322.31,327.20,327.72,327.01,296.26,284.37,259.70,260.90,252.21,245.51,,,,,,,,,,,,

0 comments on commit f27a497

Please sign in to comment.