Skip to content

Commit

Permalink
Remove cf-checker wrapper script. Has not been updated for python3 an…
Browse files Browse the repository at this point in the history
…d the caching of the standard tables is now incorporated into the main checker.
  • Loading branch information
RosalynHatcher committed Aug 21, 2019
1 parent 4583932 commit b456fb5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 297 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ The following parameters can be set on the command-line or through environment v
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

### Wrapper script

Note: The wrapper script has not been tested under Python 3. The cf-checker itself now has the option to cache the standard_name, area_types and region_name tables.

A wrapper to cfchecks, called `cf-checker`, is provided in the `src/` directory, which will maintain local copies of the standard names table and the area types table, and will refresh these local copies only if the age of the file (based on its modification time) is more than a specified maximum, defaulting to 1 day. This allows for running the checker repeatedly without refetching the tables on each invocation, while still keeping them reasonably up to date.

For a usage message, type `cf-checker -h`

Note that the wrapper defaults to storing the downloaded files in `/var/spool/cf-checker`, so if the script is used unmodified then this directory should be created or else an alternative value should be passed as a command line option (`-d`). Ensure either that all users have write permission to the directory used, or else that a user that does have write permission runs a cron job to refresh the tables. For the latter purpose, it is permissible to run the wrapper without specifying any data files to check, in which it will do no more than update the tables; this is still conditional on age, so for this purpose it is recommended to run the wrapper with a maximum age of zero (`-t 0`), and to run the cron job at intervals not exceeding the
default maximum age.

The wrapper is maintained by CEDA and not by NCAS CMS.

### Running the Test script

Expand Down
285 changes: 0 additions & 285 deletions src/cf-checker

This file was deleted.

0 comments on commit b456fb5

Please sign in to comment.