Enable switching off CDDS extract when running CMEW and instead provide a path to data on disk. This will be useful when running CMEW for testing purposes (since we don't have to rely on the availability of MASS to ensure CMEW runs).
To switch off CDDS extract, skip_extract = True (from the CDDS documentation) will need to be added to the [conversion] section in the request configuration file created by CMEW/app/configure_standardise/bin/create_request_file.py.
The user must be able to set this value via the rose-suite.conf file.
Acceptance Criteria 1
- Given a working version of CMEW
- When
EXTRACT=True (the default) is specified in the rose-suite.conf file
- Then
standardise_model_data runs CDDS extract and CDDS convert
Acceptance Criteria 2
- Given a directory containing model output files
- When
EXTRACT=False and the full path to the directory are specified in the rose-suite.conf file
- Then
standardise_model_data does not run CDDS extract and CDDS convert instead uses the data provided by the full path to the directory
Acceptance Criteria 3
- Given a working version of CMEW
- When
EXTRACT=False is specified in the rose-suite.conf file
- Then CMEW fails, since the full path to a directory containing model output files has not been provided
Details
- Extract should be true by default.
- If the flag is false, a path to previously extracted data should be provided.
- Use the flow chart in the Rose requirements in the Developer Guide to determine where the flag should be defined.
Enable switching off CDDS extract when running CMEW and instead provide a path to data on disk. This will be useful when running CMEW for testing purposes (since we don't have to rely on the availability of MASS to ensure CMEW runs).
To switch off CDDS extract,
skip_extract = True(from the CDDS documentation) will need to be added to the[conversion]section in the request configuration file created by CMEW/app/configure_standardise/bin/create_request_file.py.The user must be able to set this value via the rose-suite.conf file.
Acceptance Criteria 1
EXTRACT=True(the default) is specified in therose-suite.conffilestandardise_model_dataruns CDDS extract and CDDS convertAcceptance Criteria 2
EXTRACT=Falseand the full path to the directory are specified in therose-suite.conffilestandardise_model_datadoes not run CDDS extract and CDDS convert instead uses the data provided by the full path to the directoryAcceptance Criteria 3
EXTRACT=Falseis specified in therose-suite.conffileDetails