# Climate and Economic Justice Screening Tool


The official tool is hosted at https://screeningtool.geoplatform.gov

This source.coop repository provides access to this data as PMTiles and geoparquet.  PMTiles provides static vector tiles enabling many popular client-side libraries to quickly and easily render interactive maps involving very large vector datasets. The Geoparquet format is optimized for cloud-based (i.e. streaming) analysis workflows without the need to download and store the data.

## Using PMTiles

[example map](https://data.source.coop/cboettig/justice40/justice40.html)

See [map.py](https://data.source.coop/cboettig/justice40/map.py) for soruce code

## Using geoparquet
 
```python
import ibis # pip install ibis-framework
from ibis import _

summary = (ibis
    .read_parquet("https://data.source.coop/cboettig/justice40/disadvantaged-communities.parquet")
    .group_by(_.StateName)
    .agg(fraction_disadvantaged = (_.Disadvan * _.SHAPE_Area).sum() / _.SHAPE_Area.sum())
    .order_by(ibis.desc(_.fraction_disadvantaged))
    .to_pandas()
)

summary
```