emis_order: Re-order the emission to match specific hours and days
Description
returns the emission array matching with corresponding weekdays and with
the desired number of hours, recycling or droping hours from the emission array. For
instance, if your emissions starts Monday at 00:00 and cover 168 hours, and you
want to reorder them to start saturday you with a total a new length of hours
of 241, you must :emis_order(EMISSION, as.Date("2016-04-06"), 241)
1) GriddedEmissionsArray or array with characteristics of GriddedEmissionsArray
2) Spatial object of class "Spatial". Columns are hourly emissions.
3) Spatial Object of class "sf". Columns are hourly emissions.
4) "data.frame", "matrix" or "Emissions". Columns are hourly emissions.
start
Date or the start weekday or first 3 letters
hours
Numeric; number of hours needed to the simualation
utc
Integer; transform local into UTC emissions. For instance,
utc = -3 means that the first hour of emissions is at 21:00 of the previous
day.
verbose
Logical; display additional information
Value
GriddedEmissionsArray, sf or data.frame, depending on the class of
EMISSION