Skip to content

Commit

Permalink
adjustments to a new post-processing of log-files
Browse files Browse the repository at this point in the history
  • Loading branch information
h-dh committed Feb 3, 2016
1 parent 057f4fe commit bd97252
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 30 deletions.
5 changes: 2 additions & 3 deletions src/QA_CMIP5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,8 @@ DRS_CV::checkPath(std::string& path, struct DRS_CV_Table& drs_cv_table)
std::string key("7_3");
std::string capt("Fault in table ");
capt += pQA->table_DRS_CV.getFile() ;
capt += ": encoding " ;
capt += ": encoding not available in CV, found " ;
capt += hdhC::tf_assign("item", x_e[x]) ;
capt += " not found in CV";

if( notes->inq( key, "DRS") )
{
Expand Down Expand Up @@ -791,7 +790,7 @@ DRS_CV::findPath_faults(Split& drs, Split& x_e,

if( i == -1 )
{
text = " check failed, suspicion of a missing item in the path, found" ;
text = " suspicion of a missing item in the path, found" ;
text += hdhC::tf_val(drs.getStr()) ;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/QA_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ QA_Data::checkFinally(Variable *var)
std::string key("6_3");
if( notes->inq( key, name, ANNOT_NO_MT) )
{
std::string capt("all records are identical") ;
std::string capt("all data records are identical") ;

notes->operate(capt) ;
notes->setCheckDataStr(pQA->fail);
Expand Down
26 changes: 11 additions & 15 deletions tables/projects/CMIP5/CMIP5_check-list.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,36 +32,32 @@
# L4 Stop immediately and shutdown the QA session (no locks).
# Flag: Must match in the QA.cpp class.
# Task: Email notification (EM), discard the check/test (D)
# Variable: A list of comma-separated acronyms of variables; directive is only applied to the variable(s).
# Variable: A list of comma-separated acronyms of variables to which directives
# are applied; every variable by default.
# Value: Constraining value, e.g. {flag,D,V=0,var} discards a test for variable var only if value=0
# Record: Record(s), i.e. data at a time value, may be excluded from checking. Single records
# as well as ranges, e.g. 1-12, may be provided.
# Note: counting of records starts with number one.
# Default: L1

# Force unique behaviour (e.g. for testing). Please, unmark the comment #.
# NOTE_ALWAYS {group1}, {group2}, . . .

# NOTE_ALWAYS {L1}, {10,D}

# Example:
# descriptive text & 32_2,{L1,tas,D}

# Time/Data (per time value):
Negative time step & R1,L2,EM
Missing time step & R2,L2,EM
Identical time step & R4,L2,EM
Negative/zero time bounds range & R8,L2,EM
Overlapping time bounds ranges & R16,L2,EM
Gap between time bounds ranges & R32,L2,EM
Negative time step & R1,L2
Missing time step & R2,L2
Identical time step & R4,L2
Negative/zero time bounds range & R8,L2
Overlapping time bounds ranges & R16,L2
Gap between time bounds ranges & R32,L2
Found a record entirely with filling value & R100
Found a record entirely with constant value & \
R200,D,V=0,rsus,rsds,sund,snw,snc,snd,snm,clivi}
Failed outlier test: global minimum & R400,D
Failed outlier test: global maximum & R800,D
Undefined standard deviation & R1600
Suspicion of outlier: global minimum & R400,tas,tasmin,tasmax,ts,ps,psl
Suspicion of outlier: global maximum & R800,tas,tasmin,tasmax,ts,ps,psl
Suspecting a replicated record & R3200,D #,{D,rsus,rsds,sund}
Infinite (Inf) or not-a-number (NaN) & R6400,L2,EM
Infinite (Inf) or not-a-number (NaN) & R6400,L2

# Directory and Filename Structure (1)
DRS CV path: failed check & 1_1
Expand Down
19 changes: 8 additions & 11 deletions tables/projects/CORDEX/CORDEX_check-list.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,21 @@
# elaborate: given: a,b=1{x=v{D(x),y,b=2}},{u,v},w
# result: 'a,b=1,w', 'x=v,a,b=1,w', 'y,b=2,a,w', 'u,v,a,b=1,w,'

# Key words: L1, L2, L3, D, EM, VR, PT, flag, var, V=value, R=record
# Key words: L1, L2, L3, D, EM, VR, flag, var, V=value, R=record
# Level: L1 Notify incidents. Continue unrestricted.
# The default for omitted level of severeness.
# L2 Continue checking to the end of the file. Then, lock processing
# of the current variable.
# L3 Stop after completion of meta-data checks. Lock processing of current variable.
# L4 Stop immediately and shutdown the QA session (no locks).
# Flag: Must match in the QA.cpp class.
# Table: Variable Requirements Table (VR), Project Table (PT)
# Variable: A list of comma-separated acronyms of variables; directive is only applied to
# the variable(s).
# Flag: Must match the one in the classes.
# Variable: A list of comma-separated acronyms of variables to which directives
# are applied; every variable by default.
# Value: Constraining value, e.g. {flag,D,V=0,var} discards a test for variable var
# only if value=0
# Record: Record(s), i.e. data at a time value, may be excluded from checking. Single records
# as well as ranges, e.g. 1-12, may be provided.
# Note: counting of records starts with number one.
# Default: {VR,L1}, {PT,L2,EM}, {L3,EM}

# Force unique behaviour (e.g. for testing). Please, unmark the comment #.
# NOTE_ALWAYS {group1}, {group2}, . . .
Expand All @@ -50,7 +48,7 @@
PERMITTED_FLAG_BEGIN=R

# Example:
# descriptive text & 32_2,{L1,tas,D,VR},{PT,L2,EM}
# descriptive text & 32_2,{L1,tas,D,VR},{L2,EM}

# Time/Data (tested at each time value):
Negative time step & R1,L2,EM
Expand All @@ -62,9 +60,8 @@ Gap between time bounds ranges & R32
Found a record entirely with filling value & R100
Found a record entirely with constant value & \
R200,{D,V=0,clivi,mrfso,prsn,rsus,rsds,sftgif,sic,snc,snd,snm,snw,sund}
Failed outlier test: global minimum & R400
Failed outlier test: global maximum & R800
Undefined standard deviation & R1600,D
Suspicion of outlier: global minimum & R400,tas,tasmin,tasmax,ps,psl
Suspicion of outlier: global maximum & R800,tas,tasmin,tasmax,ps,psl
Suspecting a replicated record & R3200,{D,rsus,rsds,rsdt,sund \
,clivi,mrfso,prsn,sftgif,sic,snc,snd,snm,snw}
Infinite (Inf) or not-a-number (NaN) & R6400
Expand Down Expand Up @@ -149,7 +146,7 @@ Auxiliary <time_bnds> is missing & 5_8
# Data (6)
Data set entirely of const value & 6_1
Data set entirely of _FillValue & 6_2
All time values with identical data & 6_3
All data records are identical & 6_3, {D, V=0, sic}
Time value before the first time-table range & 6_4,L2
Time value after the last time-table range & 6_5,L2
Time value does not match time-table value & 6_6,L2
Expand Down

0 comments on commit bd97252

Please sign in to comment.