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
#> 
#> Warning: Cache integrity check failed for d2f0fdd51046396b.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 c65e4f294ee4342e.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 f9f3dd6261828db4.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 aa170d9df00978b2.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 f1f09cf4a7cc7638.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 a131756b5831291a.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 2b1be1c9ebcc25c3.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 658d526f9bf0f29c.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 9d1495b5e2fb0c9e.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 2b595c448ff31628.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 ed2e21dd7a406fc7.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 394295ce14c61ecd.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 3d68ee95afa8150e.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 7e04a6690826e6ac.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 cfe993541435e59f.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 4b5cbf73e6f00631.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 829b75b548ad2f5f.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 f57d2ebe63c497d8.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 987a3c03aabfd59f.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 9efbd4132ed70868.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 7972a9506feaf872.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 6573637dad592f8a.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 0c39ccd2bb4fdc51.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 cca2b959d5993570.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 f97cba749cf2e79b.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 4322e37732a56d17.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)
# }