Skip to content

Merge main into deploy-google_health #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 368 commits into from
Aug 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
368 commits
Select commit Hold shift + click to select a range
1a33eb6
Quote as string
korlaxxalrok Jun 12, 2020
69e0ec7
Remove mode as it is a documentation error
korlaxxalrok Jun 12, 2020
73aaff4
Add mutation step for venv python bin symlink, other small necessities
korlaxxalrok Jun 12, 2020
ac7524f
Fix src and dest
korlaxxalrok Jun 12, 2020
0c26ee1
Update runtime dir, add useful comment
korlaxxalrok Jun 12, 2020
79393fb
Test placing prod config file
korlaxxalrok Jun 12, 2020
a77ea7b
Fix prod filename
korlaxxalrok Jun 12, 2020
e77a523
Rename Ansible deploy file, add comment
korlaxxalrok Jun 12, 2020
4ad7651
Try to use indicator env variable from pipeline
korlaxxalrok Jun 14, 2020
ce7d55b
Add prod params file
korlaxxalrok Jun 14, 2020
121c646
Add variables to playbook, test a couple of things
korlaxxalrok Jun 14, 2020
519cf7a
Test writing to /tmp
korlaxxalrok Jun 14, 2020
9fd1f16
Rename files to be more generic, add local naming to variables used i…
korlaxxalrok Jun 14, 2020
1fd1283
Switch to indicators for ssh user
korlaxxalrok Jun 14, 2020
abc41a7
Don't become powerful to run this playbook
korlaxxalrok Jun 14, 2020
777b215
Only run against our runtime host from the inventory file
korlaxxalrok Jun 14, 2020
4957a67
Change receiving dir
korlaxxalrok Jun 15, 2020
1f08637
Add a bad directory name [test]
korlaxxalrok Jun 15, 2020
f147549
Merge pull request #78 from cmu-delphi/feature-jhu
korlaxxalrok Jun 15, 2020
20399fe
Fix bad directory
korlaxxalrok Jun 15, 2020
1ddaffa
Switch to build/test/package on PRs against the deploy branches
korlaxxalrok Jun 16, 2020
be65c6a
Add missing colon
korlaxxalrok Jun 16, 2020
2302936
Test breaking this file location
korlaxxalrok Jun 16, 2020
813a1e8
Change to target paramter
korlaxxalrok Jun 16, 2020
a193fce
Hmm, maybe the glob is not matching
korlaxxalrok Jun 16, 2020
7ed680f
Switch to using CHANGE_TARGET env variable to determine the indicator
korlaxxalrok Jun 17, 2020
346bc29
Add one more change to the PR branch
korlaxxalrok Jun 17, 2020
a5d0a23
Merge pull request #80 from cmu-delphi/test-fix-jhu
korlaxxalrok Jun 17, 2020
d97db26
Try using CHANGE_BRANCH env variable to find indicator
korlaxxalrok Jun 17, 2020
e7d0ed2
Use CHANGE_TARGET
korlaxxalrok Jun 17, 2020
cf09e82
Merge pull request #83 from cmu-delphi/test-fix-jhu
korlaxxalrok Jun 17, 2020
de8d2e3
Lets just get our env
korlaxxalrok Jun 17, 2020
e296204
Missed bracket
korlaxxalrok Jun 17, 2020
6489931
Use branch_name
korlaxxalrok Jun 17, 2020
fbe4968
Remove conditional for testing
korlaxxalrok Jun 17, 2020
5235aed
Trival change to test flow
korlaxxalrok Jun 17, 2020
aba0328
Merge pull request #84 from cmu-delphi/test-pr-flow-deploy-jhu
korlaxxalrok Jun 17, 2020
d67e492
Add environment block conditional to get the indicator name
korlaxxalrok Jun 17, 2020
3803574
Fix errant syntax
korlaxxalrok Jun 17, 2020
afbf5b8
Wrap in script block
korlaxxalrok Jun 17, 2020
981d53f
Put environment into its own stage
korlaxxalrok Jun 17, 2020
bb034fd
Add test step
korlaxxalrok Jun 17, 2020
91fa16c
Remove environment block
korlaxxalrok Jun 17, 2020
37519b2
Try to use helper function in environment block
korlaxxalrok Jun 17, 2020
1cd6eb6
Add missing quotes
korlaxxalrok Jun 17, 2020
3bda7ff
Try wrapping in script block
korlaxxalrok Jun 17, 2020
7e5b1e7
Use environment stage
korlaxxalrok Jun 17, 2020
2167aed
Fix function call
korlaxxalrok Jun 17, 2020
a06fd8d
Check for function return
korlaxxalrok Jun 17, 2020
c327e11
Move to env
korlaxxalrok Jun 17, 2020
d508a71
Call function
korlaxxalrok Jun 17, 2020
175f8da
Test for env var
korlaxxalrok Jun 17, 2020
7b35ae8
Test if statement in stage
korlaxxalrok Jun 17, 2020
a322861
Is it the exists function?
korlaxxalrok Jun 17, 2020
da5db52
Hmmm
korlaxxalrok Jun 17, 2020
8379ae6
Nope
korlaxxalrok Jun 17, 2020
0f1ea59
Try this
korlaxxalrok Jun 17, 2020
d89b8b8
Can we use this in the environment block now?
korlaxxalrok Jun 17, 2020
8d94b87
Can we use this in the environment block now (for real)?
korlaxxalrok Jun 17, 2020
c896027
Call function
korlaxxalrok Jun 17, 2020
962d73a
Try in stage
korlaxxalrok Jun 17, 2020
001b718
Try the conditional here
korlaxxalrok Jun 17, 2020
0d2dac8
Move to stage
korlaxxalrok Jun 17, 2020
a290bad
Is it an env variable?
korlaxxalrok Jun 17, 2020
04cfb66
Initialize Jenkinsfile
korlaxxalrok Jun 17, 2020
c2ff3b0
Add conditional to environment stage
korlaxxalrok Jun 17, 2020
4becfd0
Fix structure
korlaxxalrok Jun 17, 2020
9a93981
debug: print env
korlaxxalrok Jun 17, 2020
08922cc
Check for CHANGE_TARGET first
korlaxxalrok Jun 17, 2020
f350137
Fix space
korlaxxalrok Jun 17, 2020
f6303aa
debug: echo indicator
korlaxxalrok Jun 17, 2020
44d2f8a
Switch back to declaring the inidicator in the scripts and calling th…
korlaxxalrok Jun 17, 2020
2707c42
Add explicit indicator name to scripts to work around environment var…
korlaxxalrok Jun 17, 2020
0766a24
Fix interpolated string placement
korlaxxalrok Jun 17, 2020
98da541
Fix tar invocation
korlaxxalrok Jun 17, 2020
818ccaa
This is a PR to test for Jenkins PR flow. (#85)
korlaxxalrok Jun 17, 2020
3b70a8e
debug: print env
korlaxxalrok Jun 17, 2020
4152762
Remove debug
korlaxxalrok Jun 17, 2020
e15a56d
Can we use branch?
korlaxxalrok Jun 17, 2020
6701577
Fix merge conflict
korlaxxalrok Jun 17, 2020
110e5ad
Trivial change to test PR workflow
korlaxxalrok Jun 17, 2020
2710e20
Merge pull request #87 from cmu-delphi/bgc-test-fix-jhu-config
korlaxxalrok Jun 17, 2020
7860b46
Test PR workflow (#90)
korlaxxalrok Jun 18, 2020
af79f28
Test PR flow (#91)
korlaxxalrok Jun 18, 2020
ee4ea2e
Test PR flow (#92)
korlaxxalrok Jun 18, 2020
d5379c0
Test PR flow (#93)
korlaxxalrok Jun 18, 2020
90f35a7
Test PR flow (#95)
korlaxxalrok Jun 18, 2020
cc203c6
resolve conflicts
Jun 19, 2020
82ca468
Add missing bracket
korlaxxalrok Jun 19, 2020
70a5407
Add indicators ansible-vault encryption password location
korlaxxalrok Jun 19, 2020
684c116
Add location of ansible-vault password
korlaxxalrok Jun 19, 2020
96959fe
Test encrypting prod params file
korlaxxalrok Jun 19, 2020
edce5d1
Decrypt params file
korlaxxalrok Jun 19, 2020
5931e21
Merge pull request #68 from cmu-delphi/jingjing/jhu_with_unassigned
krivard Jun 19, 2020
480ce66
fixed errors in test_smooth
Jun 19, 2020
72c2f73
fixed errors
Jun 19, 2020
1ed824a
recover smoothed signals
Jun 19, 2020
9dc64f1
add .gitignore
Jun 19, 2020
62bc7b3
add gitignore
Jun 19, 2020
64be094
add gitignore
Jun 19, 2020
a7ff6c4
Use receiving directory on runtime host
korlaxxalrok Jun 22, 2020
30017df
Add Ansible-specific entries to ignore
korlaxxalrok Jun 22, 2020
b54d316
Add top-level readme
korlaxxalrok Jun 22, 2020
f2f137b
Update DETAILS.md
jingjtang Jun 22, 2020
dc2c6f7
Add much text to readme
korlaxxalrok Jun 22, 2020
d98a58b
Update README.md
korlaxxalrok Jun 23, 2020
c8902e0
Update README.md
korlaxxalrok Jun 23, 2020
bcfefc7
Update README.md
korlaxxalrok Jun 23, 2020
cf638f5
Update README.md
korlaxxalrok Jun 23, 2020
9eab4b6
Update README.md
korlaxxalrok Jun 23, 2020
3176d4b
Apply suggestions from code review
korlaxxalrok Jun 23, 2020
18f1d23
Fix a wee bit of punctuation
korlaxxalrok Jun 23, 2020
e25084b
Switch back to local directory for csv output
korlaxxalrok Jun 23, 2020
2b7cc96
Merge pull request #105 from cmu-delphi/run-jhu
korlaxxalrok Jun 23, 2020
88bcc7d
Merge pull request #101 from cmu-delphi/prodction-prep-deploy-jhu
korlaxxalrok Jun 24, 2020
2db36c3
Update params with production ingestion dir
korlaxxalrok Jun 24, 2020
daf00ca
Merge pull request #107 from cmu-delphi/prodction-prep-deploy-jhu
korlaxxalrok Jun 24, 2020
9082f84
update filenames for 7dav_ signals
Jun 25, 2020
439f5f0
add gitignore
Jun 25, 2020
1e5389d
update unittest
Jun 25, 2020
50af562
Merge pull request #110 from cmu-delphi/run-jhu
jingjtang Jun 26, 2020
80d9d75
Remove unneeded ght cache files
korlaxxalrok Jun 30, 2020
6398f0a
added cross generation, load state and zip -> fips tested
jsharpna Jun 30, 2020
9318662
add GeoMapper, docstrings, tests
jsharpna Jul 1, 2020
a8f34b1
add zip->county mapping
jsharpna Jul 2, 2020
68fee88
added mega v0.1
jsharpna Jul 2, 2020
d9d0db0
debug gmpr use in hosp
jsharpna Jul 6, 2020
655dcf6
add gmpr to util init
jsharpna Jul 6, 2020
d9a1cc4
fix bug from emr
jsharpna Jul 7, 2020
1610ad1
add data processing script, source files, and derived files
jsharpna Jul 8, 2020
a114175
changed filenames in geomap
jsharpna Jul 8, 2020
873a3f7
Update README.md
jsharpna Jul 8, 2020
c473e8b
added consistency checks, rest of msa
jsharpna Jul 8, 2020
79c0cd8
debug msa rest of state
jsharpna Jul 8, 2020
c170fd2
Merge branch 'rf_geo' of https://github.com/cmu-delphi/covidcast-indi…
jsharpna Jul 8, 2020
647aca3
Merge branch 'main' into rf_geo
jsharpna Jul 8, 2020
2fb7f66
added jhu to fips converters
jsharpna Jul 14, 2020
fed6bf1
add jhu uid to county
jsharpna Jul 22, 2020
36bf5c2
add code for cds testing
Jul 23, 2020
e0b0238
update url
Jul 23, 2020
0d126d7
fixed errors and updated readme
Jul 23, 2020
6434f17
update tests
Jul 23, 2020
46921ea
update details
Jul 23, 2020
145f5a5
fixed error with forward filling
Jul 23, 2020
a85d6c5
Update DETAILS.md
jingjtang Jul 23, 2020
891f87f
update code for cds
Jul 24, 2020
e715a44
delete old folder
Jul 24, 2020
8fd8d62
fixed errors in run
Jul 24, 2020
12857fc
rm test_export
Jul 24, 2020
c3f5ec0
rm export.py
Jul 24, 2020
f868e35
update unittests
Jul 24, 2020
373a5eb
fixed errors in filteration
Jul 24, 2020
9f68d33
add threshold to sample size
Jul 24, 2020
fd29cdc
add sample_size and std for pct_positive
Jul 24, 2020
78c77a0
fixed errors
Jul 24, 2020
63c217a
Update DETAILS.md
jingjtang Jul 24, 2020
6cccb07
Update DETAILS.md
jingjtang Jul 24, 2020
f324b81
fixed an error
Jul 24, 2020
8ab0c93
add gitignore in receiving
Jul 24, 2020
29b669b
delete receiving
Jul 24, 2020
097021f
add gitignore
Jul 24, 2020
bc53857
update mapping file due to the changes in the raw files
Jul 27, 2020
0ff6577
update pull.py according to the changes in the raw data
Jul 27, 2020
95171d3
update unittests due to the changes in the raw data
Jul 27, 2020
cd3fe16
add wip to all of the signals
Jul 27, 2020
57bb1f6
change the signal names for pct_positive; ignore .gitignore when remo…
Jul 29, 2020
63a8cae
update signal names
Jul 29, 2020
e55e3a6
Update REVIEW.md
AlSaeed Jul 29, 2020
9c8e7e7
add description to tested
Jul 29, 2020
e080035
refactor jhu, add fips to zip utility
jsharpna Jul 30, 2020
48de2d4
finish hrr, debug jhu, needs stable comp
jsharpna Aug 4, 2020
885155d
finish hrr, debug jhu, needs stable comp
jsharpna Aug 4, 2020
a6aa219
compared msa versions
jsharpna Aug 5, 2020
206bcc1
mod compare rec
jsharpna Aug 5, 2020
8ec3b13
butcher compare_receiving script
jsharpna Aug 5, 2020
325f154
Merge branch 'main' into rf_geo
jsharpna Aug 5, 2020
9854433
2018 msa raw data
jsharpna Aug 6, 2020
78e145e
add mega functionality, struggling with 0.0 bug
jsharpna Aug 7, 2020
0100dcd
handling signal names in ght
vishakha1812 Aug 10, 2020
23d7ae0
Merge remote-tracking branch 'origin/deploy-jhu' into main
eujing Aug 10, 2020
288ec3c
Fixed jhu tests to mock s3 too
eujing Aug 10, 2020
b61ad2e
fixed errors in positivity rate
Aug 10, 2020
9dca4e2
fixed errors in 7day avg
Aug 10, 2020
975dd54
Initial ansible modifications without vault
eujing Aug 11, 2020
bae28ab
Merge pull request #202 from cmu-delphi/resolve-main-deploy-jhu
eujing Aug 11, 2020
b9a86ef
Added new constants.py file
vishakha1812 Aug 12, 2020
36abeab
Updated use cases to handle wip signals
vishakha1812 Aug 12, 2020
fa2ec51
Updated setup.py
vishakha1812 Aug 12, 2020
a3ec382
updated params.json.template for tests
vishakha1812 Aug 12, 2020
ba832b9
Added test case for wip signal names logic
vishakha1812 Aug 12, 2020
5481ed9
Updated test cases to handle wip file naming
vishakha1812 Aug 12, 2020
ea1a892
New test files for checking output file names in receiving_test folder
vishakha1812 Aug 12, 2020
0ea004a
Updated: Misssing comma
vishakha1812 Aug 12, 2020
ac80f07
Fixed typo in constants.py
vishakha1812 Aug 12, 2020
3a9c286
add code
Aug 13, 2020
65ab6a1
Update DETAILS.md
jingjtang Aug 13, 2020
11349b5
Merge pull request #214 from cmu-delphi/deploy-google_health
krivard Aug 13, 2020
5350d2c
Add AWS credentials to vault (#220)
korlaxxalrok Aug 13, 2020
9747162
update output format, to YYYYDD
Aug 14, 2020
2e2a1c4
update output format, to YYYYDD
Aug 14, 2020
a082d25
update README and DETAILS and fix signal names for weekly reports
Aug 14, 2020
8317a3b
Update DETAILS.md
jingjtang Aug 14, 2020
f84eb19
Update DETAILS.md
jingjtang Aug 14, 2020
c7bbad9
Merge pull request #162 from cmu-delphi/run-cds
krivard Aug 14, 2020
0f0320d
Merge pull request #218 from cmu-delphi/nchs_mortality
krivard Aug 17, 2020
ae7637a
Added new constants.py
vishakha1812 Aug 17, 2020
2ab9dc0
Added new file to check for wip signals
vishakha1812 Aug 17, 2020
c53b886
Updated params.json.template
vishakha1812 Aug 17, 2020
ab79ab1
Updated run.py
vishakha1812 Aug 17, 2020
5c20e7e
Updated test_run.py
vishakha1812 Aug 17, 2020
400bed8
Merge pull request #212 from cmu-delphi/handle_wip_signal_ght
krivard Aug 18, 2020
eee0acf
fix msa mega
jsharpna Aug 18, 2020
73308d9
Merge pull request #137 from cmu-delphi/rf_geo
krivard Aug 18, 2020
b55ff8a
debug jhu, still msa issue
jsharpna Aug 19, 2020
88fa1e6
restore .gitignore
jsharpna Aug 19, 2020
87f5234
Merge pull request #226 from cmu-delphi/rf_geo
krivard Aug 19, 2020
c016072
Merge pull request #223 from cmu-delphi/handle_wip_signal_ccad
krivard Aug 19, 2020
814fe48
Add AWS credentials to vault (#220)
eujing Aug 11, 2020
69ff86b
Fixed jhu tests to mock s3 too
eujing Aug 10, 2020
d6eedf5
Merge pull request #229 from cmu-delphi/dev/rebase-jhu-deploy
krivard Aug 19, 2020
bf73c71
Merge branch 'deploy-jhu' into main
krivard Aug 19, 2020
9193908
Add missing whitespace
korlaxxalrok Aug 20, 2020
b6d838a
Remove trailing newlines
korlaxxalrok Aug 20, 2020
522df62
Add spaces after commas
korlaxxalrok Aug 20, 2020
05b9b0d
Add space after comma
korlaxxalrok Aug 20, 2020
5906ce2
Fix import order
korlaxxalrok Aug 20, 2020
9149aed
Fix jhu linter issues (#231)
korlaxxalrok Aug 20, 2020
085ffed
Added missing prefix r
vishakha1812 Aug 20, 2020
b11a8cb
Added missing prefix r
vishakha1812 Aug 20, 2020
9300b32
Merge branch 'main' into fix-jhu-linter-issues
vishakha1812 Aug 20, 2020
2d61a87
Removed unused stmt. and corrected import order
vishakha1812 Aug 21, 2020
3c15428
Removed unused argument
vishakha1812 Aug 21, 2020
13ad138
Merge pull request #232 from cmu-delphi/fix-jhu-linter-issues
krivard Aug 21, 2020
e750a3a
Moved cache files to a new directory 'data'
vishakha1812 Aug 24, 2020
1da2822
Update conftest.py
vishakha1812 Aug 24, 2020
fbc9eb4
Update constants.py.py
vishakha1812 Aug 24, 2020
ead2164
Update params.json.template
vishakha1812 Aug 24, 2020
4be0ecf
Update test cases
vishakha1812 Aug 24, 2020
c5d1d4d
Update run.py
vishakha1812 Aug 24, 2020
e8344a6
Update setup.py
vishakha1812 Aug 24, 2020
fe0e6c5
Merge branch 'main' into diff_ght
vishakha1812 Aug 24, 2020
e17f07d
Update params.json.template.py
vishakha1812 Aug 25, 2020
b4379dd
Update params.json.template
vishakha1812 Aug 25, 2020
9869b67
Update run.py
vishakha1812 Aug 25, 2020
9fd0521
add .gitignore
vishakha1812 Aug 25, 2020
ff6a57e
Added static files to tests, configured .gitignore to handle cache, u…
vishakha1812 Aug 26, 2020
846b804
add wip_signal to ansible
vishakha1812 Aug 27, 2020
eca83c8
Update .j2 files in Ansible
vishakha1812 Aug 27, 2020
8693505
Update .j2 files in Ansible
vishakha1812 Aug 27, 2020
049f0a5
Merge pull request #240 from cmu-delphi/diff_ght
krivard Aug 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33,100 changes: 33,100 additions & 0 deletions _delphi_utils_python/data_proc/geomap/02_20_uszips.csv

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
115 changes: 115 additions & 0 deletions _delphi_utils_python/data_proc/geomap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Geocoding data processing pipeline

Authors: Jingjing Tang, James Sharpnack

The data_proc/geomap directory contains original source data, processing scripts, and notes for processing from original source to crosswalk tables in the data directory for the delphi_utils package.

## Usage

Requires the following source files below.

Run the following to write the cross files in the package data dir...
```
$ python geo_data_proc.py
```
this will build the following files...
- fips_msa_cross.csv
- zip_fips_cross.csv
- state_codes.csv

You can see consistency checks and diffs with old sources in ./consistency_checks.ipynb

## Source files

- 03_20_MSAs.xls : [US Census Bureau](https://www.census.gov/geographies/reference-files/time-series/demo/metro-micro/delineation-files.html)
- 02_20_uszips.csv : Hand edited file from Jingjing, we only use the fips,zip encoding and also extract the states from these
- Crosswalk files from https://www.huduser.gov/portal/datasets/usps_crosswalk.html
- JHU crosswalk table: https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data#uid-lookup-table-logic
- ZIP/County population: https://www.census.gov/geographies/reference-files/time-series/geo/relationship-files.html#par_textimage_674173622, https://www2.census.gov/geo/docs/maps-data/data/rel/zcta_county_rel_10.txt?#

## Todo

- make direct cross tables for fips -> hrr and zip -> msa / state
- use hud for zip -> fips?

## Notes

Some of the source files were constructed by hand, most notably 02_20_uszips.csv.

The 02_20_uszips.csv file is based on the newest consensus data including 5-digit zipcode, fips code, county name, state, population, HRR, HSA (I downloaded the original file from here https://simplemaps.com/data/us-zips. This file matches best to the most recent (2020) situation in terms of the population. But there still exist some matching problems. I manually checked and corrected those lines (~20) with zip-codes.com (https://www.zip-codes.com/zip-code/58439/zip-code-58439.asp). The mapping from 5-digit zipcode to HRR is based on the file in 2017 version downloaded from https://atlasdata.dartmouth.edu/static/supp_research_data

transStateToHRR.csv and transfipsToHRR.csv are used to transform data from state level or county level to HRR respectively. For example, x is the horizontal vector of covid cases for different states in 04/10/20, then we have x @ H = y, where H is the table provided in these two csv files and y is a horizontal vector of covid cases for different HRRs.

HRRs are represented by hrrnum. There are 306 hrrs in total. They are not named as consecutive numbers.

-Jingjing


04/14/20: 'msa_id' and 'msa_name' are added according to the msa_list.csv that Aaron found from https://apps.bea.gov/regional/docs/msalist.cfm (2019)

04/15/20:
The newly updated(added columns) are based on cbsatocountycrosswalk.csv from https://data.nber.org/data/cbsa-fips-county-crosswalk.html
- 'msa' : MSA ID
- 'msaname': Name of the MSA
- 'cbsa': CBSA ID
- 'cbsaname': Name of the CBSA


04/19/20:
Changed to msa_list.csv again.

05/20/20: Updated msa_list.csv to include MSAs in Puerto Rico, using the delineations file from March 2020: https://www.census.gov/geographies/reference-files/time-series/demo/metro-micro/delineation-files.html

06/15/20:
Added file co-est2019-annres.csv, which gives 2019 population estimates for each county by name

Source: Annual Estimates of the Resident Population for Counties in the United States: April 1, 2010 to July 1, 2019 (CO-EST2019-ANNRES). U.S. Census Bureau, Population Division. Release Date: March 2020
Note: The estimates are based on the 2010 Census and reflect changes to the April 1, 2010 population due to the Count Question Resolution program and geographic program revisions. All geographic boundaries for the 2019 population estimates are as of January 1, 2019. For population estimates methodology statements, see http://www.census.gov/programs-surveys/popest/technical-documentation/methodology.html.

Note: The 6,222 people in Bedford city, Virginia, which was an independent city as of the 2010 Census, are not included in the April 1, 2010 Census enumerated population presented in the county estimates. In July 2013, the legal status of Bedford changed from a city to a town and it became dependent within (or part of) Bedford County, Virginia. This population of Bedford town is now included in the April 1, 2010 estimates base and all July 1 estimates for Bedford County. Because it is no longer an independent city, Bedford town is not listed in this table. As a result, the sum of the April 1, 2010 census values for Virginia counties and independent cities does not equal the 2010 Census count for Virginia, and the sum of April 1, 2010 census values for all counties and independent cities in the United States does not equal the 2010 Census count for the United States. Substantial geographic changes to counties can be found on the Census Bureau website at https://www.census.gov/programs-surveys/geography/technical-documentation/county-changes.html.


07/07/2020:
Introduced the March 2020 MSA file, source is [US Census Bureau](https://www.census.gov/geographies/reference-files/time-series/demo/metro-micro/delineation-files.html). This file seems to differ in a few fips codes from the source for the 02_20_uszip file which Jingjing constructed. There are at least 10 additional fips in 03_20_msa that are not in the uszip file, and one of the msa codes seems to be incorrect: 49020 (a google search confirms that it is incorrect in uszip and correct in the census data).

07/08/2020:
We are reserving 00001-00099 for states codes of the form 100XX where XX is the fips code for the state. In the case that the CBSA codes change then it should be verified that these are not used. The current smallest CBSA is 10100.

-James

07/22/2020:
- Introducing the COUNTY_ZIP and ZIP_COUNTY crosswalk files from https://www.huduser.gov/portal/datasets/usps_crosswalk.html
- Also the ZIP to HRR Crosswalk file (from 2018) from https://atlasdata.dartmouth.edu/static/supp_research_data
- Added the JHU crosswalk table and created a jhu_uid to fips crosswalk table: https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data#uid-lookup-table-logic

There are NaN fips in the JHU tables, so to resolve this we are moving over to using the JHU unique id.
We have to deal with the NaN fips by hand, which are
```
748 US
887 Recovered, US
888 Dukes and Nantucket, Massachusetts, US
889 Kansas City, Missouri, US
890 Michigan Department of Corrections (MDOC), Mic...
891 Federal Correctional Institution (FCI), Michig...
892 Air Force, US Military, US
893 Army, US Military, US
894 Marine Corps, US Military, US
895 Navy, US Military, US
896 Unassigned, US Military, US
897 US Military, US
898 Inmates, Federal Bureau of Prisons, US
899 Staff, Federal Bureau of Prisons, US
900 Federal Bureau of Prisons, US
901 Bear River, Utah, US
902 Central Utah, Utah, US
903 Southeast Utah, Utah, US
904 Southwest Utah, Utah, US
905 TriCounty, Utah, US
906 Weber-Morgan, Utah, US
907 Veteran Hospitals, US
```
Is you look at geo_data.py::

08/04/2020:
Large changes in MSA from 2018 version from bea.gov (msa_list.csv), and the new 2020 version from census bureau (03_20_MSAs.xls).
Trying to use 2018 version instead from https://www.census.gov/geographies/reference-files/time-series/demo/metro-micro/delineation-files.html
Loading