Presentation on theme: "Using SAS to Obtain Tornado GIS Data from the National Weather Center Valentin Todorov Statistician Assurant Specialty Property."— Presentation transcript:
Using SAS to Obtain Tornado GIS Data from the National Weather Center Valentin Todorov Statistician Assurant Specialty Property
Agenda Severe weather database at NWC filename statement in a nutshell SAS macro to get reports from NWC Final results Other uses of the filename statement
Severe Weather Database at NWC Serves as the official record keeper for tornado, wind and hail occurrences in the USA Provides detailed information for severe weather events –GIS data: Latitude and longitude of the location –Event characteristics: Strength, direction and trajectory Updates daily –Reports are stored in.CSV format and can be downloaded from: http://www.spc.noaa.gov/climo/reports/090916_rpts_torn.csv Date of Report
Other Uses of the filename Function Obtain stock quotes from Yahoo! Finance 1 Access remote files by using the FTP protocol 2 1 SUGI Paper 73-28, The URL-y Show: Using SAS LE and the URL Access Method to Retrieve Stock Quotes, Ted Conway 2 SUGI Paper 007-2007, The File Name Revisited, Yves DeGuire, Statistics Canada filename in url “http://finance.yahoo.com:80/d/quotes.txt?s=YHOO+IBM+HPQ&f=sl1d1t1c1ohgv&e=.txt”; data; infile in dsd end=eof termstr=crlf; input Ticker : $4. Price TradeDate : $10. TradeTime: $7. Change Open Hi Lo Volume; options nodate nonumber nocenter ls=70; run; filename in ftp ‘datafile' cd='/techsup/download/datastep/' user='anonymous' host='ftp.sas.com'; data inDataFile; infile in; input x $10. y 4.; run;
Your consent to our cookies if you continue to use this website.