Skip to content

Commit bf22398

Browse files
author
Simran Mattu
committed
minor changes to the errors-backfiling.csv file
1 parent 67e4bea commit bf22398

File tree

2 files changed

+125
-121
lines changed

2 files changed

+125
-121
lines changed

woudc_extcsv/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
WDR_TABLE_SCHEMA = os.path.join(__dirpath, 'tables-schema.json')
6969
WDR_TABLE_CONFIG = os.path.join(__dirpath, 'tables-backfilling.yml')
70-
WDR_ERROR_CONFIG = os.path.join(__dirpath, 'Updated_Errors.csv')
70+
WDR_ERROR_CONFIG = os.path.join(__dirpath, 'errors-backfilling.csv')
7171

7272
LOGGER = logging.getLogger(__name__)
7373

woudc_extcsv/errors-backfilling.csv

+124-120
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,126 @@
11
Error Code,Error Type,Message Template,Notes
2-
1,Warning,Not a text file
3-
2,Error,No core metadata tables found. Not an Extended CSV file
4-
3,Error,Missing required table #{table}
5-
4,Error,Excess table #{table} does not belong in {dataset} file
6-
5,Error,Missing required field #{table}.{field}
7-
6,Warning,Excess field {field} does not belong in table {table}
8-
7,Error,Required field #{table}.{field} is null or empty
9-
8,Warning,Optional field #{table}.{field} is null or empty
10-
9,Error,Table #{table} has no fields
11-
10,Error,Table #{table} has no fields,Placeholder for optional-table-specific error
12-
11,Error,Required table #{table} contains no data
13-
12,Warning,Optional table #{table} contains no data
14-
13,Error,No non-core data tables found
15-
14,Warning,Unexpected empty line between table header and fields
16-
15,Error,Unrecognized data {row}
17-
16,Warning,Improper delimiter used '{separator}' corrected to '\,' (comma)
18-
20,Warning,#{table} field {oldfield} capitalization should be {newfield}
19-
21,Warning,#{table} corrected to {newtable} using aliases
20-
22,Warning,#{table} field {oldfield} corrected to {newfield} using aliases
21-
23,Warning,#{table}.{field} value corrected to {newvalue} using aliases
22-
25,Warning,#{table} row has more values than #{table} has columns
23-
26,Error,Fewer than minimum {bound} occurrences of table #{table} found
24-
27,Error,More than maximum {bound} occurrences of table #{table} found
25-
28,Error,Fewer than minimum {bound} number of rows in table #{table}
26-
29,Error,More than maximum {bound} number of rows in table #{table}
27-
30,Warning,#{table}.Time separator '{separator}' corrected to ':' (colon)
28-
31,Error,Failed to parse #{table}.Time {component}: contains invalid characters
29-
32,Warning,#{table}.Time corrected from 12-hour clock to 24-hour YYYY-MM-DD format
30-
33,Warning,#{table}.Time {component} is not within allowable range [{lower}]-[{upper}]
31-
34,Warning,#{table}.Date separator '{separator}' corrected to '-' (hyphen)
32-
35,Error,#{table}.Date not in YYYY-MM-DD format: missing separators
33-
36,Error,#{table}.Date is incomplete
34-
37,Error,#{table}.Date not in YYYY-MM-DD format: too many separators
35-
38,Error,Failed to parse #{table}.Date {component}: contains invalid characters
36-
39,Error,#{table}.Date {component} is not within allowable range [{lower}]-[{upper}],Reserved for year and month components
37-
40,Error,#{table}.Date day is not within allowable range [{lower}]-[{upper}]
38-
41,Warning,#{table}.UTCOffset separator '{separator}' corrected to ':' (colon)
39-
42,Warning,#{table}.UTCOffset {component} is less than 2 digits long
40-
43,Warning,#{table}.UTCOffset {component} is missing\, default value is '00' (zero)
41-
44,Warning,Missing sign in #{table}.UTCOffset\, default '+' (plus)
42-
45,Warning,Invalid sign in #{table}.UTCOffset\, replacing with '{sign}'
43-
46,Warning,#{table}.UTCOffset is a series of zeroes\, should be '+00:00:00'
44-
47,Error,Failed to parse #{table}.UTCOffset: contains invalid characters
45-
50,Warning,Missing #CONTENT.Class\, default is 'WOUDC'
46-
51,Error,#CONTENT.Class {value} failed to validate against registry
47-
52,Error,#CONTENT.Category {value} failed to validate against registry
48-
53,Warning,#CONTENT.Level should be {value} according to present tables
49-
54,Warning,#CONTENT.Level {oldvalue} should be a decimal number ({newvalue})
50-
55,Error,Failed to parse #CONTENT.Level: contains invalid characters
51-
56,Error,Unknown #CONTENT.Level for dataset {dataset}
52-
57,Warning,#CONTENT.Form {oldvalue} should be integral ({newvalue})
53-
58,Error,Failed to parse #CONTENT.Form: contains invalid characters
54-
59,Error,Cannot resolve missing or invalid #CONTENT.Form
55-
60,Error,Unknown #CONTENT.Form for dataset {dataset} and level {level}
56-
61,Error,Cannot assess expected table set: {field} unknown
57-
62,Warning,Missing #DATA_GENERATION.Date\, defaults to processing date
58-
63,Warning,Missing #DATA_GENERATION.Version\, defaults to {default}
59-
64,Warning,#DATA_GENERATION.Version is not within allowable range [{lower}]-[{upper}]
60-
65,Warning,#DATA_GENERATION.Version does not have exactly 1 decimal place
61-
66,Error,Failed to parse #DATA_GENERATION.Version: contains invalid characters
62-
67,Error,#DATA_GENERATION.Agency failed to validate against registry
63-
70,Warning,#PLATFORM.ID is not 3 digits long
64-
71,Error,#PLATFORM.ID not found in registry
65-
72,Error,#PLATFORM.Type in file does not match registry
66-
73,Error,#PLATFORM.Name in file does not match registry
67-
74,Error,#PLATFORM.Country in file does not match registry
68-
75,Warning,Ship #PLATFORM.Country should be 'XY' to meet ISO-3166 standards
69-
76,Error,Failed to parse #LOCATION.{field}: contains invalid characters,Reserved for fields Latitude and Longitude
70-
77,Warning,Failed to parse #LOCATION.Height: contains invalid characters
71-
78,Error,#LOCATION.{field} is not within allowable range [{lower}]-[{upper}],Reserved for fields Latitude and Longitude
72-
79,Warning,#LOCATION.Height is not within allowable range [{lower}]-[{upper}]
73-
80,Warning,#LOCATION.{field} in file does not match registry,Reserved for fields Latitude and Longitude
74-
81,Warning,#LOCATION.Height in file does not match registry
75-
82,Error,Null value found for #INSTRUMENT.Name
76-
83,Warning,Null value found for #INSTRUMENT.Model
77-
84,Warning,Null value found for #INSTRUMENT.Number
78-
85,Error,#INSTRUMENT.Name not found in registry
79-
86,Error,#INSTRUMENT.Model not found in registry
80-
87,Error,Instrument failed to validate against registry
81-
88,Error,Deployment {ident} not found in registry
82-
89,Error,Failed to parse #{table}.{field} due to errors: {reason}
83-
90,Warning,Inconsistent Time values between #TIMESTAMP tables
84-
91,Warning,#{table}.Date cannot be more recent than #DATA_GENERATION.Date,Reserved for TIMESTAMP tables
85-
92,Warning,#{table}.Date cannot be more recent than #DATA_GENERATION.Date,Reserved for non-TIMESTAMP tables
86-
93,Warning,First #TIMESTAMP.Time cannot be more recent than other time(s)
87-
95,Error,Submitted file #DATA_GENERATION.Date is earlier than previously submitted version
88-
96,Error,Submitted file version and #DATA_GENERAION.Date identical to previously submitted file
89-
97,Error,Submitted #DATA_GENERATION.Date is identical to previously submitted file
90-
98,Error,Submitted version number is identical to previously submitted file
91-
99,Warning,ECC instrument serial number different from previous submission
92-
101,Error,No ozone data in #DAILY table
93-
102,Warning,#DAILY.Date found in non-chronological order
94-
103,Warning,#DAILY.Date has different year than #TIMESTAMP.Date
95-
104,Warning,Duplicate observations found in #DAILY table for Date=(date)
96-
105,Warning,Multiple observations found with #DAILY.Date {date}
97-
106,Warning,#TIMESTAMP.Date before #DAILY does not equal first date of #DAILY
98-
107,Warning,#TIMESTAMP.Date after #DAILY does not equal last date of #DAILY
99-
108,Warning,More than two #TIMESTAMP tables found in file
100-
109,Warning,#TIMESTAMP table after #DAILY is missing\, deriving based on requirements
101-
110,Warning,Missing #MONTHLY table\, deriving based on requirements
102-
111,Warning,Missing value for #MONTHLY.{field}\, deriving based on requirements
103-
112,Warning,#MONTHLY.{field} differs from derived value
104-
113,Error,Cannot derive #MONTHLY table: missing #DAILY.ColumnO3
105-
114,Warning,#OBSERVATIONS.Time found in non-chronological order
106-
115,Warning,Duplicate observations found in #OBSERVATIONS table for Time={time}
107-
116,Warning,Multiple observations found with #OBSERVATIONS.Time {time}
108-
118,Warning,#{table}.Date found in non-chronological order,Reserved for Umkehr data tables
109-
119,Warning,Duplicate observations found in #{table} for Date={date},Reserved for Umkehr data tables
110-
120,Warning,Multiple observations found with #{table}.Date {date},Reserved for Umkehr data tables
111-
121,Warning,#TIMESTAMP.Date before #{table} does not equal first date of #{table},Reserved for Umkehr data tables
112-
122,Warning,#TIMESTAMP.Date after #{table} does not equal last date of #{table},Reserved for Umkehr data tables
113-
123,Warning,#TIMESTAMP table after #{table} is missing\, deriving based on requirements,Reserved for Umkehr data tables
114-
125,Error,Lidar table counts are uneven between #OZONE_PROFILE and #OZONE_SUMMARY
115-
126,Error,Spectral table counts are uneven between #TIMESTAMP\, #GLOBAL\, and #{summary_table}
116-
200,Warning,Data file successfully persisted
117-
201,Warning,New instrument added
118-
202,Warning,New deployment added
119-
203,Warning,New station name added
120-
204,Warning,New contribution added
121-
209,Error,Data file failed to validate
2+
101,Warning,Not a text file
3+
102,Error,No core metadata tables found. Not an Extended CSV file
4+
103,Warning,Unexpected empty line between table header and fields
5+
104,Warning,Improper delimiter used '{separator}' corrected to '\,' (comma)
6+
105,Warning,#{table} field {oldfield} capitalization should be {newfield}
7+
106,Warning,#{table} corrected to {newtable} using aliases
8+
107,Warning,#{table} field {oldfield} corrected to {newfield} using aliases
9+
108,Warning,#{table}.{field} value corrected to {newvalue} using aliases
10+
109,Warning,#{table}.Time separator '{separator}' corrected to ':' (colon)
11+
110,Warning,#{table}.Time corrected from 12-hour clock to 24-hour YYYY-MM-DD format
12+
111,Warning,#{table}.Date separator '{separator}' corrected to '-' (hyphen)
13+
112,Error,#{table}.Date not in YYYY-MM-DD format: missing separators
14+
113,Error,#{table}.Date is incomplete
15+
114,Error,#{table}.Date not in YYYY-MM-DD format: too many separators
16+
115,Warning,#{table}.UTCOffset separator '{separator}' corrected to ':' (colon)
17+
116,Warning,#{table}.UTCOffset {component} is less than 2 digits long
18+
117,Warning,#{table}.UTCOffset {component} is missing\, default value is '00' (zero)
19+
118,Warning,Missing sign in #{table}.UTCOffset\, default '+' (plus)
20+
119,Warning,Invalid sign in #{table}.UTCOffset\, replacing with '{sign}'
21+
120,Warning,#{table}.UTCOffset is a series of zeroes\, should be '+00:00:00'
22+
121,Error,Cannot derive #MONTHLY table: missing #DAILY.ColumnO3
23+
122,Error,Lidar table counts are uneven between #OZONE_PROFILE and #OZONE_SUMMARY
24+
123,Error,Spectral table counts are uneven between #TIMESTAMP\, #GLOBAL\, and #{summary_table}
25+
201,Error,Missing required table #{table}
26+
202,Error,Excess table #{table} does not belong in {dataset} file
27+
203,Error,Missing required field #{table}.{field}
28+
204,Error,Required field #{table}.{field} is null or empty
29+
205,Warning,Optional field #{table}.{field} is null or empty
30+
206,Error,Table #{table} has no fields
31+
207,Error,Table #{table} has no fields,Placeholder for optional-table-specific error
32+
208,Error,Required table #{table} contains no data
33+
209,Warning,Optional table #{table} contains no data
34+
210,Error,No non-core data tables found
35+
211,Error,Unrecognized data {row}
36+
212,Warning,#{table} row has more values than #{table} has columns
37+
213,Error,Fewer than minimum {bound} occurrences of table #{table} found
38+
214,Error,More than maximum {bound} occurrences of table #{table} found
39+
215,Error,Fewer than minimum {bound} number of rows in table #{table}
40+
216,Error,More than maximum {bound} number of rows in table #{table}
41+
217,Warning,#CONTENT.Level should be {value} according to present tables
42+
218,Warning,#CONTENT.Level {oldvalue} should be a decimal number ({newvalue})
43+
219,Warning,#CONTENT.Form {oldvalue} should be integral ({newvalue})
44+
220,Error,Cannot assess expected table set: #CONTENT.{field} unknown
45+
221,Warning,Missing #DATA_GENERATION.Date\, defaults to processing date
46+
222,Warning,#DATA_GENERATION.Version does not have decimal place
47+
223,Error,Null value found for #INSTRUMENT.Name
48+
224,Warning,Null value found for #INSTRUMENT.Model
49+
225,Warning,Null value found for #INSTRUMENT.Number
50+
226,Warning,Inconsistent Time values between #TIMESTAMP tables
51+
227,Warning,#{table}.Date cannot be more recent than #DATA_GENERATION.Date,Reserved for non-TIMESTAMP tables
52+
228,Warning,First #TIMESTAMP.Time cannot be more recent than other time(s)
53+
229,Error,Submitted file #DATA_GENERATION.Date is earlier than previously submitted version
54+
230,Error,No ozone data in #DAILY table
55+
231,Warning,#DAILY.Date found in non-chronological order
56+
232,Warning,#DAILY.Date has different year than #TIMESTAMP.Date
57+
233,Warning,Duplicate observations found in #DAILY table for Date=(date)
58+
234,Warning,Multiple observations found with #DAILY.Date {date}
59+
235,Warning,#TIMESTAMP.Date before #DAILY does not equal first date of #DAILY
60+
236,Warning,#TIMESTAMP.Date after #DAILY does not equal last date of #DAILY
61+
237,Warning,More than two #TIMESTAMP tables found in file
62+
238,Warning,#TIMESTAMP table after #DAILY is missing\, deriving based on requirements
63+
239,Warning,Missing #MONTHLY table\, deriving based on requirements
64+
240,Warning,Missing value for #MONTHLY.{field}\, deriving based on requirements
65+
241,Warning,#MONTHLY.{field} differs from derived value
66+
242,Warning,#OBSERVATIONS.Time found in non-chronological order
67+
243,Warning,Duplicate observations found in #OBSERVATIONS table for Time={time}
68+
244,Warning,Multiple observations found with #OBSERVATIONS.Time {time}
69+
245,Warning,#{table}.Date found in non-chronological order,Reserved for Umkehr data tables
70+
246,Warning,Multiple observations found with #{table}.Date {date},Reserved for Umkehr data tables
71+
247,Warning,#TIMESTAMP.Date before #{table} does not equal first date of #{table},Reserved for Umkehr data tables
72+
248,Warning,#TIMESTAMP.Date after #{table} does not equal last date of #{table},Reserved for Umkehr data tables
73+
249,Warning,#TIMESTAMP table after #{table} is missing\, deriving based on requirements,Reserved for Umkehr data tables
74+
250,Warning,Excess field {field} does not belong in table {table}
75+
251,Warning,Duplicate observations found in #{table} for Date={date},Reserved for Umkehr data tables
76+
301,Error,Failed to parse #{table}.Time {component}: contains invalid characters
77+
302,Error,Failed to parse #{table}.Date {component}: contains invalid characters
78+
303,Error,#{table}.Date {component} is not within allowable range [{lower}]-[{upper}],Reserved for year and month components
79+
304,Error,#{table}.Date day is not within allowable range [{lower}]-[{upper}]
80+
305,Error,Failed to parse #{table}.UTCOffset: contains invalid characters
81+
306,Warning,Missing #CONTENT.Class\, default is 'WOUDC'
82+
307,Error,#CONTENT.Class {value} failed to validate against registry
83+
308,Error,#CONTENT.Category {value} failed to validate against registry
84+
309,Error,Unknown #CONTENT.Level for dataset {dataset}
85+
310,Error,Failed to parse #CONTENT.Level: contains invalid characters
86+
311,Error,Failed to parse #CONTENT.Form: contains invalid characters
87+
312,Error,Cannot resolve missing or invalid #CONTENT.Form
88+
313,Error,Unknown #CONTENT.Form for dataset {dataset} and level {level}
89+
314,Warning,Missing #DATA_GENERATION.Version\, defaults to {default}
90+
315,Warning,#DATA_GENERATION.Version is not within allowable range [{lower}]-[{upper}]
91+
316,Error,Failed to parse #DATA_GENERATION.Version: contains invalid characters
92+
317,Error,#DATA_GENERATION.Agency failed to validate against registry
93+
318,Warning,#PLATFORM.ID is not 3 digits long
94+
319,Error,#PLATFORM.ID not found in registry
95+
320,Error,#PLATFORM.Type in file does not match registry
96+
321,Error,#PLATFORM.Name in file does not match registry
97+
322,Error,#PLATFORM.Country in file does not match registry
98+
323,Warning,Ship #PLATFORM.Country should be 'XY' to meet ISO-3166 standards
99+
324,Warning,Failed to parse #LOCATION.Height: contains invalid characters
100+
325,Error,#LOCATION.{field} is not within allowable range [{lower}]-[{upper}],Reserved for fields Latitude and Longitude
101+
326,Warning,#LOCATION.Height is not within allowable range [{lower}]-[{upper}]
102+
327,Warning,#LOCATION.{field} in file does not match registry,Reserved for fields Latitude and Longitude
103+
328,Warning,#LOCATION.Height in file does not match registry
104+
329,Warning,Null value found for #INSTRUMENT.Model
105+
330,Warning,Null value found for #INSTRUMENT.Number
106+
331,Error,#INSTRUMENT.Name not found in registry
107+
332,Error,#INSTRUMENT.Model not found in registry
108+
333,Error,Instrument failed to validate against registry
109+
334,Error,Deployment {ident} not found in registry
110+
335,Error,Failed to parse #{table}.{field} due to errors: {reason}
111+
336,Warning,#{table}.Date cannot be more recent than #DATA_GENERATION.Date,Reserved for TIMESTAMP tables
112+
337,Warning,#{table}.Date cannot be more recent than #DATA_GENERATION.Date,Reserved for non-TIMESTAMP tables
113+
338,Warning,ECC instrument serial number different from previous submission
114+
339,Error,Failed to parse #LOCATION.{field}: contains invalid characters,Reserved for fields Latitude and Longitude
115+
340,Warning,#{table}.Time {component} is not within allowable range [{lower}]-[{upper}]
116+
401,Error,Submitted file version and #DATA_GENERAION.Date identical to previously submitted file
117+
402,Error,Submitted #DATA_GENERATION.Date is identical to previously submitted file
118+
403,Error,Submitted version number is identical to previously submitted file
119+
404,Warning,ECC instrument serial number different from previous submission
120+
405,Warning,Data file successfully persisted
121+
406,Warning,New instrument added
122+
407,Warning,New deployment added
123+
408,Warning,New station name added
124+
409,Warning,New contribution added
125+
410,Error,Data file failed to validate
122126
1000,Error,Unassigned error message

0 commit comments

Comments
 (0)