relocateFilesAsDRS program

Description

Relocate CMIP6 datafiles depending on their global attributes.

Usage

relocateFilesAsDRS.py

Relocate CMIP6 datafiles depending on their global attributes.

usage: relocateFilesAsDRS.py [-h] [-w] [-p PREFIX] [-z] [-v VERSTR] [-d]
                             nc_file [nc_file ...]
nc_file
-h, --help

show this help message and exit

-w, --overwrite
-p <prefix>, --prefix <prefix>

prefix for relocation directory

-z, --dry_run
-v <verstr>, --verstr <verstr>

<version> string for DRS

-d, --debug

Input file(s) must be valid CMIP6 CF-Compliant netCDF. Relocation directory will be constructed by DRS, under current directory by default, or under prefix(-p).

DRS demands that directory must be contains the attribute <version> as the last part, but since that is “the only DRS element that is not stored as a global attribute” (see http://goo.gl/v1drZl), this is not decided by the filename nor global attributes.

So you have to specify it via --verstr (or -v).