Skip to main content

# 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.python.org/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

Release files for cfchecker 4.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfchecker 4.1.0
File Size Uploaded
cfchecker-4.1.0.tar.gz 37.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cfchecker 4.1.0
File Interpreter ABI Platform
cfchecker-4.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 73.4 kB

Release files / cfchecker-4.1.0.tar.gz

Download URL cfchecker-4.1.0.tar.gz
Size 37.4 kB
Tags Source
SHA-256 checksum
How to use checksums
10b86748565c9e0f4c959e4d82fe83b00344551db3db3c7d0d2f8c31449aa1b9
BLAKE2b-256 checksum
How to use checksums
87f915583ac34fb3525864c72c47c8f2949f71e9c4b7559cba8fe4aeac8958e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

Release files / cfchecker-4.1.0-py3-none-any.whl

Download URL cfchecker-4.1.0-py3-none-any.whl
Size 36.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97d58377acda15f34977e14928329e6311081d6a56e0bcaee06f516724b66873
BLAKE2b-256 checksum
How to use checksums
c08a816c1c8736c44f10c22b6b26718a6960d41e99c1e723322b837bf07aa79f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

4.1.0 This release

2 release files

4.0.0

1 release file

3.1.3

1 release file

3.1.1

1 release file

3.0.5

1 release file

3.0.4

1 release file

2.0.9

1 release file

2.0.8

1 release file

2.0.7

1 release file

2.0.6

1 release file

2.0.3

2.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page