Skip to main content

The NetCDF Climate Forecast Conventions compliance checker

Project description

# CF Checker

The CF Checker is a utility that checks the contents of a NetCDF file complies with the Climate and Forecasts (CF) Metadata Convention.

## Dependencies

## Installation

To install from [PyPI](https://pypi-hypernode.com/pypi/cfchecker):

pip install cfchecker

Alternatively, to install from source:

  1. Download the cfchecker package from [cfchecker releases](https://github.com/cedadev/cf-checker/releases)

  2. Unpack the library:

    tar -zxf cfchecker-${version}.tar.gz

    cd cfchecker-${version}

  3. Install the package:

    • To install to a central location:

      python setup.py install

    • To install to a non standard location:

      python setup.py install –prefix=<directory>

      If directory you are installing into is not on PYTHONPATH you will need to add it.

## Running the CF Checker

cfchecks [-a <area-types.xml>] [-r <regions.xml>] [-s <std_names.xml>] [-v <CFVersion>] [-x] [-t <cache_time_days>] file1 [file2…]

For further details and for other available command line options please see the help by running cfchecks -h

### Environment Variables

The following parameters can be set on the command-line or through environment variables:

  1. CF_STANDARD_NAMES or (CL option -s) : The path or URL to the CF standard names table

  2. CF_AREA_TYPES or (CL option -a) : The path or URL to the CF area types table

  3. CF_REGION_NAMES or (CL option -r): The path or URL to the CF region names table

### Running the Test script

In the release tarball there is a test_files directory containing a test.sh script which runs a series of test files through the CF Checker and confirms the checker is working as expected. It is a very elementary system, which will be rewritten soon. Before running it you will need to edit the location of the cfchecks script in the tests.sh file:

cfchecker=”<location of cfchecks>”

Then just run the tests.sh script:

./tests.sh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cfchecker-4.0.0.tar.gz (32.9 kB view details)

Uploaded Source

File details

Details for the file cfchecker-4.0.0.tar.gz.

File metadata

  • Download URL: cfchecker-4.0.0.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.8

File hashes

Hashes for cfchecker-4.0.0.tar.gz
Algorithm Hash digest
SHA256 4c3443d01f6061becbe519754e3ccdd2b837712173413229fc5f43a50cb1eb45
MD5 62f26044a837f2ed6d9cf46f19fc02e1
BLAKE2b-256 07b6ab736ebf2fbb63b276a4bcc17a6bde79ba23e2a59d52b5394e6d519eb474

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page