Covid 19 Simulations in JSON
Script to converts csv’s provided by AFRL Explainable Artificial Intelligence Laboratory to json files separated by locations
Sources
Simulation Sources
- EXAIL - AFRL Explainable AI Lab data
- IHME
- Center for Army Analysis (CAA)
- Los Alamos National Laboratory(LANL)
- University of Texas (UT)
- Youyang Gu (YYG)
Example usage
-
Visit USDA and obtain a FIPS Code
- Counties are the same as this site trimming out the leading zeroes
- States are multiplied by 1000 (example Alabama –> 1000)
- Countries only include the United States at this time with FIPS 840
-
Visit desired hierarchy (countries, states, counties)/FIPS.json
Requirements to Edit
- nodejs
-
.env
file with the following keys- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_FOUO_BUCKET_NAME
- AWS_BUCKET_NAME
- AWS_REGION
Contact KBR to obtain access keys
Folder structure
data
Stores all json files in hierarchy as follows
- countries
- unique FIPS to country
- currently only United States
- 100,000 indexed to avoid overlap
- states
- unique FIPS to state
- US States
- counties
- unique US County FIPS
- US Counties
- selectors (WIP)
- used for select drop down options
- Nations, US State, US Counties by State
- used for select drop down options
scripts
scripts used to parse csv’s into json format
npm run build
Fetches files based on date in script (need to update to fetch yesterday’s date automatically), unzips it, and runs the parse script.
npm run parse
Runs a script located at scripts/parse.js
npm run clean
Removes ignored files to make fetching fresh
npm run fetch
Fetches the latest files, unzips them, and places them in the files directory
- Requires a
.env
file with all the aws associated keys to access the buckets- keys
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_FOUO_BUCKET_NAME
- AWS_BUCKET_NAME
- AWS_REGION
- Contact KBR to obtain access keys
- keys