Skip to contents

Returns 5-minute generator output for one or more DUIDs. Three measures are available:

Usage

aemo_dispatch_units(
  duid = NULL,
  start,
  end,
  measure = c("scada_mw", "target_mw", "both")
)

Arguments

duid

Optional character vector of DUIDs. NULL returns all generators.

start, end

Window (inclusive).

measure

One of "scada_mw" (default), "target_mw", or "both".

Value

An aemo_tbl with columns settlementdate, duid, and the requested measure(s).

Details

  • "scada_mw" (default): actual metered output from DISPATCH_UNIT_SCADA (SCADAVALUE).

  • "target_mw": dispatch target from DISPATCHLOAD (TOTALCLEARED). This is the MW AEMO asked the unit to produce at the end of the interval.

  • "both": returns SCADAVALUE, INITIALMW (SCADA at the start of the interval) and TOTALCLEARED (target at the end) in a single row per DUID per interval. Use this for ramp-trajectory research: the ramp applied during the interval is the straight line from INITIALMW to TOTALCLEARED.

Timestamps are AEST (UTC+10, no DST).

Examples

# \donttest{
op <- options(aemo.cache_dir = tempdir())
try({
  now <- Sys.time()
  # SCADA actual
  d <- aemo_dispatch_units(duid = "BW01", start = now - 3600,
                            end = now)

  # Paired: INITIALMW, TOTALCLEARED, SCADAVALUE (ramp research)
  d_both <- aemo_dispatch_units(duid = "BW01",
                                 start = now - 3600, end = now,
                                 measure = "both")
})
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for 076621ae19aadbe3.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for ecd0b475b79e3a48.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for 5e99b923c530180f.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for 3ada629834acec07.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for c65a4fcf1a428ecd.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for b1526d19037eb730.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for e23713aae6d7ca18.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for a1954adc24dd5507.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for d8f87d9f316ddc82.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for 5d97450dce7d83f5.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for be79969db60ec67f.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for c0b12bd61095a3a9.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for 069165102a9c24e9.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#>  Downloading <http://nemweb.com.au/Reports/Current/Dispatch_SCADA/PUBLIC_DISPA
#> 
#> Warning: Cache integrity check failed for eaa634678b4a2bca.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for cd4602a6994b6b4c.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for b2aec91284871c0d.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for db5b6b9d469c0eec.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for cf18331ac9e83316.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for 10e7a8bf983f8e7a.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for 01e404ee368f3949.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for dc6440f93bd0db25.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for b58ffdd7fa90190c.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for b7a88a2bef031b86.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for 530a154e96f563e0.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for 45c9e0ddb0d9ab0e.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for fd4f0969136fdcd0.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
#> Warning: Cache integrity check failed for 62f05652aabc843d.zip; re-downloading.
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#>  Downloading <http://nemweb.com.au/Reports/Current/DispatchIS_Reports/PUBLIC_D
#> 
options(op)
# }