Fast Parallel Grid Remapping for Unstructured and Structured Grids Robert Oehmke NOAA Cooperative Institute for Research in Environmental Sciences University.

Slides:



Advertisements
Similar presentations
Weather Research & Forecasting: A General Overview
Advertisements

Expanding Regridding Capabilities of the Earth System Modeling Framework Andrew Scholbrock University of Colorado – Boulder Robert Oehmke NOAA/CIRES 1.
Earth System Curator Spanning the Gap Between Models and Datasets.
Discretizing the Sphere for Multi-Scale Air Quality Simulations using Variable-Resolution Finite-Volume Techniques Martin J. Otte U.S. EPA Robert Walko.
ESMPy: The Python Interface to the Earth System Modeling Framework Ryan O’Kuinghttons, Robert Oehmke Cecelia DeLuca, Gerhard Theurich Peggy Li, Joseph.
ESMPy and OpenClimateGIS: Python Interfaces for High Performance Grid Remapping and Geospatial Dataset Manipulation Ryan O’Kuinghttons, Ben Koziol, Robert.
Brian Doty and Jennifer Adams
Section 4: Implementation of Finite Element Analysis – Other Elements
SAN DIEGO SUPERCOMPUTER CENTER at the UNIVERSITY OF CALIFORNIA, SAN DIEGO High-Frequency Simulations of Global Seismic Wave Propagation A seismology challenge:
NCAR GIS Program : Bridging Gaps
CSE351/ IT351 Modeling And Simulation Choosing a Mesh Model Dr. Jim Holten.
Mesoscale & Microscale Meteorological Division / NCAR ESMF and the Weather Research and Forecast Model John Michalakes, Thomas Henderson Mesoscale and.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
A Quick Tour of the NOAA Environmental Software Infrastructure and Interoperability Group Cecelia DeLuca and the ESMF team ESRL Directorate Seminar June.
WRF-VIC: The Flux Coupling Approach L. Ruby Leung Pacific Northwest National Laboratory BioEarth Project Kickoff Meeting April 11-12, 2011 Pullman, WA.
Community infrastructure for building and coupling high performance climate, weather, and coastal models Cecelia DeLuca NOAA / CIRES University of Colorado,
Session 2: ESMF Distributed Data Classes
NSF NCAR | NASA GSFC | DOE LANL ANL | NOAA NCEP GFDL | MIT | U MICH First Field Tests of ESMF GMAO Seasonal Forecast NCAR/LANL CCSM NCEP.
Metadata Creation with the Earth System Modeling Framework Ryan O’Kuinghttons – NESII/CIRES/NOAA Kathy Saint – NESII/CSG July 22, 2014.
Earth System Modeling Infrastructure Cecelia DeLuca/ESMF-NCAR March 31-April 1, 2009 CHyMP Meeting.
ESMF Town Hall Meeting AGU Fall Meeting 2010 San Francisco Gerhard Theurich, Fei Liu, Peggy Li, Cecelia DeLuca NOAA/CIRES December 15, 2010
NE II NOAA Environmental Software Infrastructure and Interoperability Program Cecelia DeLuca Sylvia Murphy V. Balaji GO-ESSP August 13, 2009 Germany NE.
Cecelia DeLuca, Don Stark, Chris Hill Arctic System Model Workshop May 20, 2008 Earth System Modeling Framework.
ESMF Development Status and Plans ESMF 4 th Community Meeting Cecelia DeLuca July 21, 2005 Climate Data Assimilation Weather.
Update on ESMF, Earth System Curator, and Earth System CoG Cecelia DeLuca and the ESMF team CCSM Software Engineering Working Group June 23, 2011.
Computational Design of the CCSM Next Generation Coupler Tom Bettge Tony Craig Brian Kauffman National Center for Atmospheric Research Boulder, Colorado.
Initial Results from the Integration of Earth and Space Frameworks Cecelia DeLuca/NCAR, Alan Sussman/University of Maryland, Gabor Toth/University of Michigan.
1 CW 2015, Manchester, 04/ Coupling technology benchmarking in IS-ENES2 Coupling technology benchmarking in IS-ENES2 IS-ENES2 WP10-T3 Evaluation.
ESMF Application Status GMAO Seasonal Forecast NCAR/LANL CCSM NCEP Forecast GFDL FMS Suite MITgcm NCEP/GMAO Analysis Climate Data Assimilation.
The use of modeling frameworks to facilitate interoperability Cecelia DeLuca/NCAR (ESMF) Bill Putman/NASA GSFC (MAPL) David Neckels/NCAR.
Dataset Development within the Surface Processes Group David I. Berry and Elizabeth C. Kent.
CESM/ESMF Progress Report Mariana Vertenstein NCAR Earth System Laboratory CESM Software Engineering Group (CSEG) NCAR is sponsored by the National Science.
GEOSTATISICAL ANALYSIS Course: Special Topics in Remote Sensing & GIS Mirza Muhammad Waqar Contact: EXT:2257.
Discontinuous Galerkin Methods for Solving Euler Equations Andrey Andreyev Advisor: James Baeder Mid.
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.
Earth System Modeling Framework Workshop on “Coupling Technologies for Earth System Modelling : Today and Tomorrow” CERFACS, Toulouse (France) – Dec 15.
Earth System Modeling Framework Python Interface (ESMP) October 2011 Ryan O’Kuinghttons Robert Oehmke Cecelia DeLuca.
CCSM Portability and Performance, Software Engineering Challenges, and Future Targets Tony Craig National Center for Atmospheric Research Boulder, Colorado,
Strategic Plan Implementation Cecelia DeLuca/NCAR (ESMF) December 17, 2008 ESMF Board/Interagency Meeting.
Coupling protocols – software strategy Question 1. Is it useful to create a coupling standard? YES, but … Question 2. Is the best approach to make a single.
ESMF Strategic Discussion Cecelia DeLuca NOAA ESRL/University of Colorado ESMF Executive Board/Interagency Meeting June 12, 2014.
ESMF Regridding Update Robert Oehmke, Peggy Li, Ryan O’Kuinghttons, Mat Rothstein, Joseph Jacob NOAA Cooperative Institute for Research in Environmental.
ESMF Regridding Update Robert Oehmke Ryan O’Kuinghttons Amik St. Cyr.
CCSM Performance, Successes and Challenges Tony Craig NCAR RIST Meeting March 12-14, 2002 Boulder, Colorado, USA.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
SCD User Briefing NCL and PyNGL Visualization for the Geosciences Don Middleton with presentation material developed by Luca Cinquini, Mary Haley, Fred.
Earth System Curator and Model Metadata Discovery and Display for CMIP5 Sylvia Murphy and Cecelia Deluca (NOAA/CIRES) Hannah Wilcox (NCAR/CISL) Metafor.
The Earth System Modeling Framework Robert Oehmke, Gerhard Theurich, Cecelia DeLuca NOAA Cooperative Institute for Research in Environmental Sciences University.
Running CESM An overview
ESMF,WRF and ROMS. Purposes Not a tutorial Not a tutorial Educational and conceptual Educational and conceptual Relation to our work Relation to our work.
SDM Center High-Performance Parallel I/O Libraries (PI) Alok Choudhary, (Co-I) Wei-Keng Liao Northwestern University In Collaboration with the SEA Group.
1 Rocket Science using Charm++ at CSAR Orion Sky Lawlor 2003/10/21.
Using ESMF Regridding Tools as an Observation Operator Presenter: Mathew V. Rothstein Software Engineer, NOAA/CNT Training at NRL Monterey August 5-6,
Enhancements for Hydrological Modeling in ESMF Cecelia DeLuca/NCAR (ESMF) December 19, 2008 AGU Fall Meeting.
ESMF Change Review Board Robert Ferraro ESMF Board Meeting Dec 17, 2008 Climate Data Assimilation Weather.
ESMF and the future of end-to-end modeling Sylvia Murphy National Center for Atmospheric Research
Presented by Ricky A. Kendall Scientific Computing and Workflows National Institute for Computational Sciences Applications National Institute for Computational.
A TIME-GCM CAM Multi-executable Coupled Model Using ESMF and InterComm Robert Oehmke, Michael Wiltberger, Alan Sussman, Wenbin Wang, and Norman Lo.
Mirin – AMWG 2006 – Slide 1 Coupled Finite-Volume Simulations at One-Degree Resolution Art Mirin and Govindasamy Bala Lawrence Livermore National Laboratory.
A Quick Tour of the NOAA Environmental Software Infrastructure and Interoperability Group Cecelia DeLuca Dr. Robert Detrick visit March 28, 2012
ESMPy and OpenClimateGIS: Python Interfaces for High Performance Grid Remapping and Geospatial Dataset Manipulation Ryan O’Kuinghttons, Ben Koziol, Robert.
Regional Climate Model Version 4.1 (RegCM4.1) Centre for Oceans, Rivers, Atmosphere and Land Sciences Indian Institute of Technology Kharagpur Kharagpur.
GMAO Seasonal Forecast
ESPC Air-Ocean-Land-Ice Global Coupled Prediction
A Quick Tour of the NOAA Environmental Software Infrastructure and Interoperability Group Cecelia DeLuca and the ESMF team ESRL Directorate Seminar June.
ESMF Regridding Update
Mariana Vertenstein CCSM Software Engineering Group NCAR
Progress of Interactions Among CCSM and Other Modeling Efforts
OpenClimateGIS: A Python Library for Geospatial Manipulations of CF Climate Datasets Ben Koziol1, Ryan O’Kuinghttons1, Robert Oehmke1, Richard Rood2, Cecelia.
Presentation transcript:

Fast Parallel Grid Remapping for Unstructured and Structured Grids Robert Oehmke NOAA Cooperative Institute for Research in Environmental Sciences University of Colorado, Boulder

ESMF Regridding Regridding (or remapping or interpolation) is the process of moving data from one grid to another while preserving qualities of the original data. ESMF regridding is: Flexible: Computes weights between a wide range of grids – Structured and unstructured, global and regional, multiple interpolation options, pole options … Accurate and Portable: – Spherical regridding handled in 3D to avoid pole issues – Tested nightly on many platforms Parallel and Fast: – Able to compute weights in minutes which before took hours – Able to compute weights between very large grids Community developed: under NASA, NOAA, DOD and NSF funding – Well established (since 2005) community processes for prioritization, support and review. – Development priorities set by users through quarterly Change Review Board (CRB) meetings

Methods of Accessing Regridding ESMF Offline: – Application generates a NetCDF weight file from two NetCDF grid files – Supports SCRIP format grid files and a custom ESMF unstructured format – Comes with the ESMF source code distribution mpirun –np 32 ESMF_RegridWeightGen –s src_grid.nc –d dst_grid.nc –m bilinear –w weights.nc Integrated: – ESMF library subroutine calls which do interpolation during model run – Can get weights or pass directly into ESMF parallel sparse matrix multiply to apply weights – Can be used without other parts of ESMF (e.g. components are not needed) call ESMF_FieldRegridStore(srcField=src, dstField=dst, regridMethod=ESMF_REGRID_METHOD_BILINEAR, routehandle=rh) call ESMF_FieldRegrid(srcField=src, dstField=dst, routehandle=rh)

ESMF Offline: Supported Grids Grids with spherical (lon, lat) coordinates Mix and match pairs of: – Global 2D logically rectangular grids – Regional 2D logically rectangular grids – 2D unstructured meshes composed of polygons with any number of sides: ESMF internally represents these as triangles and quadrilaterals Supported elements: triangles, quadrilaterals, pentagons, hexagons,… – Multi-patch grids (e.g. cubed spheres) currently supported via unstructured Multi-patch support expected with GridSpec HOMME Cubed Sphere Grid with Pentagons Courtesy Mark Taylor of Sandia FIM Unstructured Grid Regional Grid

Integrated Supported Grids In addition, integrated regridding supports Cartesian (x,y) coordinates: – Regridding between any pair of: 2D meshes composed of triangles and quadrilaterals 2D logically rectangular grids composed of a single patch – Bilinear regridding between any pair of: 3D meshes composed of hexahedrons 3D logically rectangular grids composed of a single patch 2D Unstructured Mesh From 3D Grid3D Unstructured Mesh

ESMF Offline: Unstructured Formats SCRIP netcdf example-scrip { dimensions: grid_size = 100; grid_corners = 4; grid_rank = 1 ; variables: double grid_corner_lon(grid_size, grid_corners) ; double grid_corner_lat(grid_size, grid_corners) ; double grid_center_lat(grid_size) ; double grid_center_lon(grid_size) ; double grid_area(grid_size) ; double grid_imask(grid_size) ; } ESMF netcdf example-esmf { dimensions: nodeCount = 120; elementCount = 100 ; maxNodePElement = 4 ; coordDim = 2 ; variables: double nodeCoords(numNode, coordDim); byte numElementConn(numElement) ; int elementConn(numElement, maxNodePElement) ; double centerCoords(numElement, coordDim) ; double elementArea(numElement) ; int elementMask(numElement) ; } The ESMF offline format allows for more explicit expression of unstructured grids.

ESMF Offline: Features Several interpolation types: – Bilinear – Higher order patch recovery Yields better derivatives/smoother results than bilinear Based on “patch recovery” used in finite element modeling [1][2] – First order conservative Masking (currently only for logically rectangular grids): – Source – Destination Options for unmapped destination points: error or ignore Pole options for global spherical logically rectangular Grids: – Full circle average: artificial pole is average of all source points next to pole – N-point average: artificial pole is average of n top source neighbors of dest point – Teeth: gap at pole filled by triangles – No pole: error if destination point lies above top row of source points

ESMF Offline: Testing/Support Library regression testing: – Running daily on 20+ platforms See: – Unit tests, regrid test harness, more complex system tests cover regridding core capabilities – Interpolation error checked, for conservative, integration error also checked – Additional ESMF Offline regression testing also run nightly Support and examples – Dozens of examples – Contact for

ESMF Offline Use in CESM Climate Model Higher order interpolation leads to reduced noise in wind stress values – Grids: CAM atmosphere lat/lon to POP ocean displaced pole lat/lon – ESMF patch interpolation reduced imprint of coarser resolution atmosphere grid on ocean for interpolated wind stress values. Interpolation weights used in CCSM4 and subsequent IPCC runs Better interpolation of cubed sphere (unstructured) and lat/lon ocean – Grids: HOMME cubed sphere atmosphere to lat/lon ocean grid – ESMF conservative regridding enabled easier integration of a high resolution dynamical core into CAM, reduced distortion near the pole. Enables CLM land model to run on cubed sphere – Grids: Land lat/lon to HOMME cubed sphere – ESMF parallel bilinear mapping from lat/lon to HOMME cubed sphere allowed investigation of high resolution land model to move forward for CESM. Better values at poles for unstructured to lat/lon remapping – Grids: MPAS unstructured grid to POP ocean grid – ESMF conservative interpolation solved problems with negative weights at the pole.

ESMF Offline: Timing Example Previous solution takes 635s (20x) to compute conservative weights Previous solution unable to compute bilinear weights from cubed sphere Platform: Crag XT4, jaguar at ORNL Version: ESMF_5_2_0_beta_snapshot_07 fv0.47x0.63: CAM Finite Volume grid, 576x384 ne60np4: 0.5 degree cubed sphere grid with pentagons, 180x180x6

Large Grids from Users User reported times using integrated regridding 10800x5400 lat/lon grid to 1440x1440x6 NASA cubed sphere – User: NASA Global Modeling and Assimilation Office – Interpolating topography data – Higher order patch recovery interpolation – Approximately 1 minute including I/O on 96 cores of Discover 10800x5400 lat/lon grid to 1440x1440x6 NASA cubed sphere – User: NASA Global Modeling and Assimilation Office – Interpolating topography data – Conservative interpolation – Approximately 1.5 minute including I/O on 96 cores of Discover 16 million triangle mesh to 16 million triangle mesh – User: Community Surface Dynamics Modeling System – Testing ESMF regridding for possible inclusion in a community toolkit – Bilinear interpolation – Approximately 1 minute on 64 cores of their Linux cluster User reported times using integrated regridding 10800x5400 lat/lon grid to 1440x1440x6 NASA cubed sphere – User: NASA Global Modeling and Assimilation Office – Interpolating topography data – Higher order patch recovery interpolation – Approximately 1 minute including I/O on 96 cores of Discover 10800x5400 lat/lon grid to 1440x1440x6 NASA cubed sphere – User: NASA Global Modeling and Assimilation Office – Interpolating topography data – Conservative interpolation – Approximately 1.5 minute including I/O on 96 cores of Discover 16 million triangle mesh to 16 million triangle mesh – User: Community Surface Dynamics Modeling System – Testing ESMF regridding for possible inclusion in a community toolkit – Bilinear interpolation – Approximately 1 minute on 64 cores of their Linux cluster

Releases February 2011 – Described in this talk 5.2r May 2011 – Remove divided weights generated when polygons have 5+ sides (affects size of weight matrix, not accuracy) – Python wrapper for ESMF Offline (Ryan O’Kuinghttons, NOAA/CIRES) within several months: – Support for the GridSpec file format (Summer intern) – Fully parallel I/O for reading in grids (Peggy Li, JPL) – Further time and memory optimizations (Peggy Li, JPL) – 3D conservative (Robert Oehmke, NOAA/CIRES) – Web service interface for ESMF Offline (Luca Cinquini, NOAA/CIRES) Candidate development for future releases: – Support for GIS coordinate systems – Second order conservative

References Patch interpolation: 1.Khoei S.A., Gharehbaghi A. R. The superconvergent patch recovery technique and data transfer operators in 3d plasticity problems. Finite Elements in Analysis and Design, 43(8), Hung K.C, Gu H., Zong Z. A modified superconvergent patch recovery method and its application to large deformation problems. Finite Elements in Analysis and Design, 40(5-6), We are eagerly seeking new cases to try. Come talk to us, or write