NetCDF 3.6: What’s New Russ Rew Unidata Program Center University Corporation for Atmospheric Research 2004-09-01 www.unidata.ucar.edu/packages/netcdf/

Slides:



Advertisements
Similar presentations
Introduction to the BinX Library eDIKT project team Ted Wen Robert Carroll
Advertisements

Recent Work in Progress
The Model Output Interoperability Experiment in the Gulf of Maine: A Success Story Made Possible By CF, NcML, NetCDF-Java and THREDDS Rich Signell (USGS,
Streaming NetCDF John Caron July What does NetCDF do for you? Data Storage: machine-, OS-, compiler-independent Standard API (Application Programming.
Reading NetCDF Files in Matlab and analyzing the data.
The Future of NetCDF Russ Rew UCAR Unidata Program Center Acknowledgments: John Caron, Ed Hartnett, NASA’s Earth Science Technology Office, National Science.
NetCDF An Effective Way to Store and Retrieve Scientific Datasets Jianwei Li 02/11/2002.
Introduction to NetCDF Ernesto Munoz. Outline Overview of NetCDF Overview of NetCDF NetCDF file information NetCDF file information CDL utilities: ncdump,
Активное распределенное хранилище для многомерных массивов Дмитрий Медведев ИКИ РАН.
NetCDF Ed Hartnett Unidata/UCAR
Introduction to NetCDF Russ Rew, UCAR Unidata ICTP Advanced School on High Performance and Grid Computing 13 April 2011.
1 CF Unleashed: Introduction to Cf/Radial Joe VanAndel National Center for Atmospheric Research 2013/1/8 The National Center for Atmospheric.
Status of netCDF-3, netCDF-4, and CF Conventions Russ Rew Community Standards for Unstructured Grids Workshop, Boulder
Show of Hands... How many traveled to be here? University/Gov't/Industry How many use netCDF? Primary programming language for netCDF? Other data formats.
1 NetCDF and Self-Describing Data Kate Hedstrom January 2010
Developing a NetCDF-4 Interface to HDF5 Data
1 Writing NetCDF Files: Formats, Models, Conventions, and Best Practices Russ Rew, UCAR Unidata June 28, 2007.
EARTH SCIENCE MARKUP LANGUAGE “Define Once Use Anywhere” INFORMATION TECHNOLOGY AND SYSTEMS CENTER UNIVERSITY OF ALABAMA IN HUNTSVILLE.
Netcdf course Intro CF convention Netcdf excercises.
NetCDF-4 The Marriage of Two Data Formats Ed Hartnett, Unidata June, 2004.
Developing a NetCDF-4 Interface to HDF5 Data Russ Rew (PI), UCAR Unidata Mike Folk (Co-PI), NCSA/UIUC Ed Hartnett, UCAR Unidata Quincey Kozial, NCSA/UIUC.
1 Russ Rew, Ed Hartnett, John Caron UCAR Unidata Program Center Mike Folk, Robert McGrath, Quincey Kozial NCSA and The HDF Group, Inc. Final Project Review,
NetCDF for Developers and Data Providers Russ Rew, UCAR Unidata ICTP Advanced School on High Performance and Grid Computing 14 April 2011.
Unidata’s TDS Workshop TDS Overview – Part II October 2012.
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.
Unidata TDS Workshop TDS Overview – Part I XX-XX October 2014.
Unidata’s Common Data Model John Caron Unidata/UCAR Nov 2006.
NetCDF-4 and Parallel I/O GSFC, Nov 20,2008 Ed Hartnett.
© Crown Copyright Met Office Towards improved netCDF-GIS interoperability: Potential utility of the “Well-Known Model” concept Phil Bentley, Met Office.
NetCDF for High Performance Computing Introduction to NetCDF What is netCDF? NetCDF Data Models How we think of data. NetCDF Software Libraries Using.
Mid-Course Review: NetCDF in the Current Proposal Period Russ Rew
EARTH SCIENCE MARKUP LANGUAGE Why do you need it? How can it help you? INFORMATION TECHNOLOGY AND SYSTEMS CENTER UNIVERSITY OF ALABAMA IN HUNTSVILLE.
The netCDF-4 data model and format Russ Rew, UCAR Unidata NetCDF Workshop 25 October 2012.
Integrated Grid workflow for mesoscale weather modeling and visualization Zhizhin, M., A. Polyakov, D. Medvedev, A. Poyda, S. Berezin Space Research Institute.
Deutscher Wetterdienst
Integrating netCDF and OPeNDAP (The DrNO Project) Dr. Dennis Heimbigner Unidata Go-ESSP Workshop Seattle, WA, Sept
Project 4 : SciDAC All Hands Meeting, September 11-13, 2002 A. Choudhary, W. LiaoW. Gropp, R. Ross, R. Thakur Northwestern UniversityArgonne National Lab.
Advanced Utilities Extending ncgen to support the netCDF-4 Data Model Dr. Dennis Heimbigner Unidata netCDF Workshop August 3-4, 2009.
Climate Data Formats Deniz Bozkurt
NetCDF Data Model Issues Russ Rew, UCAR Unidata NetCDF 2010 Workshop
Unidata’s Common Data Model and the THREDDS Data Server John Caron Unidata/UCAR, Boulder CO Jan 6, 2006 ESIP Winter 2006.
May 2003National Coastal Data Development Center Brief Introduction Two components Data Exchange Infrastructure (DEI) Spatial Data Model (SDM) Together,
Unidata’s TDS Workshop TDS Overview – Part I July 2011.
NCAR Aviation Facility ADS II Overview Chris Webster, National Center for Atmospheric Research.
The CF Conventions: Options for Sustained Support Involving Unidata Russ Rew Unidata Policy Committee May 12, 2008.
Exporting WaterML from the Earth System Modeling Framework Xinqi Wang Louisiana State University NCAR SIParCS Program August 4, 2009.
The HDF Group Introduction to netCDF-4 Elena Pourmal The HDF Group 110/17/2015.
NetCDF-4: Software Implementing an Enhanced Data Model for the Geosciences Russ Rew, Ed Hartnett, and John Caron UCAR Unidata Program, Boulder
NetCDF and Scientific Data Durability Russ Rew, UCAR Unidata ESIP Federation Summer Meeting
Data File Formats: netCDF by Tom Whittaker University of Wisconsin-Madison SSEC/CIMSS 2009 MUG Meeting June, 2009.
Advances in the NetCDF Data Model, Format, and Software Russ Rew Coauthors: John Caron, Ed Hartnett, Dennis Heimbigner UCAR Unidata December 2010.
Unidata Technologies Relevant to GO-ESSP: An Update Russ Rew
CF 2.0 Coming Soon? (Climate and Forecast Conventions for netCDF) Ethan Davis ESO Developing Standards - ESIP Summer Mtg 14 July 2015.
Developing Conventions for netCDF-4 Russ Rew, UCAR Unidata June 11, 2007 GO-ESSP.
Development of a CF Conventions API Russ Rew GO-ESSP Workshop, LLNL
NetCDF: Data Model, Programming Interfaces, Conventions and Format Adapted from Presentations by Russ Rew Unidata Program Center University Corporation.
Update on Unidata Technologies for Data Access Russ Rew
NcBrowse: A Graphical netCDF File Browser Donald Denbo NOAA-PMEL/UW-JISAO
Utilities for netCDF-4 Dr. Dennis Heimbigner Unidata Advanced netCDF Workshop July 25, 2011.
Unidata Infrastructure for Data Services Russ Rew GO-ESSP Workshop, LLNL
NetCDF Data Model Details Russ Rew, UCAR Unidata NetCDF 2009 Workshop
Other Projects Relevant (and Not So Relevant) to the SODA Ideal: NetCDF, HDF, OLE/COM/DCOM, OpenDoc, Zope Sheila Denn INLS April 16, 2001.
NetCDF-Java version 2.2 Common Data Model John Caron Unidata/UCAR Dec 10, 2004.
(Network Common Data Form)
SRNWP Interoperability Workshop
NetCDF 3.6: What’s New Russ Rew
Plans for an Enhanced NetCDF-4 Interface to HDF5 Data
Unidata Advanced netCDF Workshop
Status for Endeavor 6: Improved Scientific Data Access Infrastructure
NCL variable based on a netCDF variable model
Presentation transcript:

NetCDF 3.6: What’s New Russ Rew Unidata Program Center University Corporation for Atmospheric Research

2 Overview A new format variant Backward compatibility Refactored documentation File size limitations eliminated Better configuration support Better Windows support

3 Larger netCDF files, 64-bit file offsets Current “classic” format uses 32-bit offsets New 64-bit offset format mode available on creation, for very large files: nc_create( file, NC_64BIT_OFFSET, &ncid ) Initial development by Greg Sjaardema, Sandia Labs We added: Fortran, C++, ncgen, ncdump support extensive additional error checking 2GiB to 4GiB variable size increase elimination of 4GiB record size limit

4 Backward Compatibility Version 3.6 library reads classic format or new format transparently By default, new files are created in classic format New format should only be used for files too large for classic format No code changes needed for existing code Third-party software evventually needs to be upgraded to 3.6 to support new format

Refactored Documentation User’s Guides for C, FORTRAN-77, FORTRAN-90 converted from FrameMaker to Texinfo Language-neutral User’s Guide documents data model Language-specific guides for C, Fortran-77, Fortran-90 Will support better maintenance of documentation, easier addition of language- specific manuals

6 Elimination of size limitations Limit No Large File Support(LFS) NetCDF 3.5 with LFS NetCDF 3.6 with LFS, classic format NetCDF 3.6 with LFS, 64-bit offset format Maximum file size 2 GiB8 EiB Maximum number of fixed-size variables with size > 2 GiB 01 (last) 2 32 Maximum number of record variables with record size > 2 GiB 01 (last) 2 32 Maximum size of fixed variable record size of record variable 2 GiB 4 GiB Maximum record size 2 GiB / nrecs4 GiB4 EiB / nrecs8 EiB / nrecs

7 Better configuration support Upgraded to use latest autoconf

8 Gridded Data Examples: model outputs, reanalysis archives Typically dependent variables located on multidimensional grid with coordinates, e.g. lat, lon, level, time xwind(n,k,j,i) is associated with lon(i), lat(j), pres(k), time(n) dimensions: lat=18; lon=36; pres=15; time=UNLIMITED; variables: float xwind(time, pres, lat, lon); xwind:long_name = “zonal wind”; xwind:units = ”m/s”; float relHumidity(time, pres, lat, lon); relHumidity:units = “percent”; double lon(lon); lon:units = “degrees_E”; double lat(lat); lat:units = “degrees_N”; int pres(pres); pres:units = “millibars”; double time(time); time:units = “days since :0:0”;

9 Trajectory Data Examples: observations from moving platforms, e.g. aircraft, soundings, ships Typically locations and observations parameterized by time dimensions: time=UNLIMITED; variables: double time(time); // coordinate variable time:units = “seconds since :0:0”; double lat(time); double lon(time); double height(time); float temperature(time); float pressure(time); float relHumidity(time);

10 Station Data Examples: hourly surface observations from weather stations Typically observational variables for each of a set of scattered locations at common times dimensions: station = 1000; time = UNLIMITED; variables: double time(time); time:units = “hours since ”; double lat(stationID); lat:units = “degrees_N”; double lon(stationID); lon:units = “degrees_E”; int elev(stationID); elev:units = “meters”; float temperature(time, stationID); temperature:units = ”celsius”; float pressure(time, stationID); pressure:units = “millibars”;

11 CDL notation and netCDF Utilities CDL (Common Data Language) is an editable text version of binary netCDF schema and data ncdump and ncgen utilities convert between binary and text versions of netCDF files ncgen can also generate programs for creating netCDF files CDL netCDF file C program ncdump ncgen -bncgen -c

NetCDF Programming Interfaces

13 Availability of netCDF Freely available source, binaries: Unidata-supported interfaces: C, C++, Fortran-77, Fortran-90, Java, Perl Platforms: Unix, Windows, Mac OS X,... License: X Windows/MIT style open source license Used in several commercial applications Status: version released February 2004 netCDF-4 under development

14 netCDF Language Interfaces Conventions of each language supported by interfaces C: core implementation C++, Fortran-77, Fortran-90, Perl: call C library Java: independent pure-Java implementation Python, Ruby, IDL, Matlab, Ada: third-party layers over C library Data is language-neutral

15 Example C netCDF calls #include Open a netCDF file for read-only access err = nc_open(”mydata.nc”, NC_NOWRITE, &ncid); Get the variable ID for “windspeed” err = nc_inq_varid(ncid, “windspeed”, &varid); Get nth variable’s name, type, shape, # of attributes err = nc_inq_var(ncid, n, name, &typep, &ndimsp, dimids, &nattsp); Read a slab of values err = nc_get_vara_float(ncid, varid, start, count, valarray);

16 Access to Array Sections Functions to access subarrays single values 1-D vector of values along any dimension 2-D cross sections using any 2 dimensions... n-dimensional hyperslabs entire variable One shared dimension may grow appendable data record-oriented access

17 Java Interface Currently most advanced netCDF interface, used to test new ideas Client access to data servers: HTTPD OPeNDAP/DODS Advanced coordinate system support for general and georeferenced coordinates Virtual datasets to aggregate, subset, redefine, using NcML (XML representation for netCDF)

NetCDF Format

19 NetCDF Format Purpose: insulate users, applications, and data from machine architectures, format details, additions to data Provides data that is self-describing portable directly accessible appendable Still support original XDR-based format (1988) 32-bit file offset limits file size New format with 64-bit offsets for huge files

NetCDF File Format netCDF Header 1st non-record variable 2nd non-record variable... nth non-record variable 1st record for 1st record variable 1st record for 2nd record variable... 1st record for rth record variable 2nd record for 1st record variable 2nd record for 2nd record variable... 2nd record for rth record variable Records grow in the UNLIMITED dimension Header Dimensions Attributes Variable metadata Fixed-size variables Record variables Use UNLIMITED dimension XDR-like represenations for all data and metadata

NetCDF Limitations

22 Some Current netCDF Limitations Not a database system: no keyed access, transactions, multiple concurrent writers Strings are just character arrays No nested data structures No “ragged arrays”, variable length records Only one growable dimension per dataset No built-in compression or packing Georeferencing requires agreement on conventions...

23 NetCDF CF Conventions Climate and Forecast metadata conventions Metadata for use, not discovery Adopted by: PCMDI, PRISM, ESMF, NCAR, Hadley Centre, GFDL, various EU projects Developed by volunteers, active list Includes georeferencing conventions for multidimensional coordinate systems Includes a “Standard Name Table” for quantities Google for “CF standard name table” 76 of 416 entries (as of June 3, 2004) relate to hydrology

Summary

25 Summary NetCDF is a simple data model, different from Relational or GIS data models NetCDF format and interfaces provide a portable way to store and access multidimensional array-oriented data Conventions exist for georeferencing netCDF data May be a bridge to link GIS and scientific users, applications, and data