Advanced GIS Class Spring Batch Processing of Radar Reflectivity Files for Value Extraction

Similar documents
INTRODUCTION TO ARCGIS SOFTWARE

Working with climate data and niche modeling I. Creation of bioclimatic variables

J9.6 GIS TOOLS FOR VISUALIZATION AND ANALYSIS OF NEXRAD RADAR (WSR-88D) ARCHIVED DATA AT THE NATIONAL CLIMATIC DATA CENTER

An Introduction to Open Source Geospatial Tools

Raster to Vector Conversion for Overlay Analysis

PART 1. Representations of atmospheric phenomena

University of Arkansas Libraries ArcGIS Desktop Tutorial. Section 4: Preparing Data for Analysis

NetCDF and HDF Data in ArcGIS

How To Write An Nccwsc/Csc Data Management Plan

Using ArcGIS ModelBuilder to batch process files

MrSID Plug-in for 3D Analyst

Using GIS to Develop a Control Map and Database

A Method Using ArcMap to Create a Hydrologically conditioned Digital Elevation Model

Publishing Geoprocessing Services Tutorial

Latin American and Caribbean Flood and Drought Monitor Tutorial Last Updated: November 2014

Steve Ansari *, Stephen Del Greco, Brian Nelson, and Helen Frederick NOAA National Climatic Data Center, Asheville, North Carolina 2.

Geoprocessing and Spatial Data Editing in ArcGIS

ArcGIS ArcMap: Printing, Exporting, and ArcPress

Introduction to GIS.

GIS Data in ArcGIS. Pay Attention to Data!!!

GEOGRAPHIC INFORMATION SYSTEMS Lecture 20: Adding and Creating Data

ArcScan Tutorial. Copyright Esri All rights reserved.

Tutorial 8 Raster Data Analysis

What do I do first in ArcView 8.x? When the program starts Select from the Dialog box: A new empty map

The Courses. Covering complete breadth of GIS technology from ESRI including ArcGIS, ArcGIS Server and ArcGIS Engine.

NATIONAL CLIMATE CHANGE & WILDLIFE SCIENCE CENTER & CLIMATE SCIENCE CENTERS DATA MANAGEMENT PLAN GUIDANCE

LSA SAF products: files and formats

Harvard Data Visualization Project

Lesson 15 - Fill Cells Plugin

ANALYSIS 3 - RASTER What kinds of analysis can we do with GIS?

NetCDF Tutorial. Copyright Esri All rights reserved.

Creating a File Geodatabase

Spatial Analyst Tutorial

Raster: The Other GIS Data

Development of an Integrated Data Product for Hawaii Climate

ArcGIS Online. Visualizing Data: Tutorial 3 of 4. Created by: Julianna Kelly

How To Hydrologically Condition A Digital Dam

Big Data and Analytics: Getting Started with ArcGIS. Mike Park Erik Hoel

Managing Imagery and Raster Data in ArcGIS

1. Launch ArcCatalog, then navigate to the following location using the directory tree on the left side of the screen:

Scientific Data Management and Dissemination

Multidimensional Marine Environmental Data Conversion and Visualization Using Python and GIS

Understanding Raster Data

ESRI Technical Certification Overview. Amy Daniels Instructor, Greenville Tech

GIS EXAM #2 QUERIES. Attribute queries only looks at the records in the attribute tables to some kind of

GIS Initiative: Developing an atmospheric data model for GIS. Olga Wilhelmi (ESIG), Jennifer Boehnert (RAP/ESIG) and Terri Betancourt (RAP)

Bentley ArcGIS. Connector

Workflow improvement with FME in Skedsmo municipality

Structure? Integrated Climate Data Center How to use the ICDC? Tools? Data Formats? User

A GIS helps you answer questions and solve problems by looking at your data in a way that is quickly understood and easily shared.

GIS Analysis for Applied Economists 1

Lecture 3: Models of Spatial Information

GIS Tools for Land Managers

Overview of Data Visualization Tools. (Submitted by the Secretariat) Summary and Purpose of Document

ArcFuels Supplemental Material: GIS 9.x Tips and Tricks

GEOGRAPHIC INFORMATION SYSTEMS

Creating Geospatial Metadata. Kim Durante Geo4Lib Camp

Cookbook 23 September 2013 GIS Analysis Part 1 - A GIS is NOT a Map!

Data Integration for ArcGIS Users Data Interoperability. Charmel Menzel, ESRI Don Murray, Safe Software

GIS I Business Exr02 (av 9-10) - Expand Market Share (v3b, Jul 2013)

Network Analysis with Python. Deelesh Mandloi

ArcScan Tutorial. Copyright Esri All rights reserved.

Brett Gaines Senior Consultant, CGI Federal Geospatial and Data Analytics Lead Developer

13.2 THE INTEGRATED DATA VIEWER A WEB-ENABLED APPLICATION FOR SCIENTIFIC ANALYSIS AND VISUALIZATION

Choosing the right GIS framework for an informed Enterprise Web GIS Solution

Remote Sensing, GPS and GIS Technique to Produce a Bathymetric Map

PLAY VIDEO. Close- Closes the file you are working on and takes you back to MicroStation V8i Open File dialog.

Automating GIS Tasks


INSTRUCTIONS FOR MAKING 3D,.DWG CONTOUR LINES

Data source, type, and file naming convention

Analysis of Climatic and Environmental Changes Using CLEARS Web-GIS Information-Computational System: Siberia Case Study

Importing ASCII Grid Data into GIS/Image processing software

StormSurgeViz: A Visualization and Analysis Application for Distributed ADCIRC-based Coastal Storm Surge, Inundation, and Wave Modeling

RS/GIS Quick Start Guides Collaborative training materials available from the Biodiversity Informatics & Geospatial Innovation Facilities

A HYBRID APPROACH FOR AUTOMATED AREA AGGREGATION

How to georectify an image in ArcMap 10

Under GIS Data select Hydrography This will show all of the state-wide options for hydrography data. For this project, we want the seventh entry in

ArcGIS. Writing Geoprocessing Scripts With ArcGIS

How To Improve Gis Data Quality

A Workflow for Creating and Sharing Maps

Web and Mobile GIS Applications Development

Publishing geospatial data to the web using the EEA infrastructure

Tutorial Creating a regular grid for point sampling

Application of GIS Analyzes with Cloud Computing

SUMMER SCHOOL ON ADVANCES IN GIS

Network Analysis with ArcGIS for Server

Studying Topography, Orographic Rainfall, and Ecosystems (STORE)

Getting Started With LP360

WFP Liberia Country Office

Near Real Time Flood Mapping & Monitoring

GIS. Digital Humanities Boot Camp Series

Data Interoperability Extension Tutorial

INTEROPERABLE IMAGE DATA ACCESS THROUGH ARCGIS SERVER

GIS Databases With focused on ArcSDE

TRENDS IN HARDWARE FOR GEOGRAPHIC INFORMATION SYSTEMS

DWGSee Professional User Guide

FME 2007 Release Giving Raster the Vector Treatment. By Mary Jo Wagner

Havnepromenade 9, DK-9000 Aalborg, Denmark. Denmark. Sohngaardsholmsvej 57, DK-9000 Aalborg, Denmark

The ORIENTGATE data platform

Transcription:

Advanced GIS Class Spring 2007 Batch Processing of Radar Reflectivity Files for Value Extraction Newfel Mazari Under the direction of: Dr Hongjie Xie. University of Texas at San Antonio

Abstract Some GIS tools are easy to use for simple and unique tasks, but for redundant work, such as extracting attribute tables form a large set of GIS format files, I need to use more sophisticated approaches, geoprocessing comes very handy to do this kind of work, especially for batch processing a series of shape files, to extract attribute tables to an ASCII output, all tables have to be merged together, while keeping the file names associated with each output table. For my thesis research, the problem reside on how to extract reflectivity values form radar shape files, that correspond to a point location, in my case its my rain gage location. The output of the batch processing is very promising but I still have not fix the error handling part of the script. In fact the whole script crashes if the intersection of the radar file with the rain gage file is null, the intersection is processed but the export XY and filed attribute generates the error, because there is no XY coordinates for the intersection and no attribute fields. My way around this problem is to eliminate manually the bad files, and restart the script again. I also noticed that the script does not tolerate to reprocess the same files again stored in the workspace folder, so I had to erase them also. Introduction The use of radar products for Iather forecasting, hydrological modeling or flood prediction and management is widely used, because its low cost and spatial coverage, but many problems still persists with radar products validation and comparison to other ground surface meteorological stations. Precipitation product is the most used nowadays for forecasting and water resmyces management, several product exists for precipitation estimates, they are usually named product levels or stages; the most basic one is radar base reflectivity (product 19, stage II). Reflectivity Z is the backscattered radar poir, radar scans the atmosphere at regular angles and intervals of time, two modes are used by the NWS (National Iather Service Bureau), 1) clear sky mode 2) precipitation mode. Radar scans the entire range (230Km radius) in 5 to 15 minutes, 6 minutes scan are used for precipitation mode, and 5 minutes for severe storm conditions. The reflectivity is converted through a poir formula to rain rate R, Z = a R b the parameters a and b are determined by the specific climate conditions for each region, and by Iather conditions, different precipitation types may have different optimum parameters. Nevertheless, radar rainfall estimate is a volume scan that is compared to ground surface rain gauges, which creates discrepancies betien the two measurements, radar and rain gauge; other problems due to radar physics, hardware, and calibration limitations, adds more to the error induced in radar rainfall estimates, plus atmospheric conditions can increase the radar bias, such as hail contamination, and the virga effect. The present class project is part of a research project for radar reflectivity validation and comparison to a network of rain gauges installed in a single radar cell, data processing and methods used to extract the reflectivity form radar files are of primary concern to my project, I will introduce in this brief paper a GIS based method for batch processing radar reflectivity files for later analysis and comparison with rain gauge precipitation estimates

Data For my thesis research, the problem reside on how to extract reflectivity values form radar shape files, that correspond to a point location, in my case its my rain gage location. Radar reflectivity files come in different formats: -Vector format 1-Shape file 2-Ill-Known Text -Raster format 1-Geotiff 2-ESRI ASCII Grid 3-ESRI Binary Grid 4-GrADS Binary Grid 5-HDF 6-NetCDF Only shape file, and Gird formats can be used in a GIS application, at first I selected the grid format to extract the reflectivity values for my rain gage location, but the results Ire very poor, this due to three problems: 1-Grid uses resampling procedure to build the raster 2-Cels are identical in size (0.980*0.980Km) 3-Each cell value is a neighborhood average My data consists of over 1500 shape files, stored in a disk, the files Ire downloaded form the NWS radar inventory products, then exported as shape file to the computer hard drive, another shape file for the rain gage is used and stored in a different subfolder, which will be used as basis for the reflectivity value extraction. The location of the rain gage will determine which radar cell value will be extracted; figure 1 (a, b) shows the rain gage location and the radar cells. Methods ArcGis provides several useful tools to manipulate shape files; the Analysis Tool box is the most suited for this file format, I will use a second tool form the Statistic toolbox to extract the cell values to and text file output (ASCII file). My first concern is to locate the cells form each file that contains completely the rain gage, the solution is used the Select layer by Location Tool (figure 2). But a the problem with this tool is that each shape file has to be loaded to Arc Map as a Map layer, which constitutes a big problem when I are dealing with hundreds of large files, so I have to find something that does nit require loading each file as a layer, the second problem is to create a layer form the selection then export its attribute table to an output file, so this tool is useful for a limited files number, because it works manually. Another option is to use the Intersect tool (Overlay, Analysis Tool box), to force the intersection of a polygon with a point and join their attribute tables, the output of the intersection is set to be a point geometry to limit the usage of disk space, the intersection files will be stored in a different subfolder for later use.

Figure1 a, b Location of rain gauges and study area. The extraction process is done by a tool in Arc Map called Export feature Attribute to ASCII, this tool is script based and stored in the standard toolbox, it exports the X and Y coordinates of the feature plus one choice of field attributes, for my case it will be the value Field. The simplest way to start a geoprocessing session is to use the Model Builder in ArcGis (Figure 3), test the model functionality, set all the necessary parameters, save it as a Model then export the model to a script; ArcGis gives three options for scripting languages, visual Basic, Jython and Python, I select the last one for its ease of use, simplicity and portability, meaning it can be run in or outside the Windows environment.

Figure 2: the Select by Location Dialog box The next step is to modify the script to process my data set without using Arc Map or Arc Catalog, a loop function is needed to iterate all process until the last file is processed. Figure 3: Model Builder Window and Components in Arc GIS Figure 4 shows the script exported form the model builder, it consists of several distinct parts: 1- The import of the system application tools and methods 2- The definition of the workspace, scratch space and output space 3- The parameters settings for the workspace and the tools to be used 4- The import statement of the necessary tools form the toolbox to do the required processing.

What is left to do, is to add a statement or function inside the script to get a list of all feature classes in the workspace folder to be processed: Figure 4: Script as exported by the model builder Two lines of statements will do the work of listing of the files to be processed, the first one is a regular comment to document the script, and the second line is the one doing the work #get a list of feature classes in the input workspace fcs = gp.listfeatureclasses() #for each feature class in the list fc = fcs.next() After that I need to add a loop to repeat each process until all files are processed: while fc: # set the outputname for each fc to be the same as the input output = outputws + "\\" + fc output2 = outputasc + "\\" + fc[:18] + ".txt" # set the time stamp for each file. timestamp = fc[:18]+ " " # write the timestamp to a txt file file1.write(timestamp)

#for each fc in the list, intersect with the point rain-gage # Process: Intersect... gp.intersect_analysis(fc + ";" + rain_gage, output, "ALL", "", "INPUT") # Process: Export Feature Attribute to ASCII... gp.exportxyv_stats(output, "value", "Space", output2) # open the asc files, read and write its contents to another ascii file file2 = open(output2, "r") text = file2.read() file1.write(text) file2.close() fc = fcs.next() As shown above all the process are inside the looping block which has to be indented, for the python system requirement. The last five lines before the Next close are used to merge all output text files into one file Called radar. text (file1) above. Results In figure 5, I made a comparison betien shape file values and grid values; the outcome is a very weak correlation with an R-square of 0.13 approximately, so I decided to look for other format than the grid. Shapefiles and Grid Comparison Shapefile Values 30 25 20 15 10 5 0 y = -0.103x + 21.721 R 2 = 0.1296 0 5 10 15 20 25 30 Grid Values Figure5: Grid and Shape file, reflectivity values Comparison The shape file format is my second choice because it preserves the shape and size of the actual radar cell (10 X 1 Km), they only inconvenient with this format is the files size, and the functionality, in other words, it s more complicated to extract information form a shape file than form a grid, because the grid saves all attribute information within the cell value, Ire

the shape file uses an non spatial table (dbf. format) to store cell values and other characteristics. The output of the batch processing method is shown in figures 6, and 7; some problems still exist when there is no radar cell overlaying the rain gage point, the intersection tool works, but the export to ASCII, makes the whole script too generate an error that stops everything the script form proceeding to the next file. I m still working on this issue, I made several adjustments but without any success yet, because of my limited knowledge of programming this may take me longer than expected to fix the bug. Figure 6: Output text files for each processed shape files Figure 7: Final text file with each shape file output on a single line Discussion The results I had are not very good, more work should be done to handle all exceptions and error messages by the script it self, because at the present time I only have little data to process, in the future after installing a network of 8 rain gages, I will be processing a lot more data so I have to fix my data processing methods and procedures and test them efficiently in order to prepare for the next stage of my thesis.

Acknowledgments I m really grateful to PhD. student Xianwei Wang for the advising and the help he provided me to run my batch processing task. References 1- Learning Python Lutz and Ascher 2004, Oreilly publications 2- ArcGIS Desktop Help 3- Python tutorial release 2.4.2 Guido van Rossum and Fred L Drake 28 September 2005, Pyhton software Foundation