NCL variable based on a netCDF variable model

Slides:



Advertisements
Similar presentations
The NCAR Command Language (NCL) and the NetCDF Data Format Research Tools Presentation Matthew Janiga 10/30/2012.
Advertisements

The Future of NetCDF Russ Rew UCAR Unidata Program Center Acknowledgments: John Caron, Ed Hartnett, NASA’s Earth Science Technology Office, National Science.
The HDF Group Apr , 2012HDF/HDF-EOS Workshop XV1 Interoperability with netCDF-4 Kent Yang, Larry Knox, Elena Pourmal The HDF Group.
NCL NCL stands for NCAR Command Language. It is similar to IDL and MATLAB. It is most convenient for reading NetCDF files and plotting maps, but there.
Introduction to NetCDF Ernesto Munoz. Outline Overview of NetCDF Overview of NetCDF NetCDF file information NetCDF file information CDL utilities: ncdump,
NetCDF 3.6: What’s New Russ Rew Unidata Program Center University Corporation for Atmospheric Research
Support EOS: Review and Discussions Kent Yang and Joe Lee The HDF Group October 16, 2012 Oct. 16, 2012Annual HDF Briefing to ESDIS1.
NetCDF Ed Hartnett Unidata/UCAR
Introduction to NetCDF Russ Rew, UCAR Unidata ICTP Advanced School on High Performance and Grid Computing 13 April 2011.
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.
The NCAR Command Language (NCL) Ethan Alpert Visualization and Enabling Technologies Section, SCD, NCAR.
1 NetCDF and Self-Describing Data Kate Hedstrom January 2010
Introduction to NetCDF4 MuQun Yang The HDF Group 11/6/2007HDF and HDF-EOS Workshop XI, Landover, MD.
NetCDF-4 The Marriage of Two Data Formats Ed Hartnett, Unidata June, 2004.
Important ESDIS 2009 tasks review Kent Yang, Mike Folk The HDF Group April 1st, /1/20151Annual briefing to ESDIS.
Advanced UNIX progamming Fall 2002 Instructor: Ashok Srinivasan Lecture 5 Acknowledgements: The syllabus and power point presentations are modified versions.
NCL Introduction Dennis Shea National Center for Atmospheric Research.
Slides based on lectures from the NCL workshop Also see the NCL homepage.
The netCDF-4 data model and format Russ Rew, UCAR Unidata NetCDF Workshop 25 October 2012.
NetCDF Operators 1 netCDF Operators [NCO]
Introduction Dennis Shea NCAR is sponsored by the National Science Foundation.
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.
File IO Dennis Shea National Center for Atmospheric Research pdf Vis5D png NCAR is sponsored by the National Science Foundation Shapefiles.
Advanced Utilities Extending ncgen to support the netCDF-4 Data Model Dr. Dennis Heimbigner Unidata netCDF Workshop August 3-4, 2009.
Brief Overview: GRIB, HDF, WRF.nc
Climate Data Formats Deniz Bozkurt
NetCDF Data Model Issues Russ Rew, UCAR Unidata NetCDF 2010 Workshop
Eurasia Institute of Earth Sciences Istanbul Technical University NCL Introduction Deniz Bozkurt web.itu.edu.tr/bozkurtd ITU Eurasia Institute of Earth.
NCL Sample Scripts Dennis Shea Climate and Global Dynamics Division Climate Analysis Section.
The HDF Group Introduction to netCDF-4 Elena Pourmal The HDF Group 110/17/2015.
Dennis Shea National Center for Atmospheric Research
AUKEGGS Canberra, Exposing legacy file-based data (interop-for-files) Andrew Woolf CCLRC Rutherford Appleton Laboratory
Post Processing Tools Sylvia Murphy National Center for Atmospheric Research.
NetCDF-4: Software Implementing an Enhanced Data Model for the Geosciences Russ Rew, Ed Hartnett, and John Caron UCAR Unidata Program, Boulder
00/XXXX 1 Data Processing in PRISM Introduction. COCO (CDMS Overloaded for CF Objects) What is it. Why is COCO written in Python. Implementation Data Operations.
SCD User Briefing NCL and PyNGL Visualization for the Geosciences Don Middleton with presentation material developed by Luca Cinquini, Mary Haley, Fred.
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.
NetCDF Operators 1 netCDF Operators [NCO]
Introduction Dennis Shea NCAR is sponsored by the National Science Foundation.
GHRSST Users Symposium 2009 Working with the GHRSST Data Format Experiences of the GCOS SST/SI Intercomparison Working Group Tess Brandon, NOAA National.
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
Libcf – A CF Convention Library for NetCDF Ed Hartnett Unidata Program Center Boulder Colorado June 11, 2007.
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.
Adding CF Attributes to an HDF5 File
File Input / Output Dennis Shea Input Output
(Network Common Data Form)
Moving from HDF4 to HDF5/netCDF-4
SRNWP Interoperability Workshop
Introduction to Computer Science
NetCDF 3.6: What’s New Russ Rew
Extending the NetCDF Supported Data Formats using a Dispatch Layer
NetCDF 資料格式介紹 NCL 變數設定介紹
National Scientific Library at Tbilisi State University
Unidata Advanced netCDF Workshop
NetCDF and Scientific Data Standard
Requirements on GSICS Plotting Tool to support VISNIR products
Status for Endeavor 6: Improved Scientific Data Access Infrastructure
Libcf – A CF Convention Library for NetCDF
Advanced UNIX progamming
HDF-EOS Workshop XXI / The 2018 ESIP Summer Meeting
Tour of NCL Website Modified by R. Grotjahn
GSICS Baseline Review: Product meta-data and structures
Masaya Takahashi Japan Meteorological Agency
Presentation transcript:

NCL variable based on a netCDF variable model Introduction to NCL/netCDF RG mod (20160304) of NCAR file: NCL variable based on a netCDF variable model 8 February 2006/October 2018

NCL Welcome page: ncl.ucar.edu

NetCDF Slides Prepared by NCL Staff Introductory material Self-describing by both header file and by variables include a collection of attributes. Attributes greatly assist array operations and graphical applications Go to “Basic_nco_v02” document to download a NetCDF file. (e.g. precipitation) Return to the slides below

netCDF files software [source Unidata] self describing (ideally) all info contained within file no external information needed to determine file contents portable [machine independent] software [source Unidata] designed for generality, not high performance parallel reads are possible; no parallel writes [version 3.6] variable model: simple array oriented (may) have descriptive info [meta data] limited data structures no ragged arrays; no record/nested structures only one “unlimited” (record) dimension [version 3.6]

Examining a netCDF file (linux commands) ncdump file_name | less dumps the entire contents of a file. USE with caution! ncdump -h file_name | less dumps the header info NCL equivalent: print (f) ncdump -v U file_name | less NCL equivalent: print (U) Note: ncdump is a Unidata utility not a netCDF Operator (NCO) not associated with NCL The lower case f in bullet 2 must be the file name. ncview to visualize file contents [COARDS] ncl_filedump file_name [ more general ] netCDF, GRIB, HDF, HDF-EOS ncl_filedump –c file_name  -c shows header & coords.

Parts of netCDF file ncdump -h 1999.nc VARIABLES: Names , Attributes, Coordinates variables: float lat(lat) ; lat:long_name = "latitude" ; lat:units = "degrees_north" ; float lon(lon) ; lon:long_name = "longitude" ; lon:units = "degrees_east" ; int time(time) ; time:long_name = "time" ; time:units = "Month of Year" ; float T(time, lat, lon) ; T:long_name = “Temperature”; T:units = “C" ; T:missing_value = 1.e+20f ; T:_FillValue = 1.e+20f DIMENSIONS: dimensions: lat = 64 ; lon = 128 ; time = 12 ; FILE ATTRIBUTES: global attributes: :title = “Temp: 1999" ; :source = “NCAR” ; :conventions = "None" ; exercise: ncdump –h precip.mon.ltm.nc

netCDF [NCL] Variable model X Scalar or Array f = addfile(“foo.nc”,”r”) ; grb/hdf x = f->X NCL reads the scalar/array, attributes, and coordinate variables as an object attributes long_name _FillValue units add_offset scale_factor etc. X accessed via @ accessed via & values Scalar or Array attributes long_name _FillValue units add_offset scale_factor etc. A little out of place in that the two lines in the orange box are something I’d expect inside a file of ncl code. time lev lat lon etc. coord var time lev lat lon etc. coordinates ‘etc’ is not a dimension, just to imply you might have more than those shown

Interactive Look at netCDF Variable (ncl) ncl <return> ; interactive mode ncl 0 > f = addfile ("UV300.nc", "r") ; open file ncl 1 > u = f->U ; import STRUCTURE ncl 2 > printVarSummary (u) ; overview of variable Variable: u Type: float Total Size: 65536 bytes 16384 values Number of Dimensions: 3 Dimensions and Sizes: [time | 2] x [lat | 64] x [lon | 128] Coordinates: time: [ 1 .. 7 ] lat: [ -87.8638 .. 87.8638 ] lon: [ 0 .. 357.185] Number of Attributes: 5 _FillValue : 1e36 units : m/s long_name : Zonal Wind Component short_name : U missing_value : 1e36 Classic netCDF Variable Model NCL syntax/funcs query (this example) use modify add any aspect of data object You can find out this information using ncdump –h UV300.nc Note that you needed to know that U was a variable in the .nc file (and case matters) ncl 3 > quit ; ends the interactive session

when creating output file in NCL (optional) UNLIMITED dimension special dimension essentially a “record” dimension time dimension is most frequently “unlimited” used by the NCO to concatenate files no special meaning to NCL when creating output file in NCL (optional) filedimdef (outputfile, “time”, -1, True ) example: ncdump -h T2m_ud.nc netcdf T2m_ud { dimensions: time = UNLIMITED ; // (204 currently) lat = 94 ; lon = 192 ; lev = 18}

netCDF Info URLs http://www.unidata.ucar.edu/software/netcdf What’s New http://www.unidata.ucar.edu/software/netcdf/docs/index.html Documentation. See the ‘Examples’ link on the sidebar for illustrative programs to create and read netCDF files. ( Note: these are in C language; can do equivalent in Fortran) Lots of other information there

End of ATM 150 Slides Go to NCL-02

netCDF Version 3.6 current version 3.6 [released Feb 2005] Large File Support [LFS] available Files > 2GB, though any one variable can not > 2GB All 64-bit architectures have LFS Some 32-bit OS have LFS, including linux Portability can be issue if others do not have LFS

netCDF Version 4.0 [ Oct 2006?] netCDF API implemeneted on top of HDF5 will write HDF5 but use netCDF API many new capabilities backward compatible compression multiple unlimited dimensions parallel IO multi-dimensional coordinate variables [? V4.1] hierarchial grouping of data user data types  NCL developers working with Unidata 

The slides that follow are ….. For NCL class ….

Picture: 2D netCDF Variable Model coordinate variables attributes @: long_name units Latitude coordinate variable (1D, &) Longitude coordinate variable (1D, &) NCL is NOT LIMITED to netCDF conforming variables eg: 2D coordinate arrays (curvilinear coords)