diff --git a/validator/scripts/unique_geoids.R b/validator/scripts/unique_geoids.R index 52edec904..7f8b55110 100644 --- a/validator/scripts/unique_geoids.R +++ b/validator/scripts/unique_geoids.R @@ -2,9 +2,11 @@ library(covidcast) geo_types = c("county", "state", "hrr", "msa") for(type in geo_types){ - dtf = covidcast_signal("indicator-combination", "confirmed_7dav_incidence_num", start_day = "2020-10-01", end_day = "2020-10-01", geo_type = type) + dtf_deaths = covidcast_signal("jhu-csse" ,"deaths_incidence_num", start_day = "2020-10-01", end_day = "2020-10-01", geo_type = type) + dtf_cases = covidcast_signal("indicator-combination", "confirmed_7dav_incidence_num", start_day = "2020-10-01", end_day = "2020-10-01", geo_type = type) + unique_geo_values = sort(union(dtf_deaths$geo_value, dtf_cases$geo_value)) file_name = paste0("../static/", type, "_geo.csv") - write.table(unique(dtf$geo_value), file = file_name, row.names = F, col.names = "geo_id") + write.table(unique_geo_values, file = file_name, row.names = F, col.names = "geo_id") } dtf = covidcast_signal("ght", "raw_search", start_day = "2020-10-01", end_day = "2020-10-01", geo_type = "dma") diff --git a/validator/static/county_geo.csv b/validator/static/county_geo.csv index a6127cf9b..be03f1a37 100644 --- a/validator/static/county_geo.csv +++ b/validator/static/county_geo.csv @@ -94,6 +94,7 @@ "02230" "02240" "02261" +"02270" "02275" "02282" "02290" @@ -326,6 +327,7 @@ "10001" "10003" "10005" +"11000" "11001" "12000" "12001" @@ -2458,6 +2460,7 @@ "46107" "46109" "46111" +"46113" "46115" "46117" "46119" @@ -3191,4 +3194,88 @@ "56041" "56043" "56045" +"60000" +"66000" +"69000" "72000" +"72001" +"72003" +"72005" +"72007" +"72009" +"72011" +"72013" +"72015" +"72017" +"72019" +"72021" +"72023" +"72025" +"72027" +"72029" +"72031" +"72033" +"72035" +"72037" +"72039" +"72041" +"72043" +"72045" +"72047" +"72049" +"72051" +"72053" +"72054" +"72055" +"72057" +"72059" +"72061" +"72063" +"72065" +"72067" +"72069" +"72071" +"72073" +"72075" +"72077" +"72079" +"72081" +"72083" +"72085" +"72087" +"72089" +"72091" +"72093" +"72095" +"72097" +"72099" +"72101" +"72103" +"72105" +"72107" +"72109" +"72111" +"72113" +"72115" +"72117" +"72119" +"72121" +"72123" +"72125" +"72127" +"72129" +"72131" +"72133" +"72135" +"72137" +"72139" +"72141" +"72143" +"72145" +"72147" +"72149" +"72151" +"72153" +"72888" +"72999" +"78000" diff --git a/validator/static/msa_geo.csv b/validator/static/msa_geo.csv index 9025de71a..a8d1043d6 100644 --- a/validator/static/msa_geo.csv +++ b/validator/static/msa_geo.csv @@ -1,5 +1,6 @@ "geo_id" "10180" +"10380" "10420" "10500" "10540" @@ -14,6 +15,7 @@ "11460" "11500" "11540" +"11640" "11700" "12020" "12060" @@ -144,11 +146,13 @@ "24660" "24780" "24860" +"25020" "25060" "25180" "25220" "25260" "25420" +"25500" "25540" "25620" "25860" @@ -175,6 +179,7 @@ "27780" "27860" "27900" +"27980" "28020" "28100" "28140" @@ -218,6 +223,7 @@ "31740" "31860" "31900" +"32420" "32580" "32780" "32820" @@ -272,6 +278,7 @@ "38300" "38340" "38540" +"38660" "38860" "38900" "38940" @@ -309,7 +316,9 @@ "41700" "41740" "41860" +"41900" "41940" +"41980" "42020" "42100" "42140" @@ -334,6 +343,7 @@ "44180" "44220" "44300" +"44420" "44700" "44940" "45060" @@ -376,6 +386,7 @@ "49180" "49340" "49420" +"49500" "49620" "49660" "49700"