Skip to main content
U.S. FlagAn official website of the United States government
icon dot gov
Official websites use .gov

A .gov website belongs to an official government organization in the United States.

icon https
Secure .gov websites use HTTPS

A lock () or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

The U.S. government is closed. This site will not be updated; however, NOAA websites and social media channels necessary to protect lives and property will be maintained.

To learn more, visit commerce.gov.

For the latest forecasts and critical weather information, visit weather.gov.

data.faultreport

data.faultreport generates a report about edited data quality. This report includes a list of detected faults in the hourly averages and optionally the output of a spike filter.

The rules to check are defined in faultreport.conf. The spike filter configuration is defined by an instance of spikefilter.conf located either in the station specific location at $DB/etc/$STATION/$CONFIG.spikefilter.$STATION.conf or the default location $DB/etc/$CONFIG.spikefiler.conf. The default one is used if the station specific one does not exist.

Command Line Usage

data.faultreport [--source=archive] [--config=editquality] [--quiet] [--csv] 
                 [station] start [end]

Arguments

start and end

The time specifiers for the data to be retrieved. Start is inclusive while end is exclusive, so all data contained within the half open interval [start,end) will be returned. If a single Year/week pair is specified, the end is assumed to be the start plus 7 days. Any convertible time format is accepted.

station

The station identifier code. For example 'brw'. Case insensitive.

--source=archive

Set the archive to process from, defaulting to avgHe.

--config=editquality

The configuration file base name to load rules from. The station specific file in $DB/etc/$STATION/$CONFIG.$STATION.conf is first tried and only if it does not exist is the default in $DB/etc/$CONFIG.conf used. Defaults to “editquality”.

--quiet

Only produce output on standard output if there are faults detected.

--csv

Produce output in CSV format.

Example Usage

Default one week

data.faultreport sgp 2008W02

Exact time range

data.faultreport sgp 2008:10 2008:12