Logo Lanfrica

ECN-Energy/NECAL2050-new

Domaine:

environment and energy

Type de record:

software
Créateur:
ECN
Hôte:
Nigeria Energy Carbon Calculator 2050 # Template2050Calculator A template for automatically converting 2050 Calculator models into web applications. The layout is based off the UK Mackay Carbon Calculator and is a simple design that can be customised further. It uses Anvil to create the web app using Python. ## Web App Setup Process To go from a functioning excel model to a web app requires 2 main steps before it is ready to deploy: convert the model into an executable, then test the web app locally and customise as desired. There are a few parts to each step, detailed below. ### Getting Started We strongly recommend forking or importing a copy of the Template2050Calculator repository on GitHub. The code can then be cloned to a local machine for development. The following dependencies must be installed for the conversion process and testing/customisation of the web app: - Docker - Docker Compose If working on Windows or Mac there is a small amount of extra configuration required for Docker. On these platforms Docker has a default memory usage cap of 2 Gb. This is likely to be exceeded; for reference, conversion of the Mackay Calculator requires around 4 Gb of memory. See the advanced section on this page to increase the memory usage cap. ### 1) Convert Excel Model #### a) Prepare Excel Model Converting the spreadsheet successfully requires certain named ranges to be present. The named ranges specified contain the necessary data and metadata for the conversion process. The following named ranges must be present as they are in the Mackay Calculator spreadsheet. - Inputs - `input.lever.ambition`, `input.lever.start`, `input.lever.end`. - Outputs - `output.lever.names`, `output.lever.descriptions` and `output.lever.example.ambition`, plus whatever outputs (graphs) are desired and detailed in the summary table. Note: the Mackay Calculator has a typo in the summary table, change the contents of cell `WebOutputs!G771` to `output.land.map.numberunits`. The following named ranges must be present in add …

Licenses