Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

The NetCDF Markup Language (NcML) version 2.1

This version has been superceeded by NcML 2.2


NcML Core

NcML OBJECT MODEL
An abstract object model for expressing metadata associated with generic netCDF data
specification , UML diagram

NcML SCHEMA
A schema in XSD format following the netCDF Metadata Object Model (release 1.0):

Examples:

NcML METADATA EXTRACTION
The NCAR community portal has a prototype web application for the extraction of NcML metadata from any network-retrievable netcdf file.


NcML Coordinate System

NcML Coordinate System extends the netCDF data model to add explicit support for general and georeferencing coordinate systems. The ucar.nc2.dataset package in the NetCDF Java library, version 2.1 implements the object model, creating a subclass of NetcdfFile called NetcdfDataset. The ucar.nc2.dataset.conv package adds a framework for parsing Conventions to extract the coordinate systems and turn a NetcdfFile into a NetcdfDataset. NcML Coordinate System is essentially the external XML representation of that extended netCDF data model.

Summary of extensions to Core:

  1. netcdf is redefined to allow coordinateSystem and coordinateTransform elements.
  2. variable is redefined to allow the coordinateSystems attribute, which lists the coordinate systems for this variable.
  3. coordinateAxis extends variable, adding the units attribute, as well as optional attributes axisType, positive and boundaryRef
  4. coordinateSystem is a list of coordinateAxis elements, and optional coordinateTransform elements.
  5. coordinateTransform represents a mathematical transformation of one coordinate system to another. It has a list of name/value pairs, called parameters, and an optional transformType that has the value Projection or Sigma.

An annotated schema in HTML.

The latest NcML Coordinate System schema in XML (release 1.0 beta).

Examples:


NcML Dataset

NcML Dataset allows you to use NcML to define a netCDF file, similar to the ncgen command line tool, as well as to redefine, aggregate, and subset existing netCDF files.

Summary of extensions to Core:

  1. netcdf is extended to allow readMetadata, aggregation and nested netcdf elements.
  2. variable is extended to allow the nameInFile attribute, which allows you to rename a variable, and the logicalView element, which allows you to specify the data as a subset of another variable.
  3. readMetada allows you to read all or some of the variables, attributes and dimensions from another netCDF dataset, as well as rename them.
  4. aggregation allows you to aggregate variables from nested netcdf elements into a single logical variable.
  5. values is extended to allow the definition of regularly spaced values using a start and increment.

We are on version 2 of this specification:

Previous version:

 

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690