Skip to content

Save Census geopackage files split by state, then adjust overlaps script #35

Description

@maria-milosh

Scripts to modify:

  • pipeline/preprocessing/census_geographies.py - currently write_processed() writes a single {year}{level_label}.gpkg. Change it to group by STATEFP and write {year}{level_label}_{statefp}.gpkg per state. The rest of the script are ok as is
  • pipeline/preprocessing/overlaps.py currently reads the entire national .gpkg as its first positional arg. It needs to (1) accept a directory (or a pattern) instead of a single file path (2) determine which states the study area geometry intersects (can be derived from the study area boundary) (3) load only the matching {year}{type}{statefp}.gpkg files and take a union if multiple files.
  • study_areas.py?
  • scripts/run_overlap.sh and scripts/build_study_areas.sh?
  • scripts/resolve_config.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions