Upload
businessanalytics
View
809
Download
2
Embed Size (px)
DESCRIPTION
The thing with FuelSAS helps the KLM Fuel & Emission Data Warehouse, SAS Forum Netherlands presentation 2010
Citation preview
The thing with Fuel
SAS helps the KLM Fuel & Emission DWH
Peter WelpSAS CCKLM
october 6th 2010
The Thing with Fuel
2
Content:
• KLM The company
• SAS Competence Center
• The Speaker
• Corporate Social Responsibility
• Case: Fuel & Emission DWH
• Demo
• Closing Statement
• Sample code
The Thing with Fuel
3
KLM Facts & Figures 2010 ( 1/2 )
• Worlds Eldest Airline
• 30.000 employees
• 65 Large Aircraft ( 200 – 425 passengers)
• 43 Smaller ( < 200 )
The Thing with Fuel
4
KLM: Some Figures about 2010 (2 / 2)
• Transport Figures– 23.000.000 passengers a year (* 92 Kg p.p.)
– 600.000.000 Kg cargo
• Did you know?– Taking 3 Kg across Atlantic
takes about 1 Kg of Fuel
The Thing with Fuel
5
KLM uses many software systems formany parts of the company
Almost all of them use SAS somehow
Crew PlanningMaintenance of
Engines and Aircraft
Network Planning
Baggage Handling
Cargo
Reservations
Catering
Air TrafficManagement
Others…
Controlling
The Thing with Fuel
6
Since 1979…Looks more like
The Thing with Fuel
7
SAS Competence Center:
• 12 internal SAS Certified Professionals and some ext.
• z/OS as a platform ( for now ) SAS 9.1.3.
• Over 1300 maintained Batch programs
• Several SAS AF Applications
• IDP Portal and several Stored Processes Applications
• SAS ABM Solutions
• KLM is our customer, still 100 different businesses
The Thing with Fuel
8
Speaker
Peter Welp
KLM since 1992
Microsoft certified 2001
SAS Competence Center since 2003
SAS Certified Advanced Programmer since 2008
The Thing with Fuel
9
• KLM regards it as its duty to operate in a sustainable manner– KLM brings people to beautiful places, and wishes to do so in the centuries
to come.
• Recognition– Six years in a row, Air France-KLM leads the Global Dow Jones
Sustainability Index for Travel & Leisure.
• Initiatives– Offer easy CO2 compensation– Top3 Youngest fleet in the world– Cleaning engines with water– Invest in new fuel types– ICT Kidzz Academy– More…
Read all about it: www.klm.com/csr
KLM Corporate Social Responsibility
The Thing with Fuel
10
CSR and Fuel & Emission DWH. Why?
Social Responsibility of our paying customers
Many big companies are honouring their socialresponsibility. The Fashion industries for example.When KLM can present the exact environmentalfootprint of 1 parcel or passenger, this attractscompanies and travellers.
Fuel Save
To Save Fuel is to Save the Environment…
To Save Fuel is to Save Money
The Thing with Fuel
11
Emission Trading Scheme
The European parliament approved the EmissionTrading Scheme (ETS) in which emission rights can bebought and sold within the airline industry.
ETS requires Monitoring, Reporting and Verification ofemission figures since January 2010.KLM is one of the first airlines to fully meet theserequirements with this DWH.
Fuel & Emission DWH. Why?
The Thing with Fuel
12
@ @ @ @ @
Data sources to be combined
SLS Data (Statistical Load Summary) What is on board? (Passengers Cargo Mail)
Planning Data (LIDO) What route must be flown, how much fuel is required?
ACMS Data (Aircraft Condition Monitoring System )
How is the aircraft performing?– Geographical location ( GPS, Longitude Latitude )
– Timestamp
– Altitude
– Fuel usage
– Temperature, speed, wind, Engine data …
The Thing with Fuel
13
DWH Offers opportunities
• Verified Emission Report
• Optimize Extra Fuel (3Kg takes 1 Kg, the thing with fuel…)
• Comparison Planned versus Actual
• Flying to Houston north of Iceland takes 14.000kg Fuel
• Analysis per Aircraft, even per Engine
• Taxi with 3 of 4 engines saves fuel
• Support Captain-awareness
The Thing with Fuel
14
Where SAS comes inGreat Circle Calculations for Distance
• Moving straight north orsouth is easy:Latitude lines are Parallel
• Flying 1 degree is60 Nautical Miles
The Thing with Fuel
15
Where SAS comes inGreat Circle Calculations for Distance
• Longitude NOT Parallel.Flying 1 degree
straight East or West
• Equator 60 NM
• from Amsterdamabout 42 NM
• at the Northpolezero NM
The Thing with Fuel
16
Where SAS comes inGreat Circle Calculations for Distance
)11
(*4*74677.34372
,
AtnD AS
)))2
)21
((sin(*)
2(*)
1())
2
)21
(((sin( 22 Rad
Lon
Rad
Lon
Rad
LatCos
Rad
LatCosRad
Lat
Rad
Lat
distance between S (start-location of the route)And A (a planned waypoint)…
where
SAS 9.2 provides a new function GEODIST…
The Thing with Fuel
17
Emission of CO2 is Easy
Where SAS comes inEmission Calculation
1 Kg
Fuel
3.15 Kg
CO2 O2
The Thing with Fuel
18
Emission of other gasses (SO2, CO, NOx and HxCy) depend on
• Fuel consumption
• type of fuel (% Sulphur, … )
• Phase of the flight
• Outside Temperature & Altitude
• Inside engine Temp, Pressure and Rotationspeed
• Correction Factors…
Where SAS comes inEmission Calculation
Air-humidity correction factor for NOX, depends on thestatic air temperature:
The Thing with Fuel
19
Where SAS comes inFinding ‘Holding’
A ‘Holding’ is an extra circle, because oftoo much traffic ahead of the plane.This requires extra fuel.
A Holding in technical terms, when youhave over 100 of pairs oflongitude/latitude for hundreds offlights a day,
is a challenge to program and
a nightmare to test.
The Thing with Fuel
20
Sample Actual RoutePlotted on map
FranceFrance
Germany
Germany
Britain
Where SAS comes in
• “Air Traffic Management” has a frontend which they arefamiliair with.
• At the time of developing, the frontend could not display newdata yet
• SAS PROC GMAP did not provide the detailand flexibility we needed
The Thing with Fuel
21
• But then a colleague showed me his ice-skating trip, recordedwith his GPS-phone. Eureka!
The Thing with Fuel
22
Putting it al together, a demo
The Thing with Fuel
23
Putting it al together, a demo
The Thing with Fuel
24
Putting it al together, a demo
The Thing with Fuel
25
B.I. can be thought of as a clever visualization of data.At best, any presentation is as good as the underlying data.
For over 30 years now, SAS empowers KLM to get the dataright; supporting the many departments within KLM inrunning- and understanding their business.
Closing Statement: The Power to Know
/* ************************************************************//* Sample program demonstrating Google Earth directly from STP *//* Peter Welp for SAS Forum Netherlands , sep 2010 *//* SAS Competence Center, KLM Royal Dutch Airlines *//* to help you with KML specifics, see *//* http://code.google.com/apis/kml/documentation/kml_tut.html *//* ************************************************************/
/* A Temp file to hold STP Output */filename xWEBOUT '&temp' lrecl=1024;
/* Generate a file with Longitude and Latitude coordinates */DATA ActRoute;/* Florida, Palm Beach */set sashelp.zipcode(where=(STATE=12 AND COUNTY=99));
CALL SYMPUT('COUNTYNM',COMPRESS(COUNTYNM));RUN;
/* Sort North to South, better than random scatter of points */PROC SORT Data=ActRoute;BY Y X ;
RUN;
/* Open document, for now in Temp file, not in _WEBOUT */Data _Null_;FILE xWEBOUT;
PUT '<?xml version="1.0" encoding="UTF-8"?>';PUT '<kml xmlns="http://earth.google.com/kml/2.0">';PUT '<Document xmlns:xlink="http://www.w3/org/1999/xlink">';PUT " <name>&COUNTYNM</name>";
/* Color Route */PUT '<Style id="AR">';PUT ' <LineStyle><color>ff00ff00</color></LineStyle>';PUT ' <PolyStyle><color>7f00ff00</color></PolyStyle>';PUT '</Style>';
RUN;
Data _Null_;FILE xWEBOUT MOD; /* Re-open Temp output file using MOD */set ACTROUTE end=eof;
If _N_=1 Then Do;PUT '<Folder><name>Actual</name><open>1</open>';PUT '<Placemark><styleUrl>#AR</styleUrl>';PUT '<visibility>1</visibility><name>Route</name>';PUT '<MultiGeometry><LineString>';PUT '<extrude>1</extrude><tessellate>1</tessellate>';PUT '<altitudeMode>relativeToGround</altitudeMode>';PUT '<coordinates>';
end;
/* The coordinates may not have spaces in between */Length OneLIne $50;OneLine=CATS(X,',',Y,',1000');PUT OneLine;
If EOF Then Do;PUT '</coordinates>';PUT '</LineString></MultiGeometry></Placemark>';PUT '</Folder>';PUT '</Document>';PUT '</kml>';
end;run;
/* Force the browser in passing the contents to an application */data _null_;rc = stpsrv_header('Content-type',
'application/vnd.google-earth.kml+xml kml');rc = stpsrv_header('Content-disposition',
"attachment; filename=&COUNTYNM..kml");run;
/* copy Temp output to the web output file, users browser */Data _Null_;FILE _WEBOUT;INFILE xWEBOUT;Input;PUT _INFILE_;
RUN;