The Climate Equity Reference Calculator

The Climate Equity Reference Calculator - Published in JOSS (2019)

https://github.com/climateequityreferenceproject/cerc-web

Science Score: 93.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 9 DOI reference(s) in README and JOSS metadata
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

climate-change climate-justice effort-sharing equity-calculator unfccc
Last synced: 6 months ago · JSON representation

Repository

The web interface to the Climate Equity Reference Calculator (CERc)

Basic Info
Statistics
  • Stars: 3
  • Watchers: 0
  • Forks: 0
  • Open Issues: 2
  • Releases: 3
Topics
climate-change climate-justice effort-sharing equity-calculator unfccc
Created over 7 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing License Code of conduct

README.md

DOI DOI License: GPL v3 Contributor Covenant

Overview

cerc-web is the web interface to the Climate Equity Reference Calculator. It is mainly written in PHP with some user interface elements written in javascript to achieve dynamic interactivity.

Requirements

You will need a web server with php enabled and sqlite3 installed. The web server must be permissible enough to allow compiled executables (the calculator engine) to be run by the php process. You will also need a MySQL database server that is accessible from the web server. Finally, you need a way of compiling the calculator engine from its C source code for whatever operating system your web server is running.

Installation

Pre-installed docker file

Since installation of cerc-web is a bit complicated, a self-containing docker image with all of the required code elements and dependencies is available at https://hub.docker.com/r/climateequityreferenceproject/cerc-web The Dockerfile used to build the docker image from source and further details (e.g. download and run instructions) are also contained in the docker sub directory of this repository. Docker is free virtualization software, is available for all major operating systems, and can be downloaded from https://www.docker.com/

Your own Installation

This repository contains all files of the web interface, however, there are several databases to obtain and/or create and you also need to obtain or compile an executable of the calculator "engine." Instead of installing your own version of the software, you can also simply head over to https://calculator.climateequityreference.org where the authors maintain a fully functional installation of the calculator.

  1. Install the web interface files: Download or check out the files in this repository and put them on any php-capable web server.
  2. Obtain and/or create databases.
    1. Obtain a "core" database. The authors maintain the calculator's "core" database as an SQLite3 database which is published in the Harvard Dataverse. Within the Dataverse data repository you will want to find the .sql3 file and download it. For most purposes we recommend the most recent version, but you can also pick any other version or create a core database yourself. This might be of interest for example if you want to assess a different mitigation pathway or effort sharing between entities other than the countries provided (for example, @krueschan has created a core database for Canadian provinces). Contact us if this is of interest.
    2. Put the core database on the same webserver, since it's SQLite, it is fully contained in a single file. Make sure the file's location and permissions allows the php process of your server to have read/write access to it.
    3. Create a "pledge" database. The pledge database is a MySQL database, so you need a MySQL server that can be accessed from the webserver where you put the web interface code. The repository includes a sql file which can be run on your MySQL server to create the necessary database structure. From time to time we dump our own current pledge database in the same folder in the repository. Contact us if you want our most recent version, but you can also run cerc-web with an empty pledge database. Or enter your own quantifications of pledges using the included pledgedb manager.
    4. Create a "helptext" database. The helptext database is a MySQL database. Similar to the pledge database, an sql file exists to assist you in creating this database on your server.
  3. Obtain and/or compile the Climate Equity Reference calculator "engine," which is also released as open source package and can be obtained on SourceForge.
  4. Rename the config.php.new file to config.php and enter the relevant information, in particular, the location of the engine and the core database file as well as the connection data to the two MySQL databases you created above. Typically, this will also involve the creation of temporary folders and such; make sure to set those folders' permissions such that the php process on your server has read/write access to them.
  5. Done.

Contact and trouble shooting

If you run into issues, feel free to create a ticket on Github, or contact us via www.climateequityreference.org There is also more information available on how to contribute to the project.

Please note that cerc-web has adopted the Contributor Covenant v1.4.1 which is a Code of Conduct that describes the conduct expected of everybody who interacts with this project. The Contributor Covenent is an initiative to make the Open Source Software community a more inclusive, safe and welcome place and cerc-web is proud to be part of it.

Owner

  • Name: Climate Equity Reference Project
  • Login: climateequityreferenceproject
  • Kind: organization

JOSS Publication

The Climate Equity Reference Calculator
Published
March 14, 2019
Volume 4, Issue 35, Page 1273
Authors
Ceecee Holz ORCID
Department of Geography and Environmental Studies, Carleton University, Ottawa
Eric Kemp-Benedict ORCID
Stockholm Environment Institute US, Somerville
Tom Athanasiou
EcoEquity, Berkeley
Sivan Kartha ORCID
Stockholm Environment Institute US, Somerville
Editor
Jed Brown ORCID
Tags
climate change climate justice effort sharing NDCs UNFCCC mitigation

GitHub Events

Total
  • Watch event: 1
  • Push event: 2
Last Year
  • Watch event: 1
  • Push event: 2

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 611
  • Total Committers: 4
  • Avg Commits per committer: 152.75
  • Development Distribution Score (DDS): 0.344
Past Year
  • Commits: 4
  • Committers: 1
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
erickb e****t@s****g 401
Christian Holz c****z@c****s 138
toma-ecoequity t****a@e****g 44
tylerkb t****r@t****m 28
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 2
  • Total pull requests: 5
  • Average time to close issues: 21 days
  • Average time to close pull requests: 5 months
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 1.5
  • Average comments per pull request: 0.8
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 5
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • krueschan (2)
Pull Request Authors
  • dependabot[bot] (5)
Top Labels
Issue Labels
Pull Request Labels
dependencies (5)

Dependencies

public_html/composer.json packagist
  • guzzlehttp/guzzle ~6.0
public_html/composer.lock packagist
  • guzzlehttp/guzzle 6.3.3
  • guzzlehttp/promises v1.3.1
  • guzzlehttp/psr7 1.5.2
  • psr/http-message 1.0.1
  • ralouphie/getallheaders 2.0.5
public_html/inc/dependencies/guzzlehttp/guzzle/composer.json packagist
  • ext-curl * development
  • phpunit/phpunit ^4.8.35 || ^5.7 || ^6.4 || ^7.0 development
  • psr/log ^1.0 development
  • guzzlehttp/promises ^1.0
  • guzzlehttp/psr7 ^1.4
  • php >=5.5
public_html/inc/dependencies/guzzlehttp/promises/composer.json packagist
  • phpunit/phpunit ^4.0 development
  • php >=5.5.0
public_html/inc/dependencies/guzzlehttp/psr7/composer.json packagist
  • phpunit/phpunit ~4.8.36 || ^5.7.27 || ^6.5.8 development
  • php >=5.4.0
  • psr/http-message ~1.0
  • ralouphie/getallheaders ^2.0.5
public_html/inc/dependencies/psr/http-message/composer.json packagist
  • php >=5.3.0
public_html/inc/dependencies/ralouphie/getallheaders/composer.json packagist
  • phpunit/phpunit ~3.7.0 development
  • satooshi/php-coveralls >=1.0 development
  • php >=5.3
docker/Dockerfile docker
  • ubuntu xenial build