Using SAS to Obtain Tornado GIS Data from the National Weather Center Valentin Todorov Statistician Assurant Specialty Property.

Slides:



Advertisements
Similar presentations
DANIEL M. NYANGOYA IT PROJECT TITLE: HEALTH RECORDS MANAGEMENT SYSTEM –NAIROBI CAMPUS.
Advertisements

Statistical Methods Lynne Stokes Department of Statistical Science Lecture 7: Introduction to SAS Programming Language.
SAS Programming:File Merging and Manipulation. Reading External Files (review) data barf; * create the dataset BARF; infile ’s:\mysas\Table7.1'; * open.
Slide C.1 SAS MathematicalMarketing Appendix C: SAS Software Uses of SAS  CRM  datamining  data warehousing  linear programming  forecasting  econometrics.
Chapter 17 Read Raw Data in Fixed Format using Formatted Input Objectives Distinguish between standard and nonstandard numeric data Read standard fixed-field.
Worst, but still importable data I’ve ever seen Arthur Tabachneck Insurance Bureau of Canada.
Next Presentation: Presenter: Arthur Tabachneck Copy and Paste from Word or Excel to SAS Art holds a PhD from Michigan State University, has been a SAS.
Guide to extract/download multiple databases from Mainframe Tapes to PC using SAS PC Fereydoun J. Foroudian Blue Cross of California SAS is a registered.
SAS Programming: Working With Variables. Data Step Manipulations New variables should be created during a Data step Existing variables should be manipulated.
Automated Time Series Forecasting Process Valentin Todorov January 23, 2013 Assurant Specialty Property.
SUNY Morrisville-Norwich Campus- Week 7 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Basic And Advanced SAS Programming
Exploring Office Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2 – Gaining Proficiency: The Web and Business.
1 SAS SAS is a statistics software package developed by SAS Institute Inc. in U.S.A. SAS products include SAS/STAT, SAS/IML, SAS/OR, etc. The most.
Calculating driving distance between two places
Operational Dataset Update Functionality Included in the NCAR Research Data Archive Management System 1 Zaihua Ji Doug Schuster Steven Worley Computational.
Intro to Business.  Captain - Coordinates the efforts of entire team including team activities, maintaining password, making final decisions, and checking.
Understanding SAS Data Step Processing Alan C. Elliott stattutorials.com.
Introduction to SAS Lecture 2 Brian Healy.
Topics in Data Management SAS Data Step. Combining Data Sets I - SET Statement Data available on common variables from different sources. Multiple datasets.
Welcome to SAS…Session..!. What is SAS..! A Complete programming language with report formatting with statistical and mathematical capabilities.
Equine Injury Database. The Equine Injury Database is a module of InCompass’ Race Track Operations Software (“RTO”) program which is in place at most.
“SAS macros are just text substitution!” “ARRRRGGHHH!!!”
Virtual Health & Safety Management System (VHSMS) A Brief Guide for Head Teachers.
Copyright © 2010, Meta-Xceed, Inc. All rights reserved. BI Flash and all other Meta-Xceed Inc. product or service names are registered trademarks or trademarks.
Agenda Journalling More Embedded SQL. Journalling.
Introduction to SAS BIO 226 – Spring Outline Windows and common rules Getting the data –The PRINT and CONTENT Procedures Manipulating the data.
Chapter 21 Reading Hierarchical Files Reading Hierarchical Raw Data Files.
RTSUG 04Feb2014: Beyond Directory Listings in SAS By: Jim Worley.
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
“Automagic” SAS Tricks Bill McKirgan Database Admin/Develop II University of Iowa Department of Psychiatry
Introduction to PROC GMap Presentation by Andrea Boan BMTRY 789.
1 Experimental Statistics - week 2 Review: 2-sample t-tests paired t-tests Thursday: Meet in 15 Clements!! Bring Cody and Smith book.
1 Back Up with Each Submit One approach for keeping a dynamic back up copy of your current work.
Chapter 1: Introduction to SAS  SAS programs: A sequence of statements in a particular order  Rules for SAS statements: –Every SAS statement ends in.
I OWA S TATE U NIVERSITY Department of Animal Science Getting Your Data Into SAS (Chapter 2 in the Little SAS Book) Animal Science 500 Lecture No. 3 September.
Lesson 2 Topic - Reading in data Chapter 2 (Little SAS Book)
Microsoft Access Database Software.
A collaborative partnership between the State of Kansas Department of Revenue – Property Valuation Division (KDOR/PVD), the Kansas GIS Policy Board’s Data.
Chapter 3 “Working With Your Data” concerns programming in the DATA step - putting lines of SAS code between a DATA and PROC statement… Creating new variables.
Define your Own SAS® Command Line Commands Duong Tran – Independent Contractor, London, UK Define your Own SAS® Command Line Commands Duong Tran – Independent.
WDCGG Outline What is WDCGG How WDCGG works Data information –Data type –Data format download.
Regression in SAS Caitlin Phelps. Importing Data  Proc Import:  Read in variables in data set  May need some options incase SAS doesn’t guess the format.
Copyright © 2006, SAS Institute Inc. All rights reserved. A Sampler of What's New in Base SAS 9.2
COUNTER XML Examples File Management Log in kavi via:
Geographic Data in GIS. Components of geographic data Three general components to geographic information Three general components to geographic information.
Converting Large NCBI Databases into SAS Rosa SJ Lin Division of Statistical Genomics Washington University in Saint Louis June 30, 2008.
Automating a Vendor File Load Process with Perl and Shell Scripting Roy Zimmer Western Michigan University.
The ‘SKIP’ Macro Plagiarized from a paper by Paul Grant Private Healthcare Systems, Inc. given at SUGI 23, Nashville, TN, 1998.
Estimating Crop ET from Satellite Section 2. Calculate ET from Satellite Data-V1.
FOR MONDAY: Be prepared to hand in a one-page summary of the data you are going to use for your project and your questions to be addressed in the project.
Time Series Data Processes by Tai Yu April 15, 2013.
Computing with SAS Software A SAS program consists of SAS statements. 1. The DATA step consists of SAS statements that define your data and create a SAS.
1 CMPT 471 Networking II DNS © Janice Regan,
Lesson 2 Topic - Reading in data Programs 1 and 2 in course notes –Chapter 2 (Little SAS Book)
Chapter 14: Combining Data Vertically 1 STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina.
Thematic Mapping with Google Maps. "US-KS":{code:"US-KS", name:"Kansas", center:{lat: ,lng: },
How Web Servers and The Internet Work The Basic Process.
EMResource Reports Procedures Update. To retrieve the status information associated to your facility, there are two reports that you will need. Status.
3 Digital Terrain Model (DTM) products: Issues Enhanced DTM & 10m DTM are created as part of the orthophotography creation process New 50m DTM to be created.
Working Efficiently with Large SAS® Datasets Vishal Jain Senior Programmer.
Hints and Tips SAUSAG Q SORTING – NOUNIQUEKEY The NOUNIQUEKEY option on PROC SORT is a useful way in 9.3 to easily retain only those records with.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 3 & 4 By Tasha Chapman, Oregon Health Authority.
CS 330 Class 7 Comments on Exam Programming plan for today:
Fall 2017 Questions and Answers (Q&A)
Ex (pp. 430) OPTIONS NOOVP NODATE NONUMBER; proc format;
Operational Dataset Update Functionality Included in the NCAR Research Data Archive Management System Zaihua Ji Doug Schuster Steven Worley Computational.
Welcome Thanks for coming out Thanks to Wally Thiessen, David Ghan
SESUG Web Scraping in SAS: A Macro-Based Approach
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: Date of Report

filename Statement in a Nutshell filename Refresher File Access Method - http filename fileref http “ proc import datafile = ; input …; filename fileref ;

SAS Macro to Get Reports from NWC %macro tornado(daydate); filename NOAAfile HTTP " proc import datafile = "NOAAfile" out= TORNADO.file&daydate. dbms=CSV replace; run; data TORNADO.file&daydate.; set TORNADO.file&daydate.; length F_Scale1 $3. Location1 $20. County1 $13. Comments1 $230.; Longitude=input(Lon,12.); Latitude=input(Lat,12.); F_Scale1=F_Scale; Location1=Location; County1=County; Comments1=Comments; drop F_Scale Location County Comments; date="&daydate"; run; %mend; %tornado(090907); %tornado(090906); %tornado(090905); %tornado(090904); …………………….. %tornado(090101); GIS Coordinates Invoke the Macro above by changing the report date Location of reports

Final Results

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 , The File Name Revisited, Yves DeGuire, Statistics Canada filename in url “ 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;

Questions