⇐ ⇒

[CF-metadata] [CF Metadata] #68: CF data model and reference implementation in Python

From: Chris Barker - NOAA Federal <chris.barker>
Date: Thu, 10 Jan 2013 10:47:41 -0800

On Thu, Jan 10, 2013 at 10:26 AM, Chris Barker - NOAA Federal
<chris.barker at noaa.gov> wrote:

> but is that the data model? or is that a particular encoding for a
> particular file format? I think the later.

Another example of encoding vs. data model:

An array of integers is a data model

The binary representation of that array is encoding: is it big or
little endian, for instance.

Netcdf already abstracts that out for you -- your code does not need
to care. I think this principle could be extended to higher-lever
abstractions like datetimes, and encodings like integer*scale+offset

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception
Chris.Barker at noaa.gov
Received on Thu Jan 10 2013 - 11:47:41 GMT

This archive was generated by hypermail 2.3.0 : Tue Sep 13 2022 - 23:02:41 BST

⇐ ⇒