Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fold updated growth geographies into codebase #387

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

akselx
Copy link

@akselx akselx commented Jan 31, 2025

Updated growth geographies have slightly different categories and schema, with some columns no longer provided on this dataset, but instead via the parcels dataset. This PR is to fold those changes into the existing code base, and redirect any orphaned data dependencies (like jurisdiction name) to other sources.

Part 1 involves those core changes, mainly via the datasources.py and variables.py, reading in the new dataframe, and fetching alternatives.

Part 2 relates to the zoning mods, which is currently handled as a separate process in a jupyter notebook. That process uses combinations of geographical area groupings (e.g. transit rich areas, high resource areas, growth geographies) - concatenations captured as zoningmodcat as the main vehicle to apply modifications to zoning.

The script, build_zoningmods_general.py, applies zoning modifications to groups of parcels based on columns denoting membership in subareas. It performs the following functions:

  • Loads configuration settings from a specified YAML file (zoning_mods_fbp.yaml ).
  • Reads a CSV file containing parcel geography data.
  • Constructs a new column, zoningmodcat, by concatenating specified columns that denote subarea membership.
  • Groups parcels based on the zoningmodcat column to create a DataFrame template for zoning modifications.
  • Applies zoning modifications specified in the YAML configuration to the grouped parcels.
  • Adds ancillary columns required for specific purposes if they are missing.
  • Saves the modified zoning data to an output CSV file - set in the yaml file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant