Changes between Version 1 and Version 2 of NetcdfMetadataRecommendations


Ignore:
Timestamp:
May 11, 2018 5:53:42 PM (3 years ago)
Author:
antonio
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NetcdfMetadataRecommendations

    v1 v2  
    33This documentation provides some recommendations and examples for the encoding of structural metadata in a form suitable for archiving. The main encoding format it is the netCDF file format. These metadata recommendations are based on the CF-1.X Conventions, but some modifications and extensions are applied. The main objective of this recommendations is to provide input to the different data management plans for C3S projects (and others).
    44
    5  * //The Ultimate Guide//
    6  * Presentation at ECMWF's Seminar on 2017-07-06
     5 * [raw-attachment:CFMetadataRecommendationsForNetCDFProducts_v6.2.pdf The Ultimate Guide]
     6 * [raw-attachment:RecommendationsEncodingNetcdf.pdf Presentation at ECMWF's Seminar on 2017-07-05]
    77
     8== The use case for the example dataset been used in loadeR ==
     9
     10The example dataset been used in [https://github.com/SantanderMetGroup/loadeR/wiki/Dataset-definition-and-loading-local-grid-data loadeR] needs to be refactorized following the next rules:
     11
     12{{{#!xml
     13<?xml version='1.0' encoding='UTF-8'?>
     14<netcdf xmlns='http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2'
     15    location='NCEP_Q.nc' >
     16  <explicit/>
     17  <dimension name='time' length='18262' />
     18  <dimension name='lat' length=    '6' />
     19  <dimension name='lon' length=    '9' />
     20  <dimension name='lev' length=    '4' />
     21
     22  <!-- Updated the SMG URL -->
     23  <attribute name='history' value='Created by MeteoLab2netCDF on 04-Jun-2014 18:27:34' />
     24  <attribute name='institution' value='Santander Meteorology Group (UC-CSIC, http://meteo.unican.es)' />
     25  <attribute name='info' value='Data generated for downscaleR toolbox (https://github.com/SantanderMetGroup/downscaleR/)' />
     26  <!-- updated the CF convention version and URL-->
     27  <attribute name='Conventions' value='CF-1.6' />
     28  <attribute name='conventionsURL' value='http://cfconventions.org/' />
     29  <attribute name='creation_date' value='04-Jun-2014 19:07:33' />
     30
     31  <variable name='time' type='double' shape='time' >
     32    <!-- Add the satndard_name attribute -->
     33    <attribute name='standard_name' value='time' />
     34    <!-- Improve long name attribute for Time or Valid Time -->
     35    <attribute name='long_name' value='time' />
     36    <attribute name='units' value='days since 1950-01-01 00:00:00' />
     37    <!-- Remove the Unidata Convention attributes. They are not required -->
     38    <!--attribute name='_CoordinateAxisType' value='Time' /-->
     39    <!-- Calendar attribute is required -->
     40    <attribute name='calendar' value='standard' />
     41  </variable>
     42  <variable name='lat' type='double' shape='lat' >
     43    <attribute name='standard_name' value='latitude' />
     44    <attribute name='long_name' value='latitude' />
     45    <attribute name='units' value='degrees_north' />
     46    <!-- Remove the Unidata Convention attributes. They are not required -->
     47    <!--attribute name='_CoordinateAxisType' value='Lat' /-->
     48  </variable>
     49  <variable name='lon' type='double' shape='lon' >
     50    <attribute name='standard_name' value='longitude' />
     51    <attribute name='long_name' value='longitude' />
     52    <attribute name='units' value='degrees_east' />
     53    <!--attribute name='_CoordinateAxisType' value='Lon' /-->
     54  </variable>
     55  <variable name='lev' type='double' shape='lev' >
     56    <!-- correct standard_name -->
     57    <attribute name='standard_name' value='air_pressure' />
     58    <!-- Improve long name attribute -->
     59    <attribute name='long_name' value='pressure level' />
     60    <attribute name='units' value='millibar' />
     61    <!-- Remove the Unidata Convention attributes. They are not required -->
     62    <!-- attribute name='_CoordinateAxisType' value='Z' /-->
     63    <attribute name='positive' value='down' />
     64  </variable>
     65  <variable name='Q' type='float' shape='time lev lon lat' >
     66    <attribute name='standard_name' value='specific_humidity' />
     67    <attribute name='long_name' value='Specific humidity' />
     68    <attribute name='units' value='kg kg**-1' />
     69    <!-- If missing data it's not expected, better it's not to use it -->
     70    <!-- attribute name='missing_value' value='-9999.0 ' type='float' /-->
     71    <!-- Coordinates are better to be explicit -->
     72    <attribute name='coordinates' value='time lev lon lat' />
     73  </variable>
     74</netcdf>
     75
     76}}}