It's good to receive some prompt feedback on the CF-checker download. I
have limited knowledge of how the tool really works so I'm going to
forward general questions to cf-metadata and Ros Hatcher. To answer
Luca's question below -- The checker expects the version option to be
between "1.0" and "1.4". I'm not sure what features would need adding
to support 1.5.
Also something that came up is that the "-u" option expects to be given
the location of the udunits2.xml file installed as part of udunits-2 and
not udunits.dat. It's usual location is
<UDUNITS-HOME>/share/udunits/udunits2.xml.
Cheers,
Stephen.
From: Cinquini, Luca (3880) [mailto:Luca.Cinquini at jpl.nasa.gov]
Sent: 19 November 2010 00:33
To: Pascoe, Stephen (STFC,RAL,SSTD)
Cc: Cinquini, Luca (3880)
Subject: Re: [Go-essp-tech] NetCDF-CF compliance checker available for
download
Hi Stephen,
our SA installed the package, and I gave it a try, and it
worked really nicely... got a couple of warning on a few files that
seemed like the correct thing to have.
One question I have is that the package seems to think the latest
version of CF is 1.4, while it is indeed 1.5 - is that correct ?
-bash-3.2$ cfchecks -v 1.5
pcmdi.ipcc4.miroc3_2_hires.amip.run1.monthly.hus_A1_1979_2002.nc
WARNING: CF-1.5 is not a valid CF version.
Performing check against newest version CF-1.4
CHECKING NetCDF FILE:
pcmdi.ipcc4.miroc3_2_hires.amip.run1.monthly.hus_A1_1979_2002.nc
Anyway this is great - as soon as we have a wiki up for this NASA-PCMDI
effort, I will advertise the package to the other data providers...
thanks again!
Luca
On Nov 17, 2010, at 7:24 AM, <stephen.pascoe at stfc.ac.uk>
<stephen.pascoe at stfc.ac.uk> wrote:
Hi all,
With the permission of Rosalyn Hatcher I have packaged the NetCDF-CF
compliance checker as a downloadable tarball. This is available on the
Python Package Index. This tool provides the best available
verification of NetCDF-CF compliance.
The cf-checker has 2 dependencies: cdms and udunits-2. If you are
managing an ESGF datanode you already have CDAT in /usr/local/cdat.
Alternatively you can use cdat_lite. Udunits2 will need installing
separately and the udunits dynamic library must be in your ld library
path (e.g. set LD_LIBRARY_PATH).
[cfchecker]
http://pypi.python.org/pypi/cfchecker
[CDAT-lite]
http://pypi.python.org/pypi/cdat-lite
[UDUNITS-2]
http://www.unidata.ucar.edu/software/udunits
Once you have these dependencies either download the tarball, unpack and
run "python setup.py install" or use the easy_install tool to download
and install automatically with "easy_install cfchecker" (for instance
/usr/local/cdat/bin/easy_install cfchecker)
This makes the script "cfchecks" available. The help page follows.
Please feed back any installation issues to me and usage issues to Ros
and/or myself.
Cheers,
Stephen.
$ cfchecks --help
cfchecker [-a|--area_types area_types.xml] [-s|--cf_standard_names
standard_names.xml] [-u|--udunits udunits.dat] [-v|--version CFVersion]
file1 [file2...]
Description:
The cfchecker checks NetCDF files for compliance to the CF standard.
Options:
-a or --area_types:
the location of the CF area types table (xml)
-s or --cf_standard_names:
the location of the CF standard name table (xml)
-u or --udunits:
the location of the udunits.dat file
-h or --help: Prints this help text.
-v or --version: CF version to check against.
---
Stephen Pascoe +44 (0)1235 445980
Centre of Environmental Data Archival
Rutherford Appleton Laboratory, Chilton, Didcot OX11 0QX, UK
--
Scanned by iCritical.
<ATT00001..txt>
--
Scanned by iCritical.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cgd.ucar.edu/pipermail/cf-metadata/attachments/20101119/ce1b8aee/attachment.html>
Received on Fri Nov 19 2010 - 02:49:50 GMT