Download - eCoMove
Transcript
D550.58 (D5.8) Setup, manual and experiences with the traffic management and control applications double vel[0..n-1]: velocity series [km/h] double acc[0..n-1]: acceleration series [m/s2] double inc[0..n-1]: inclination series [% height:distance] int veh: passenger car: 1, medium truck: 2, heavy truck: 3, bus: 4 int check: check code (reproduce supplied code on application side) OUTPUT: double emi[0..3]: emissions in grams (CO2: 0, NOx: 1, PM10: 2) Macro How to run CO2eCoMove_P.m A complete set of routines and files to run CO2eCoMove_P.p is found in the archive ‘eCoMove p-files 4 DynaSmart.zip’, which is delivered with the Matlab Routine (see Figure 25 for the list of files). The recipe to install and run the routines is simple and straightforward. Unzip the archive in a local folder. Start Matlab and go to the previously mentioned local folder or include it in your Matlab path. Start the emission addition routine CO2eCoMove_P.p by issuing the command d = co2ecomove_p; Doing this without any input arguments will execute the routine with all defaults. In the archive a sample DynaSmart output file for testing 'DynaSmartOutputDataFull.csv' is included and this is then used. Depending on the speed of your PC, CO2eCoMove_P will take between 3 and 6 minutes (or longer if you have a very slow PC) to process the csv-file and besides the output struct d may yield 3 output files, i.e. o DynasmartOutputDataFull_PlusEmissions.mat o DynasmartOutputDataFull_PlusEmissions.xlsx o DynasmartOutputDataFull_PlusEmissions.csv In principle these contain the same information albeit in different formats. For eCoMove the most important information is the total emission of CO2 per link per time period, which in the xlsx-file can be found in column O. Next, that information can be extracted as a 2D matrix, with time and link number along the vertical resp. horizontal axes, very easily with the routine get2dpar.p by issuing the command d2 = get2dpar(d); The routine can optionally store the 2D matrix contained in struct d2 as a matfile, e.g. ‘DynasmartOutputDataFull_CO2_E_Link_Total_(g)_2D.mat’, Also it can make a 2D colour plot of the CO2 emissions per link per time period as a function of time. For more details, see session clipping in section 3. Session Example. 26/06/2013 51 Version 1.0 (final)