Overall Steps:
- Run the SQL query that joins the Spatial Data, FCC data and M-Lab data
- Note: Main differences here are about the spatial data (zcta, county, census tract, senate house, state senate)
- Export the JSON via GCS
- Convert the JSON to CSV ('rewrite_export_combined.py')
- Re-code the CSV schema to know what the data types are (xsv commands in '/notes/ogr_commands.md')
- Run ogr2ogr > tippecanoe command to create mbtiles (ogr2ogr commands in 'notes/ogr_commands.md')
- Upload mbtiles to Mapbox using python library (Mapbox command in 'notes/ogr_commands.md')
If you need to fix something, e.g. missing data..
- Get the data you need
- Export JSON
- Convert JSON to CSV
- Re-code the CSV schema to know what the data types are (xsv commands in '/notes/ogr_commands.md')
- Run ogr2ogr > tippecanoe command to create mbtiles (ogr2ogr commands in 'notes/ogr_commands.md')
- Join the mbtiles to the original mbtiles
- Upload replacement mbtiles to Mapbox.
If you need to add a new data period
- Update the query for new time period
- Export JSON
- Convert JSON to CSV
- Re-code the CSV schema to know what the data types are (xsv commands in '/notes/ogr_commands.md')
- Run ogr2ogr > tippecanoe command to create mbtiles (ogr2ogr commands in 'notes/ogr_commands.md')
- Join the mbtiles to the original mbtiles
- Upload replacement mbtiles to Mapbox.
- Check if there need to be any changes to the HTML for the map