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 56565122d6f69238.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 0edcf2a173f2e613.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 5ad409f09edf5c32.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 1e80d5a1549b09ac.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 4734c01b9483c79f.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 0cdc8cae896e94b3.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 0294f3d2430edc7b.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 adc7d04369b54492.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 6daef7f7b22d433f.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 f94b37fc4b35ec29.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 252e5a599b9e8aa5.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 a4b48f709c507aaf.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 05e0124d6f2abb47.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 d15d470c4a6a9a24.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 a8a882bfffda28c7.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 64a5dec40bed14bf.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 c2d69e7fd374a18f.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 09ceddd4b8e23f70.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 6080e733a9d5e2ee.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 4519db0ecbcd63ed.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 53aeb92b6406fab8.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 521c3ebd63a722f9.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 3b3c0151c599da35.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 55237c7ddeaa8ce7.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 3567538254aae775.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 7ff46adf86691433.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)
# }