back
COVID-19 in selected countiesblog Data thanks to USAFACTS. Data was previously extracted from Johns Hopkins Time Series CSV for COVID-19 Selections were controlled by myFIPS.csv, which was extracted from FIPS county population data, e.g. https://www2.census.gov/programs-surveys/popest/datasets/2010-2019/counties/totals/co-est2019-alldata.csv. FIPSpopJul2018.csv is a stripped CSV file with only state,county,locality for most US FIPS localities.
Processing employs gnuplot, ImageMagick, and bash scripts
Before 14 May, data for gnuplot was mostly extracted by frame.sh, which may be invoked standalone,
animate.sh also invokes
Utility script cfg.sh is sourced by both animate.sh and covid.sh 5 May 2020Still looking for a way to have GitHub Pages display plain text files *.p *.shDeal with CSV data source having newer entries with lower reported cumulative case counts. 6 MayPipe gnuplot output directly to ImageMagick convert, reducing hard drive thrash.Convert bash scripts to be invoked by `source` mostly by replacing `exit` with `return`. Invoke gnuplot with path to script in GitHub folder, avoiding file copy. Remove leading blank in numeric string. 7 MayDefine$csv for path to downloaded data file,
$here for path to GitHub folder.Extract first line of $csv for date titles.Doomed experiment using gifsicle to compress animated GIFs. More tests for invalid cumulative case counts. Clean up IFS usage. 8 MayReorder bargraphs; better gnuplot ytics and grid.Add RAM disk support to minimize SSD wear. Pass title to gnuplot on invocation. 9 MayIncrease GIF animation speed.10 MayDownload$csv to RAM drive.Compensate for 2 commas in columns; more checks for invalid data. 11 MayIn bash, `unset IFS` restores default string field separators.GIF animate today vs 3 days prior. 13 MayNew and updated scripts for covid_county_population_usafacts.csv.Add population to data.txt, so that gnuplot can calculate per 100K values. 14 MayAdd state abbreviations to myFIPS.csv; rename plot_covid.p to diff_covid.p; add Albuquerque.Fix frame.sh a0 bug, factFIPS.csv Beralillo FIPS typo. In usfact.sh county() , check for requested column greater than available.
15 MayWiden and reorder graph.usfact.sh uses myFIPS.csv to extract copop.csv for use by new gnuplot script stats.p. 16 Mayusfact.sh calls `gnuplot stats.p`, which uses seq.sh to invoke convert for rotated graph.stats.p now sets ylabel date from first line of $csv
17 MayWiden graphs18 Mayper 100K calculations moved from bash to gnuplot script.Widen graph, darker red for increasing new 3-day cases. 23 Mayloop.p to generate multiple graphs from single gnuplot invocation.Replace '/' in dates with '-' for use in graph filenames; update seq.sh IFS to handle '-'. In stats.p, rename 'now' to 'day'; failed Windows gnuplot experiment to pipe directly to convert in `set output`
24 MayIgnore .DS_Store on macOS; stats.p bug: now->day;cfg.sh now works on macOS. 25 MayDo not apply dark red for weekly fluctuations,e.g. days 0-3 > 3-6 but not 7-10 26 Mayupdate loop.p to match stats.p26 Junadd San Luis Obispo CA, Maricopa AZ, Maricopa AZ to factFIPS.csv with populations from FIPSpopJul2018.csv |
maintained by blekenbleu |