getDataOutagesProduction: Load unavailability of production from Ensoe

Description Usage Arguments Examples

View source: R/loadDataFromEnsoe.R

Description

getDataOutagesProduction request ensoe API and create RDS file who contains unavailability of production.

Usage

1
2
3
4
getDataOutagesProduction(token, bz = "10YNL----------L", docType = "A80",
  docStatus = "A05", start = "2017-01-01", end = "2017-12-31",
  EIC = NULL, fileToMerge = "NLindispo.csv", by = "week",
  entsoeHttp = "https://transparency.entsoe.eu/api?")

Arguments

token

character, ENTSOE token

bz

character build zone, transparency.entsoe.eu API guide

docType

character docType, A80 for generation unit and A77 for produciton unit

docStatus

character docStatus "A05" : Active, "A09" : Cancel

start

character start date

end

character end date

EIC

character optional, powerSystemResourcesmRID default NULL -> "All"

fileToMerge

character csv where data will be save, you can also add information in an existing file.

by

character load data by day, week, month, year? Maximum of documents load by request is 200 so if data are not correctly try an other timestep.

entsoeHttp

character, ENTSOE adress, defalut https://transparency.entsoe.eu/api?

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
## Not run: 

 #PROD : "A77" Gene : "A80"
 token <- "Mytoken"
 #BiddingZone_Domain = "10YFR-RTE------C"
 #BiddingZone_Domain = "10YBE----------2"
 #BiddingZone_Domain = "10YNL----------L"
 #BiddingZone_Domain = "10Y1001A1001A63L"

 #BiddingZone_Domain = "10YDE-VE-------2"    #GRT Allemand 50Hertz
 #BiddingZone_Domain = "10YDE-RWENET---I"    #GRT Allemand Amprion
 #BiddingZone_Domain = "10YDE-EON------1"    #GRT Allemand TennetDE
 #BiddingZone_Domain = "10YDE-ENBW-----N"    #GRT Allemand TransnetBW
 #BiddingZone_Domain = "10YAT-APG------L"    #Autriche

 #NL
 getDataOutagesProduction(token = token, bz = "10YNL----------L",
  docType = "A80",
   start = "2015-01-01", end = "2018-12-31", fileToMerge = "NLindispo.csv")
 getDataOutagesProduction(token = token, "10YNL----------L", docType = "A77",
   start = "2015-01-01", end = "2019-01-01", fileToMerge = "NLindispo.csv", by = "year")

 #BE
 getDataOutagesProduction(token = token, bz = "10YBE----------2", docType = "A80",
   start = "2015-01-01", end = "2018-12-31", fileToMerge = "BEindispo.csv")
 getDataOutagesProduction(token = token, "10YBE----------2", docType = "A77",
   start = "2015-01-01", end = "2018-12-31", fileToMerge = "BEindispo.csv")

 #FR
 getDataOutagesProduction(token = token, bz = "10YFR-RTE------C", docType = "A80",
   start = "2015-01-01", end = "2018-12-31", fileToMerge = "FRindispo.csv")
 getDataOutagesProduction(token = token, "10YFR-RTE------C", docType = "A77",
   start = "2015-01-01", end = "2018-12-31", fileToMerge = "FRindispo.csv")

 #DE
 getDataOutagesProduction(bz = "10YDE-VE-------2", docType = "A80",
   start = "2015-01-01", end = "2018-12-31", fileToMerge = "DEindispo.csv")
 getDataOutagesProduction("10YDE-VE-------2", docType = "A77",
  start = "2015-01-01", end = "2019-01-01", fileToMerge = "DEindispo.csv", by = "year")


 getDataOutagesProduction(token = token, bz = "10YDE-RWENET---I", docType = "A80",
   start = "2015-01-01", end = "2018-12-31", fileToMerge = "DEindispo.csv")
 getDataOutagesProduction(token = token, bz = "10YDE-RWENET---I", docType = "A77",
   start = "2015-01-01", end = "2019-01-01", fileToMerge = "DEindispo.csv", by = "year")

 getDataOutagesProduction(token = token, bz = "10YDE-EON------1", docType = "A80",
   start = "2015-01-01", end = "2019-01-01", fileToMerge = "DEindispo.csv", by = "month")

 ##Week (for +200 row)
 getDataOutagesProduction(token = token, bz = "10YDE-EON------1", docType = "A80",
   start = "2015-08-01", end = "2015-09-10", fileToMerge = "DEindispo.csv")
 getDataOutagesProduction(token = token, "10YDE-EON------1", docType = "A80",
   start = "2016-06-01", end = "2016-09-10", fileToMerge = "DEindispo.csv")
 getDataOutagesProduction(token = token, bz = "10YDE-EON------1", docType = "A80",
   start = "2016-07-27", end = "2016-08-03", fileToMerge = "DEindispo.csv", by = "day")
 getDataOutagesProduction(token = token, bz = "10YDE-EON------1", docType = "A80",
   start = "2016-12-01", end = "2017-01-10", fileToMerge = "DEindispo.csv")
 getDataOutagesProduction(token = token, bz = "10YDE-EON------1", docType = "A80",
   start = "2017-06-01", end = "2017-09-10", fileToMerge = "DEindispo.csv")

 getDataOutagesProduction(token = token, bz = "10YDE-EON------1", docType = "A77",
   start = "2015-01-01", end = "2019-01-01", fileToMerge = "DEindispo.csv")

 getDataOutagesProduction(token = token, bz = "10YDE-ENBW-----N", docType = "A80",
   start = "2015-01-01", end = "2019-01-01", fileToMerge = "DEindispo.csv", by = "month")
 getDataOutagesProduction(token = token, bz = "10YDE-ENBW-----N", docType = "A77",
   start = "2015-01-01", end = "2019-01-01", fileToMerge = "DEindispo.csv", by = "year")

 getDataOutagesProduction(token = token, bz = "10YAT-APG------L", docType = "A80",
   start = "2015-01-01", end = "2019-01-01", fileToMerge = "DEindispo.csv", by = "month")
 getDataOutagesProduction(token = token, bz = "10YAT-APG------L", docType = "A77",
   start = "2015-01-01", end = "2019-01-01", fileToMerge = "DEindispo.csv", by = "year")



## End(Not run)

rte-antares-rpackage/unavailabilityProductionEntsoe documentation built on May 4, 2019, 7:38 a.m.