From 3ac03ef800d9cab04a502e0bd1fbafecb6ffddb1 Mon Sep 17 00:00:00 2001 From: Richard Hattersley Date: Tue, 21 Jan 2014 14:47:49 +0000 Subject: [PATCH] Make cfchecks use local XML tables. --- .travis.yml | 6 +---- etc/area-type-table.xml | 49 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 5 deletions(-) create mode 100755 etc/area-type-table.xml diff --git a/.travis.yml b/.travis.yml index 9372a18a58..c4422cec53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,12 +58,8 @@ install: # - ./.travis_no_output sudo /usr/bin/pip install cfchecker - ./.travis_no_output sudo /usr/bin/pip install https://pypi.python.org/packages/source/c/cfchecker/cfchecker-2.0.3.tar.gz#md5=54e780e8688ac743d1e21448a3901061 -# Using table 23 due to a bug present in the current version - - ./.travis_no_output wget http://cf-pcmdi.llnl.gov/documents/cf-standard-names/standard-name-table/23/cf-standard-name-table.xml -# - ./.travis_no_output wget http://cf-pcmdi.llnl.gov/documents/cf-standard-names/standard-name-table/current/cf-standard-name-table.xml - - ./.travis_no_output wget http://cf-pcmdi.llnl.gov/documents/cf-standard-names/area-type-table/current/area-type-table.xml - echo '#!/usr/bin/env sh' > cfchecker - - echo "cfchecks -s `pwd`/cf-standard-name-table.xml -a `pwd`/area-type-table.xml -u /usr/share/xml/udunits/udunits2.xml \$1" >> cfchecker + - echo "cfchecks -s `pwd`/etc/cf-standard-name-table.xml -a `pwd`/etc/area-type-table.xml -u /usr/share/xml/udunits/udunits2.xml \$1" >> cfchecker - ./.travis_no_output sudo cp cfchecker /usr/local/bin/cfchecker - ./.travis_no_output sudo chmod a+x /usr/local/bin/cfchecker diff --git a/etc/area-type-table.xml b/etc/area-type-table.xml new file mode 100755 index 0000000000..76e6e8d270 --- /dev/null +++ b/etc/area-type-table.xml @@ -0,0 +1,49 @@ + + + Area Type Table + 1 + 5 December 2008 + Program for Climate Model Diagnosis and Intercomparison + webmaster@pcmdi.llnl.gov + + + + + + + + + + + + + + + All ice floating on water including lake-ice, sea-ice, ice-shelves and icebergs. + + + + + + Floating ice excluding ice-shelves and icebergs. + + + + + + + + + + + + + + + + + + + + +