Closed ericnost closed 3 years ago
The id field is pgm_sys_id, date column is ACTUAL_END_DATE, agg_col is STATE_EPA_FLAG, agg_type is count.
We do already have a view for the ICIS-AIR_FCES_PCES table. It is AIR_COMPLIANCE_MVIEW, and is available in make_data_sets.py as 'CAA Compliance', which is currently not included in the data sets made available in AllPrograms.ipynb.
So we could do a couple of things:
Ok! Let's go with option 1. We'll just want to keep in mind that CAA Compliance = CAA Inspections to Determine Compliance
Hi @shansen5 I'm wondering if we can ask Paul to reconfigure the Air Inspections Materialized View. Currently, I'm not sure which table it's drawing from - I think ICIS_FEC_EPA_INSPECTIONS - but it should be drawing from ICIS-AIR_FCES_PCES. ICIS_FEC_EPA_INSPECTIONS includes all US EPA inspections for ALL programs, not just CAA. ICIS-AIR_FCES_PCES is CAA inspections, both state agency and US EPA.