Giter Site home page Giter Site logo

goiener-dataset's Introduction

GoiEner-dataset

GoiEner dataset processing files

GoiEner Data Processing and Cleaning

This repository contains scripts for processing and cleaning GoiEner's smart meter data. It contains three R scripts named simel_to_user.R, user_to_raw.R and raw_to_clean.R. These scripts convert SIMEL files to USER files, USER files to RAW files (raw electricity usage CSV files), and RAW files to CLEAN files (clean electricity usage CSV files before being split into pre-, during, and post-COVID-19 files), respectively.

Getting Started

Prerequisites

  • R software and environment

Repository Files

  • simel_to_user.R: This script transforms SIMEL files from the directory indicated by the variable g_input into USER files in the directory indicated by the variable g_output.

  • user_to_raw.R: This script takes all USER files from the directory indicated by the variable goiener_users_folder, processes them, and transforms them into RAW files. The resulting RAW files are saved in the directory indicated by the variable goiener_output_folder.

  • raw_to_clean.R: This script transforms RAW files from the directory indicated by the variable input_folder into CLEAN files. The CLEAN files are stored in the directory indicated by the variable output_folder.

Workflow

⚠️ Before using the files in this repository, please note that you need to manually change the paths for both input and output folders in the files.

  1. From SIMEL files to USER files (CUPS files): The simel_to_user.R script collects entries related to each anonymized CUPS from all SIMEL files, and generates individual USER files for each CUPS.

  2. From USER files (CUPS files) to RAW files: The user_to_raw.R script eliminates duplicate entries in each USER file that have the same timestamp. This step ensures the data is accurate and consistent.In addition, it processes the USER files to generate the RAW files in CSV format, extracting and organizing relevant information.

  3. Data Cleaning (From RAW files to CLEAN files): The raw_to_clean.R script cleans the raw data in the RAW files and transforms them into CLEAN files. It imputes missing data, adjusts timestamps to local time, avoids COVID-19 lockdown dates, excludes short load profiles, and excludes 0-valued load profiles.

Additional Data

The original SIMEL files provided by GoiEner are available on Zenodo in the "GoiEner smart meters raw data" repository. The processed data are also available in the "GoiEner smart meters data" repository on Zenodo.

Contact

For any queries or issues, please contact [email protected]

goiener-dataset's People

Contributors

quesadagranja avatar

Watchers

Pili Elejoste avatar Pablo Fernández avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.