{"id":22322933,"url":"https://github.com/rte-antares-rpackage/antareshdf5","last_synced_at":"2026-01-06T07:30:31.124Z","repository":{"id":83451392,"uuid":"94779840","full_name":"rte-antares-rpackage/antaresHDF5","owner":"rte-antares-rpackage","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-23T07:26:38.000Z","size":2563,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-31T06:48:01.829Z","etag":null,"topics":["rhdf5","simulation","study"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rte-antares-rpackage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-06-19T13:31:02.000Z","updated_at":"2017-10-20T13:18:19.000Z","dependencies_parsed_at":"2023-03-27T09:02:17.202Z","dependency_job_id":null,"html_url":"https://github.com/rte-antares-rpackage/antaresHDF5","commit_stats":{"total_commits":166,"total_committers":4,"mean_commits":41.5,"dds":0.09638554216867468,"last_synced_commit":"47370d617885e9c25049e1504a119a323c24849f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rte-antares-rpackage%2FantaresHDF5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rte-antares-rpackage%2FantaresHDF5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rte-antares-rpackage%2FantaresHDF5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rte-antares-rpackage%2FantaresHDF5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rte-antares-rpackage","download_url":"https://codeload.github.com/rte-antares-rpackage/antaresHDF5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245591587,"owners_count":20640692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rhdf5","simulation","study"],"created_at":"2024-12-04T01:08:51.013Z","updated_at":"2026-01-06T07:30:30.882Z","avatar_url":"https://github.com/rte-antares-rpackage.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/rte-antares-rpackage/antaresHDF5?branch=master\u0026svg=true)](https://ci.appveyor.com/project/rte-antares-rpackage/antaresHDF5)\n[![Travis-CI Build Status](https://travis-ci.org/rte-antares-rpackage/antaresHDF5.svg?branch=master)](https://travis-ci.org/rte-antares-rpackage/antaresHDF5)\n[![Coverage Status](https://img.shields.io/codecov/c/github/rte-antares-rpackage/antaresHDF5/master.svg)](https://codecov.io/github/rte-antares-rpackage/antaresHDF5?branch=master)\n\n# Convert an antares study to a h5 file and read him with R package 'antaresHdf5'\n\n## rhdf5 installation\n\nThis package depends on **rhdf5** package. This is a **bioconductor** package. Morevover, the current version need the last **R** version (\u003e= 3.4) and a developpement version of **rhdf5** : \n\n```r\n\n# rhdf5 installation\nsource('https://bioconductor.org/biocLite.R')\nBiocInstaller::useDevel() # for latest version\nbiocLite('rhdf5')\n\n# update R (one way...)\n# installing/loading the package:\nif(!require(installr)) {\ninstall.packages(\"installr\"); require(installr)} #load / install+load installr\n \n# using the package:\nupdateR() # this will start the updating process of your R installation.  It will check for newer versions, and if one is available, will guide you through the decisions you'd need to make.\n```\n\n## Convert data from a simulation to h5 file\n\nLoad the package\n\n```r\nlibrary(antaresHdf5)\n```\n\nTo convert a simulation you must use function ``writeAntaresH5``\n\nConvert a single simulation, path can be specify to give name of output file, default it take same name than input simulation folder\n\n```r\nsetSimulationPath(\"C:/Users/TTT/Mystudy\", 1)\npath \u003c- \"Mystudy.h5\"\nwriteAntaresH5(path)\n```\n\nConvert all simulations from a study, parallel process, default 4 cores\n\n```r\nsetSimulationPath(\"C:/Users/TTT/Mystudy\")\nwriteAntaresH5(writeAllSimulations = TRUE)\n```\n\nChoose timestep to write\n```r\nwriteAntaresH5(timeSteps = \"hourly\")\n```\n\nWrite with additionnal information\n```r\n writeAntaresH5(path, timeSteps = \"hourly\",\n    misc = FALSE, thermalAvailabilities = FALSE,\n    hydroStorage = FALSE, hydroStorageMaxPower = FALSE, reserve = FALSE,\n    linkCapacity = FALSE, mustRun = FALSE, thermalModulation = FALSE)\n```\n\n## Read data from h5 file\n\nFunction ``h5ReadAntares``\n\nThis function Works the same way to ``antaresRead::readAntares``.\n\nYou must specify ``path``, path of h5 file to read.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frte-antares-rpackage%2Fantareshdf5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frte-antares-rpackage%2Fantareshdf5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frte-antares-rpackage%2Fantareshdf5/lists"}