blib/script/ghcn_fetch.pl untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 10 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # ghcn_fetch.pl - Fetch NOAA GHCN daily data and output as TSV
2
3 # Testing notes:
4 #
5 # The quickest way to spot check results from this script is to compare them
6 # to those obtained from:
7 #
8 # https://ottawa.weatherstats.ca/charts/
9 #
10 # Run the script with parameters such as -prov ON -loc "Ottawa Int" -range
11 # 2017-2018 -precip -tavg -o first with the -daily option, then again with
12 # -monthly and -yearly. You can then compare results to various charts you
13 # generate using the above link by selecting Ottawa (Kanata - Orleans),
14 # which I've verified corresponds to station CA006105976 (Ottawa Int'l).
15 #
16 # Charts to use include Temperature (TMAX, TMIN, TAVG, Avg), Snowfall
17 # (SNOW), Snow on Ground (SNWD) and Total Precipitation (PRCP). Annual and
18 # monthly charts work well, but you may need daily charts and some
19 # investigation of the NOAA source data if there are anomalies. Sometimes
20 # the NOAA data has missing data; e.g. station CA006105976 (Ottawa Int'l)
21 # is missing days 6-28 for 2018-02.
22
23 ########################################################################
24 # Pragmas
25 ########################################################################
26 use v5.18; # minimum for Object::Pad
27
28 our $VERSION = 'v0.0.002';
29
30 use Weather::GHCN::App::Fetch;
31
32 Weather::GHCN::App::Fetch->run( \@ARGV );
33
34 ########################################################################
35 # Documentation
36 ########################################################################
37 __END__