Guided Tour of Pythonian Museum

Slides:



Advertisements
Similar presentations
The Live Access Server (Access to observational data) Jonathan Callahan (University of Washington) Steve Hankin (NOAA/PMEL – PI) Roland Schweitzer, Kevin.
Advertisements

National Aeronautics and Space Administration Jet Propulsion Laboratory California Institute of Technology MLS Level 3 Products Paul Wagner 1, Yibo Jiang.
The HDF Group HDF/HDF-EOS Workshop XIV1 Easy Remote Access via OPeNDAP Kent Yang and Joe Lee The HDF Group The 14 th HDF/HDF-EOS Workshop.
NASA Trace Gas Products for Air Quality Applications NASA Remote Sensing Training September 2014 ARSET Applied Remote SEnsing Training A project of NASA.
University of Illinois at Urbana-ChampaignHDF 1McGrath/Yang 2/27/02 Transitioning from HDF4 to HDF5 Robert E. McGrath Kent Yang.
Support EOS: Review and Discussions Kent Yang and Joe Lee The HDF Group October 16, 2012 Oct. 16, 2012Annual HDF Briefing to ESDIS1.
The HDF Group HDF/HDF-EOS Workshop XIV1 Easy Access of NASA HDF data via OPeNDAP Kent Yang and Joe Lee The HDF Group September 28,2010.
Obtaining MISR Data and Information Jeff Walter Atmospheric Science Data Center April 17, 2009.
Geospatial Data Abstraction Library (GDAL) Enhancement for ESDIS (GEE) Increasing Accessibility and Interoperability of NASA Data Products with GIS Tools.
Reprojecting MODIS Images. Reasons why reprojection is desirable: 1.Removes Bowtie Artifacts 2.Allows geographic overlays (e.g. coastline, city locations)
What is HDF-EOS? Information compiled from HDF-EOS Workshop II HDF-EOS Workshop III, 1999 ESDIS Project, Code 423 NASA/Goddard Space Flight Center Greenbelt.
1 HDF-EOS and Related Tools Status Update. 2 Overview.
The HDF Group ESIP Summer Meeting HDF OPeNDAP update Kent Yang The HDF Group 1 July 8 – 11, 2014.
1 HDF-EOS Status, Related Tools and Issues. 2 Overview.
Unidata’s TDS Workshop TDS Overview – Part II October 2012.
Important ESDIS 2009 tasks review Kent Yang, Mike Folk The HDF Group April 1st, /1/20151Annual briefing to ESDIS.
DM_PPT_NP_v01 SESIP_0715_AJ HDF Product Designer Aleksandar Jelenak, H. Joe Lee, Ted Habermann Gerd Heber, John Readey, Joel Plutchak The HDF Group HDF.
The HDF Group September 28, 2010HDF/HDF-EOS Workshop XIV1 Easy Access of HDF data via NCL/IDL/MATLAB Kent Yang, Tong Qi, Ziying Li, Yi.
Page 1 HDF-EOS Tools Abe Taaheri, Raytheon IIS ESIP Meeting Chapel Hill, NC July 9, 2013.
Open Earth Framework Dealing with file formats, data semantics, and other gotchas Dave Nadeau John Moreland.
Unidata TDS Workshop TDS Overview – Part I XX-XX October 2014.
Improving the usability of HDF-EOS2 data Kent Yang, Joe Lee, Choonghwan Lee The HDF Group March 31 st, /26/2016Annual briefing to ESDIS1.
Giovanni for AQ Gregory Leptoukh NASA Goddard Space Flight Center Goddard Earth Sciences Data and Information Services Center (GES DISC)
Why do I want to know about HDF and HDF- EOS? Hierarchical Data Format for the Earth Observing System (HDF-EOS) is NASA's primary format for standard data.
Tools for Interoperability between HDF and NetCDF Mike Folk and MuQun Yang The HDF Group The HDF Group provides the following tools for the NASA HDF and.
1/14/200925th IIPS Conference 1 Challenges to Archive and Access NASA HDF-EOS Data in the long Term MuQun Yang (The HDF Group) Choonghwan Lee (The HDF.
Discovery and Web Services in Support of SST Datasets at the PO.DAAC Edward Armstrong, Jorge Vazquez Toshio M. Chin, Charles Thompson Jet Propulsion Laboratory/California.
The HDF Group November 3-5, 2009 HDF-OPeNDAP Project Update HDF/HDF-EOS Workshop XIII1 Joe Lee and Kent Yang The HDF Group James Gallagher.
HDF OPeNDAP Project Update MuQun Yang and Hyo-Kyung Lee The HDF Group March 31, Annual briefing to ESDIS10/31/2015.
ESIP Federation 2004 : L.B.Pham S. Berrick, L. Pham, G. Leptoukh, Z. Liu, H. Rui, S. Shen, W. Teng, T. Zhu NASA Goddard Earth Sciences (GES) Data & Information.
The HDF Group HDF/HDF-EOS Workshop XV1 Tools to Improve the Usability of NASA HDF Data Kent Yang and Joe Lee The HDF Group April 17, 2012.
Sciamachy features and usage with respect to end-users The typical fate of retrieval people dealing with large datasets… C. Frankenberg, SRON team, IUP.
NetCDF file generated from ASDC CERES SSF Subsetter ATMOSPHERIC SCIENCE DATA CENTER Conversion of Archived HDF Satellite Level 2 Swath Data Products to.
Page 1 CSISS Center for Spatial Information Science and Systems Access HDF-EOS data with OGC Web Coverage Service - Earth Observation Application Profile.
HDF4 OPeNDAP Project Progress Report MuQun Yang and Hyo-Kyung Lee 1 HDF Developers' Meeting11/24/2015.
The HDF Group Data Interoperability The HDF Group Staff Sep , 2010HDF/HDF-EOS Workshop XIV1.
The HDF Group HDF/HDF-EOS Workshop XV1 HDF-OPeNDAP Project Update Joe Lee and Kent Yang The HDF Group April 18, 2012.
GLAS Standard Data Products for Distribution by NSIDC Polar DAAC User Working Group PoDAG Meeting XVI February 2000 Presenters H. Jay Zwally, NASA/GSFC.
Post Processing Tools Sylvia Murphy National Center for Atmospheric Research.
1 The Polar HDF-EOS Data Imaging and Subsetting (PHDIS) Tool Siri Jodha Singh Khalsa Emergent Information Technologies, Inc. National Snow and Ice Data.
10/16/2012Annual HDF briefing1 HDF OPeNDAP support Kent Yang, Joe Lee, Mike Folk The HDF Group Oct. 16, 2012.
Summary of HDF-EOS5 Files, Data Model and File Format Abe Taaheri, Raytheon IIS HDF & HDF-EOS Workshop XI November 2007.
MISR Geo-registration Overview Brian E. Rheingans Jet Propulsion Laboratory, California Institute of Technology AMS Short Course on Exploring and Using.
The HDF Group November 3-5, 2009HDF/HDF-EOS Workshop XIII1 The New HDF-EOS Web Site - How it can help you Kent Yang, Joe Lee The HDF Group.
NPP DataVisualization using McIDAS-V NPP DataVisualization using McIDAS-V Tommy Jasmin, Tom Rink, and Tom Achtor
AIRS/AMSU-A/HSB Data Subsetting and Visualization Services at GES DAAC Sunmi Cho, Jason Li, Donglian Sun, Jianchun Qin and Carrie Phelps, Code 902, NASA.
Goddard Earth Sciences Data and Information Services Center, NASA/GSFC, Code 902, Greenbelt, Maryland 20771, USA INTRODUCTION  NASA Goddard Earth Sciences.
NPP DataVisualization using McIDAS-V NPP DataVisualization using McIDAS-V Tommy Jasmin, Tom Rink, and Tom Achtor
Air pollutants, such as aerosols and various trace gases, are transported on a hemispheric or global scale. The Task Force on Hemispheric Transport of.
U.S. Department of the Interior U.S. Geological Survey LP DAAC Big Earth Data Initiative (BEDI) Developed Web Services 1 Jason Werpy LP DAACEnterprise.
NcBrowse: A Graphical netCDF File Browser Donald Denbo NOAA-PMEL/UW-JISAO
Accessing Global Precipitation Data Products via TRMM Online Visualization and Analysis System (TOVAS) Zhong Liu Center for Spatial Information Science.
Can Data be Organized for Science and Reuse?
HDF Product Designer: Using Templates to Achieve Interoperability
Zhong Liu George Mason University and NASA GES DISC
Data Are from Mars, Tools Are from Venus
Andrew White, Brian Freitag, Udaysankar Nair, and Arastoo Pour Biazar
Easy Access of HDF data via NCL/IDL/MATLAB
Moving from HDF4 to HDF5/netCDF-4
CERES Data Management Team
Content Objectives: Identify location based on latitude and longitude coordinates. Compare the physical and political regions. Language Objective: Define.
MERRA Data Access and Services
Mike Folk, Peter Cao, Kent Yang Ruth Duerr Christopher Lynnes
Efficiently serving HDF5 via OPeNDAP
GDAL Enhancement for ESDIS project
Overview Ellipsoid Spheroid Geoid Datum Projection Coordinate System.
CERES Data Management Team Science Data Processing Workshop 2002
HDF Support for NASA Data Producers
HDF Data in the Cloud The HDF Team
HDF-EOS Workshop XXI / The 2018 ESIP Summer Meeting
Presentation transcript:

Guided Tour of Pythonian Museum H. Joe Lee (hyoklee@hdfgroup.org) The HDF Group If you feel weird about the title. Don’t worry! This talk is not about petrified snakes. My talk is mostly about Earth data and Python. This tour shows how Giant Python swallows Big Earthdata in HDF. This work was supported by NASA/GSFC under Raytheon Co. contract number NNG15HZ39C

Welcome to Pythonian Museum! One of my favorite places on Earth is Smithonian Museum because it has a large collection of amazing things around the world. The best part is, it is free. For last 10 years, we’ve collected many NASA HDF data product samples from different NASA data centers for various testing purposes. At first, we called these collection as Zoo because of data product’s diversity. Like biological creatures, NASA HDF data products have evolved over time. Some old data products are no longer available from NASA data center and they are petrified in our FTP site. So I think it’s legitimate to call it as Museum. With NASA HDF data products from many different data centers, we’ve provided MTALAB/IDL/NCL examples. Python examples are recently added for last few years. Based on our website log, Python’s popularity surged significantly. https://commons.wikimedia.org/wiki/File:Smithsonian_Building_NR.jpg

Your tour guide is the maintainer of hdfeos.org website. loves diverse NASA HDF products. has created 170+ Python examples so far. When you hear the word Python and your brain came up with computer language, you’re a nerd. Has anyone visited Smithonian museum? Python zoo tour. “Research as art” Museum curator Zoo keeper

http://hdfeos.org/zoo Let’s Go! Where is the museum? It’s a confession time. Public use graphics https://www.autodraw.com/artists

The Main Entrance List of NASA Data Centers List of NASA HDF Products Click on any product!

Pythonian tour has 4 packages pyhdf – for HDF4 h5py – for HDF5 netCDF4 – for HDF4/HDF5 gdal – for HDF-EOS2/HDF-EOS5

Why 4 packages? Ideally, the best product is one that can be accessed by all packages.

How about other packages?

What to focus on during tour Does product have lat/lon dataset? If not, are they stored in different product or metadata or document? Bit packing / scale & offset handling Visualization tips on world map with different projections Memory / performance issue

GES DISC AIRS Grid HDF-EOS2 – 1D Lat/Lon variables pyhdf / netCDF4 Equidistant Cylindrical plot # Read geolocation dataset. lat = hdf.select(‘Latitude’)

GES DISC AIRS Swath HDF-EOS2 – 2D Lat/Lon variables pyhdf / netCDF4 Polar Stereographic plot # Read geolocation dataset. lat = hdf.select('Latitude') latitude = lat[:,:] # Polar stereo m = Basemap(projection='npstere', resolution='l' boundinglat=65, lon_0 = 180) Let’s start from A. Polar Stereographic projection is ideal for swath.

GES DISC TRMM Swath v7 HDF4 – pyhdf / netCDF4 Lat/Lon in one 3D dataset - subsetting Longitude shifting for pcolormesh() # There is a wrap-around effect to deal with. longitude[longitude < -165] += 360

GES DISC TRMM Grid Lat/Lon are calculated from documentation. # http://disc.sci.gsfc.nasa.gov/additional/faq/precipitation_faq.shtml latitude = np.arange(-49.875, 49.875, 0.249375) longitude = np.arange(-179.875, 179.876, 0.25)

GES DISC OMI Grid HDF-EOS5 - h5py (Python3) Lat/lon are calculated from StructMetadata # There is no geolocation data, so construct it ourselves. longitude = np.arange(0., 1440.0) * 0.25 - 180 + 0.125 latitude = np.arange(0., 720.0) * 0.25 - 90 + 0.125

GES DISC MLS Swath HDF-EOS5 / h5py netCDF-4 will not work due to object reference Vertical profile line plot –plot() Toolkit Internal Time (TAI) handling # Handle TAI. timebase = datetime.datetime(1993, 1, 1, 0, 0, 0) + datetime.timedelta(seconds=time[399])

GES DISC HIRDLS ZA HDF-EOS5 - h5py / netCDF4 Zonal Average plot - contourf() Log scale in Y-axis # Apply log scale along the y-axis to get a better image. lev = np.log10(lev)

GES DISC GOSAT/ACOS HDF5 – h5py 1D lat/lon swath Trajectory - scatter() Multiple plots Orthographic projection map

LAADS MOD06 Swath HDF-EOS2 – pyhdf / netCDF4 Lat/lon from MOD03 product Scale / offset / valid range S. Pole Stereographic projection # Read geolocation dataset from MOD03 product. hdf = SD(FILE_NAME, SDC.READ) hdf_geo = SD(GEO_FILE_NAME, SDC.READ) lat = hdf_geo.select('Latitude')

LP DAAC MOD09GA Grid HDF-EOS2 – pyhdf / gdal Lat/lon in Sinusoidal Projection mpl_toolkits.basemap.pyproj # In basemap, the sinusoidal projection is global, so we won't use it. # Instead we'll convert the grid back to lat/lons. sinu = pyproj.Proj("+proj=sinu +R=6371007.181 +nadgrids=@null +wktext") wgs84 = pyproj.Proj("+init=EPSG:4326") lon, lat= pyproj.transform(sinu, wgs84, xv, yv)

MEaSURES VIP GRID HDF-EOS2 – pyhdf / netCDF4 / gdal StructMetadata parsing Huge dataset – sub sampling for visualization # Scale down the data by a factor of 6 so that low-memory machines can handle it. data = data[::6, ::6]

ASDC CALIPSO HDF4 – pyhdf / netCDF4 Bitmask / Complex subsetting Discrete colorbar # You can visualize other blocks by changing subset parameters. data2d = data[3500:3999, 0:164] # 20.2km to 30.1km data2d = data[3500:3999, 165:1164] # 8.2km to 20.2km data2d = data[3500:4000, 1165:] # -0.5km to 8.2km This is the beast like Giant Squid at Smithonian museum.

More Examples? NASA Developers Portal – PyDAP + PyCMR We started porting our examples into NASA Developer portal. They are mostly related to OPeNDAP. https://developer.earthdata.nasa.gov/opendap/cms-ch4-flx-na

This work was supported by NASA/GSFC under Raytheon Co This work was supported by NASA/GSFC under Raytheon Co. contract number NNG15HZ39C