Coupling Climate and Hydrological Models Interoperability Through Web Services.

Slides:



Advertisements
Similar presentations
A Workflow Engine with Multi-Level Parallelism Supports Qifeng Huang and Yan Huang School of Computer Science Cardiff University
Advertisements

University of Southampton Electronics and Computer Science M-grid: Using Ubiquitous Web Technologies to create a Computational Grid Robert John Walters.
Earth System Curator Spanning the Gap Between Models and Datasets.
Standa Vaněček The potential of Integrated Modelling and the OpenMI Standa Vaněček DHI, Chairman of the OATC.
Venkatesh Merwade, Purdue University
Management Framework for Amazon EC2 Speaker: Frank Bitzer
Development of a Community Hydrologic Information System Jeffery S. Horsburgh Utah State University David G. Tarboton Utah State University.
Asper School of Business University of Manitoba Systems Analysis & Design Instructor: Bob Travica System architectures Updated: November 2014.
1 NGGPS Dynamic Core Requirements Workshop NCEP Future Global Model Requirements and Discussion Mark Iredell, Global Modeling and EMC August 4, 2014.
Soil Water Assessment Tool (SWAT) Model Input
The SAM-Grid Fabric Services Gabriele Garzoglio (for the SAM-Grid team) Computing Division Fermilab.
WORKFLOW IN MOBILE ENVIRONMENT. WHAT IS WORKFLOW ?  WORKFLOW IS A COLLECTION OF TASKS ORGANIZED TO ACCOMPLISH SOME BUSINESS PROCESS.  EXAMPLE: Patient.
Research on cloud computing application in the peer-to-peer based video-on-demand systems Speaker : 吳靖緯 MA0G rd International Workshop.
Coupling Climate and Hydrological Models Interoperability Through Web Services.
Coupling Climate and Hydrological Models Interoperability Through Web Services Kathy Saint/SGI – NESII Jon Goodall/University of South Carolina Richard.
 Cloud computing  Workflow  Workflow lifecycle  Workflow design  Workflow tools : xcp, eucalyptus, open nebula.
NSF NCAR | NASA GSFC | DOE LANL ANL | NOAA NCEP GFDL | MIT Adoption and field tests of M.I.T General Circulation Model (MITgcm) with ESMF Chris Hill ESMF.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
9/13/20151 Threads ICS 240: Operating Systems –William Albritton Information and Computer Sciences Department at Leeward Community College –Original slides.
Metadata Creation with the Earth System Modeling Framework Ryan O’Kuinghttons – NESII/CIRES/NOAA Kathy Saint – NESII/CSG July 22, 2014.
Project Overview GMAO Seasonal Forecast NCAR/LANL CCSM NCEP Forecast GFDL FMS Suite MITgcm NASA GMAO Analysis Climate Data Assimilation.
Introduction To Computer System
Imperial College Tracker Slow Control & Monitoring.
NE II NOAA Environmental Software Infrastructure and Interoperability Program Cecelia DeLuca Sylvia Murphy V. Balaji GO-ESSP August 13, 2009 Germany NE.
DISTRIBUTED COMPUTING
DEVS Namespace for Interoperable DEVS/SOA
SUMA: A Scientific Metacomputer Cardinale, Yudith Figueira, Carlos Hernández, Emilio Baquero, Eduardo Berbín, Luis Bouza, Roberto Gamess, Eric García,
Project Title: High Performance Simulation using NASA Model and Observation Products for the Study of Land Atmosphere Coupling and its Impact on Water.
The use of modeling frameworks to facilitate interoperability Cecelia DeLuca/NCAR (ESMF) Bill Putman/NASA GSFC (MAPL) David Neckels/NCAR.
The Limitation of MapReduce: A Probing Case and a Lightweight Solution Zhiqiang Ma Lin Gu Department of Computer Science and Engineering The Hong Kong.
End-to-End Workflows for Coupled Climate and Hydrological Modeling Edwin Sumargo (University of Illinois at Urbana-Champaign) Sylvia Murphy (NOAA/CIRES)
Integrated Grid workflow for mesoscale weather modeling and visualization Zhizhin, M., A. Polyakov, D. Medvedev, A. Poyda, S. Berezin Space Research Institute.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
ARGONNE NATIONAL LABORATORY Climate Modeling on the Jazz Linux Cluster at ANL John Taylor Mathematics and Computer Science & Environmental Research Divisions.
Earth System Modeling Framework Status Cecelia DeLuca NOAA Cooperative Institute for Research in Environmental Sciences University of Colorado, Boulder.
Large Scale Nuclear Physics Calculations in a Workflow Environment and Data Provenance Capturing Fang Liu and Masha Sosonkina Scalable Computing Lab, USDOE.
 Apache Airavata Architecture Overview Shameera Rathnayaka Graduate Assistant Science Gateways Group Indiana University 07/27/2015.
NA-MIC National Alliance for Medical Image Computing UCSD: Engineering Core 2 Portal and Grid Infrastructure.
Understanding hydrologic changes: application of the VIC model Vimal Mishra Assistant Professor Indian Institute of Technology (IIT), Gandhinagar
GVis: Grid-enabled Interactive Visualization State Key Laboratory. of CAD&CG Zhejiang University, Hangzhou
A Portable Regional Weather and Climate Downscaling System Using GEOS-5, LIS-6, WRF, and the NASA Workflow Tool Eric M. Kemp 1,2 and W. M. Putman 1, J.
ISERVOGrid Architecture Working Group Brisbane Australia June Geoffrey Fox Community Grids Lab Indiana University
University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 system architecture 1 after designing to meet functional requirements, design the system.
NEES Cyberinfrastructure Center at the San Diego Supercomputer Center, UCSD George E. Brown, Jr. Network for Earthquake Engineering Simulation NEES TeraGrid.
MODPI: A parallel MOdel Data Passing Interface for integrating legacy environmental system models A. Dozier, O. David, Y. Zhang, and M. Arabi.
Distributed Components for Integrating Large- Scale High Performance Computing Applications Nanbor Wang, Roopa Pundaleeka and Johan Carlsson
Dispatching Java agents to user for data extraction from third party web sites Alex Roque F.I.U. HPDRC.
Earth System Curator and Model Metadata Discovery and Display for CMIP5 Sylvia Murphy and Cecelia Deluca (NOAA/CIRES) Hannah Wilcox (NCAR/CISL) Metafor.
Carnegie Mellon University © Robert T. Monroe Management Information Systems Cloud Computing I Cloud Models and Technologies Management.
CUAHSI HIS: Science Challenges Linking small integrated research sites (
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 2: The Linux System Part 1.
ESMF and the future of end-to-end modeling Sylvia Murphy National Center for Atmospheric Research
Climate-SDM (1) Climate analysis use case –Described by: Marcia Branstetter Use case description –Data obtained from ESG –Using a sequence steps in analysis,
Distributed Geospatial Information Processing (DGIP) Prof. Wenwen Li School of Geographical Sciences and Urban Planning 5644 Coor Hall
LHC RT feedback(s) CO Viewpoint Kris Kostro, AB/CO/FC.
 Cloud Computing technology basics Platform Evolution Advantages  Microsoft Windows Azure technology basics Windows Azure – A Lap around the platform.
A Quick Tour of the NOAA Environmental Software Infrastructure and Interoperability Group Cecelia DeLuca Dr. Robert Detrick visit March 28, 2012
Chapter 1: Introduction
Introduction to Distributed Platforms
Lecture 8 Database Implementation
Grid Computing.
Initial Adaptation of the Advanced Regional Prediction System to the Alliance Environmental Hydrology Workbench Dan Weber, Henry Neeman, Joe Garfield and.
University of Technology
iSERVOGrid Architecture Working Group Brisbane Australia June
Service-centric Software Engineering
Chapter 4: Threads.
Chapter 2: The Linux System Part 1
Software models - Software Architecture Design Patterns
Software Engineering with Reusable Components
Presentation transcript:

Coupling Climate and Hydrological Models Interoperability Through Web Services

Outline Project Objective Motivation System Description – Components – Frameworks – System Driver Logical Workflow Data Flow Architecture Future Directions

Project Objective The development of a two-way coupled, distributed, service- based modeling system comprised of an atmospheric climate model using a standard ESMF interface and a hydrological model that utilizes standard interfaces from that domain.

Motivation and Background Hydrological impact studies can be improved when forced with data from climate models; hydrological feedbacks can affect climate A technology and scale gap exists: – Many hydrological models have limited scalability, run on desktop computers, and have watershed-sized domains – Many climate models are highly parallel, run on high performance supercomputers and have global domains – However, scales are slowly converging (e.g. high resolution climate models, hydrological systems of greater extent), and this provides opportunities to explore new coupled model configurations and modes of coupling

Approach Leveraging frameworks (ESMF, OpenMI) that can operate as web services is a way to implement loose coupling between such systems – this has many advantages – Loose coupling can be implemented with minimal source code changes needed to run the models – Standard connectors between various frameworks and interfaces can be written, encouraging broad interoperability – A web service approach enables model components to be integrated with a heterogeneous network of other services (data retrieval and post-processing, etc.) – The web service approach is well understood – The approach leverages substantial investments in converting operational weather and water models to ESMF

System Description High Performance Computer ESMF Web Services ESMF CAM Component ESMF CAM Component SWAT OpenMI CAM OpenMI Wrapper Driver Personal Computer SWAT (hydrology model) runs on a PC CAM (climate model) runs on a high performance computer Wrappers for both SWAT and CAM provide an OpenMI interface to each model Driver (OpenMI Configuration Editor) uses OpenMI interface to timestep through models via wrappers The CAM run is invoked through ESMF web services CAM output data is streamed to a CAM wrapper via ESMF web services

Components: SWAT The hydrological model chosen for this project is the Soil Water Assessment Tool (SWAT) It is a river basin scale model developed to quantify the impact of land management practices in large, complex watersheds It was chosen for this project because it is widely used, open source, and has a standard interface (OpenMI)

Components: CAM The atmospheric model chosen for this system is the Community Atmospheric Model (CAM5), part of the Community Climate System Model (CESM1.0.3) It was chosen because it is widely used, open source, and has a standard interface (ESMF)

Frameworks: Earth System Modeling Framework ESMF is a high-performance, flexible, operational-quality software infrastructure that increases the ease of use, performance portability, interoperability, and reuse in Earth science applications It provides an architecture for composing complex, coupled modeling systems and can support fully unstructured, logically rectangular, and observational data structures It is highly portable (24+ platforms), highly scalable (tested to 16K+ processors), and includes tests and examples Web services included in the ESMF distribution allow any networked ESMF component to be available as a web service.

Frameworks: OpenMI The OpenMI Software Development Kit (SDK) is a software library that provides a standardized interface that focuses on time dependent data transfer Primarily designed to work with systems that run simultaneously, but in a single-threaded environment [Gregerson et al., 2007] The primary data structure in OpenMI is the ExchangeItem, which comes in the form of an InputExchangeItem and an OutputExchangeItem (single point, single timestep)

The system driver Controls the application flow using a web service architecture Implemented using OpenMI’s Configuration Editor Convenient tool for the testing of the OpenMI implementations and model interactions

Hardware Architecture Personal Computer (Windows) High Performance Computer Virtual Linux Server Login Nodes (kraken) Compute Nodes (kraken) The Client contains the OpenMI and SWAT software, which run on a Windows platform. The atmospheric model runs on a high performance platform, often split into Compute Notes and Login Nodes Access to the Compute Nodes must be through the Login Nodes Access to the Login Nodes is through the Virtual Server (Web Svcs)

Software Achitecture Client Personal Computer (Windows) OpenMI Configuration Editor CAM OpenMI Wrapper SWAT 2005 OpenMI … to Web Services Configuration Editor is the driver… it is used to link the models and trigger the start of the run. Hydrological model (SWAT 2005) is a version wrapped to work with OpenMI Access to the atmospheric model (CAM) is done through “wrapper” code that accesses ESMF web services via an OpenMI interface

Software Architecture Server Linux Server (Web Svr) Tomcat/Axis2 SOAP Svcs HPC Login Nodes HPC Compute Nodes Job Scheduler Comp Svc Comp Svc Comp Svc CAM Process Controller Registrar In some high performance systems, access to nodes can be restrictive. Access to/from external systems can be controlled via “gateway” systems using web services. Running applications (such as CAM Component Svc) on Compute Nodes must be handled by a job scheduler.

Logical Flow - Startup Personal Computer (Windows) Config Editor CAM Wrapper SWAT 2005 OpenMI Linux Server Web Svcs HPC Login Nodes Job Scheduler Process Controller Registrar HPC Compute Nodes HPC Compute Nodes Comp Svc CAM Initialize 2.New Client 3.New Client 4.Submit Job 5.Status = SUBMITTED 6.Instantiate Job (Comp Svc) 7.Status = READY When loading models into the Configuration Editor, each model is initialized. For CAM, this involves starting a “New Client” in the Process Controller, which submits a new CAM Component Service using the Job Scheduler.

Logical Flow - Status Personal Computer (Windows) Config Editor CAM Wrapper SWAT 2005 OpenMI Linux Server Web Svcs HPC Login Nodes Job Scheduler Process Controller Registrar HPC Compute Nodes HPC Compute Nodes Comp Svc CAM Get Status 2.Get Status 3.Get State The status of the CAM Component Service is checked often throughout the workflow. The status is stored in the Registrar, so it can be retrieved via the Process Controller.

Logical Flow - Initialize Personal Computer (Windows) Config Editor CAM Wrapper SWAT 2005 OpenMI Linux Server Web Svcs HPC Login Nodes Job Scheduler Process Controller Registrar HPC Compute Nodes HPC Compute Nodes Comp Svc CAM Prepare 2.Initialize 3.Initialize 4.Initialize 5.Status = INITIALIZING 6.Status = INIT_DONE Before the models can be run, they need to be initialized. For CAM, the Initialize call is sent to the CAM Component Service via Web Services and the Process Controller. The CAM Component Svc updates it’s status in the Registrar prior to and after Initialization.

Logical Flow – Timestep (Run) Personal Computer (Windows) Config Editor CAM Wrapper SWAT 2005 OpenMI Linux Server Web Svcs HPC Login Nodes Job Scheduler Process Controller Registrar HPC Compute Nodes HPC Compute Nodes Comp Svc CAM Get Values 2.Get Values 3.Run Timestep 4.Run Timestep 5.Run Timestep 6.Status = RUNNING 7.Set Output Data 8.Status = TIMESTEP_DONE For each Timestep in SWAT, the trigger to run a timestep in CAM is a Get Values request in the OpenMI Interface. The Run Timestep request is passed to the CAM Component Service and the Component Service sets the output data making it available for later retrieval (see Get Data).

Logical Flow – Timestep (Get Data) Personal Computer (Windows) Config Editor CAM Wrapper SWAT 2005 OpenMI Linux Server Web Svcs HPC Login Nodes Job Scheduler Process Controller Registrar HPC Compute Nodes HPC Compute Nodes Comp Svc CAM Get Data Desc* 2.Get Data Desc* 3.Get Data Desc* 4.Get Data 5.Get Data 6.Get Data * one time only After each timestep run, the output data is then fetched from the CAM Component Service via the Web Services and Process Controller. The first time fetching data, a description of the data structure is requested. This description is then used for the remaining timesteps.

Logical Flow - Finalize Personal Computer (Windows) Config Editor CAM Wrapper SWAT 2005 OpenMI Linux Server Web Svcs HPC Login Nodes Job Scheduler Process Controller Registrar HPC Compute Nodes HPC Compute Nodes Comp Svc CAM Finish 2.Finalize 3.Finalize 4.Finalize 5.Status = FINALIZING 6.Status = FINAL_DONE End Client (Next Slide) After all timesteps have completed, the models need to be finalized. For CAM, the Finalize call is sent to the CAM Component Service via Web Services and the Process Controller. The CAM Component Svc updates its status in the Registrar prior to and after finalization.

Logical Flow – End Client Personal Computer (Windows) Config Editor CAM Wrapper SWAT 2005 OpenMI Linux Server Web Svcs HPC Login Nodes Job Scheduler Process Controller Registrar HPC Compute Nodes HPC Compute Nodes Comp Svc CAM End Client 2.End Client 3.Kill Server 4.Exit Service Loop After the Finalize call, the CAM Component Service is done, so the CAM Wrapper closes it out by calling End Client. This call results in the CAM Component Service completing it’s loop and exiting as well as the Process Controller removing all references to the client. 5.Status = COMPLETED 5 5

Logical Workflow DriverSWAT/OpenMIATM/OpenMI WrapperESMF Web ServicesESMF Component Initialize Prepare GetValues Finish Dispose NewClient Initialize RunTimestep Finalize GetData EndClient GetValues ESMF_GridCompInitialize ESMF_GridCompRun ESMF_GridCompFinalize ValueSet

Data Flow One-Way Coupling ESMF Component/CAM ESMF State CAM/OpenMI Wrapper Output Exchange Item Output Exchange Item SWAT/OpenMI Input Exchange Item Input Exchange Item GetValues Personal ComputerHigh Performance Computer GetDataValues The data is pulled from the CAM Component to SWAT via the wrapper, initiated by the OpenMI GetValues call; this call is made once per timestep. Data is exchanged between CAM and SWAT using the OpenMI Exchange Item structures that handle the translation from grid to point values

Data Flow Two-Way Coupling ESMF Component/CAM ESMF Export State CAM/OpenMI Wrapper Output Exchange Item Output Exchange Item Import SWAT/OpenMI Input Exchange Item Input Exchange Item GetValues Personal ComputerHigh Performance Computer GetDataValues Output Exchange Item Output Exchange Item Input Exchange Item Input Exchange Item GetValues SetInputData ESMF Import State In two-way coupling, each model pulls the data from the other model using the OpenMI GetValues method. Extrapolation is used on the first timestep to break the deadlock between the two model requests. OpenMI Input and Output Exchanges items are again used to exchange and translate the data.

Model Configurations SWAT – Hydrology science information provided by Jon Goodall of University of S. Carolina – Lake Fork Watershed (TX) – Watershed Area: km2 – Model run: 2 years, 1977 – 1978 – Timestep = 1 day – Weather Stations: wea62 (33.03 N, W) wea43 (33.25 N, W) CAM – Global Atmospheric Model – Model run: 1 day – Timestep: 1800 sec – Dynamical Core: finite volume – Horizontal Grid: 10x15 – Export data variables: surface air temperature precipitation wind speed relative humidity solar radiation

Future Tasks Continue development of two-way coupling Abstract data exchange within the ESMF wrapper code to accommodate configuration of different variables for different model implementations Explore coupling via web services provided by other frameworks and analysis and visualization tools Extend SWAT configurations for larger domains, and examine coupling to other hydrological and impacts models